mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
New forex provider ExchangeRatesAPI which is used by default (#248)
* Add new unauthenticated forex provider and use it by default This is in response to currencyconverterapi requiring an API key for the free version * Fix golinter complaint * Added additional endpoints, tests and improve config forex logic
This commit is contained in:
17
testdata/configtest.json
vendored
17
testdata/configtest.json
vendored
@@ -13,12 +13,12 @@
|
||||
"forexProviders": [
|
||||
{
|
||||
"name": "CurrencyConverter",
|
||||
"enabled": true,
|
||||
"enabled": false,
|
||||
"verbose": false,
|
||||
"restPollingDelay": 600,
|
||||
"apiKey": "",
|
||||
"apiKeyLvl": 0,
|
||||
"primaryProvider": true
|
||||
"apiKey": "Key",
|
||||
"apiKeyLvl": -1,
|
||||
"primaryProvider": false
|
||||
},
|
||||
{
|
||||
"name": "CurrencyLayer",
|
||||
@@ -46,6 +46,15 @@
|
||||
"apiKey": "Key",
|
||||
"apiKeyLvl": -1,
|
||||
"primaryProvider": false
|
||||
},
|
||||
{
|
||||
"name": "ExchangeRates",
|
||||
"enabled": true,
|
||||
"verbose": false,
|
||||
"restPollingDelay": 600,
|
||||
"apiKey": "Key",
|
||||
"apiKeyLvl": -1,
|
||||
"primaryProvider": true
|
||||
}
|
||||
],
|
||||
"cryptocurrencyProvider": {
|
||||
|
||||
Reference in New Issue
Block a user