Get quotes for currencies and stocks specified in a file and print them

gnucash-cli

gnucash-cli --quotes get {{path/to/file.gnucash}}

click the source code to copy