Link Search Menu Expand Document

gospl exchange by-currency

Get exchange rates by currency

Synopsis

Allows querying exchange rates list by currency, using date ranges (remember, format for dates is YYYYMMDD)

gospl exchange by-currency [flags]

Examples


	Get exchange rates for GBP (currency code: 826), exchange list type 1 (see help for 'list-type' subcommand), 
date range from Nov. 1st to Nov. 15th, 2021:

gospl exchange by-currency --currency-code 826 --list-type 1  --date-from 20211101 --date-to 20211115


Options

      --currency-code int   Currency code (default 978)
      --date-from string    From date (format YYYYMMDD)
      --date-to string      From date format(YYYYMMDD)
  -h, --help                help for by-currency
      --list-type int       List type id (default 1)

Options inherited from parent commands

      --config string     config file (default is $HOME/.gospl.yaml)
      --licence string    Licence id
      --out-json string   Write results to JSON file
      --password string   Authenticate with password
      --url string        Webservice url (default "https://webservices.nbs.rs")
      --username string   Authenticate with username
      --verbose           Dump request and response

SEE ALSO

Auto generated by spf13/cobra on 22-Nov-2021