Skip to content

econumo/currency-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Currency loader for Econumo

Currency loader for Econumo is the bridge between the https://openexchangerates.org and Econumo API.

Configuration

Please, configure the following environment variables:

  • OPEN_EXCHANGE_RATES_TOKEN - your Open Exchange Rates API key (required)
  • ECONUMO_CURRENCY_BASE - the base currency symbol (e.g. USD) (required)
  • OPEN_EXCHANGE_RATES_SYMBOLS - the list of currency symbols to load (e.g. USD,EUR,GBP). This variable could be empty to load all available currencies.
  • ECONUMO_BASE_URL - Econumo BaseURL (e.g. https://demo.econumo.com) (required)
  • ECONUMO_SYSTEM_API_KEY - Econumo System API key (required)

Usage

Build the solution

go build -o currency-loader
GOOS=linux GOARCH=amd64 go build -o currency-loader

Run the command

./currency-loader --date=2023-09-14

OR

./currency-loader