Skip to content

econumo/currency-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 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
  • ECONUMO_CURRENCY_BASE - the base currency symbol (e.g. USD)
  • OPEN_EXCHANGE_RATES_SYMBOLS - the list of currency symbols to load (e.g. USD,EUR,GBP)
  • ECONUMO_API_URL - Econumo API URL (e.g. https://api.econumo.com)
  • ECONUMO_SYSTEM_API_KEY - System Econumo API key

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