Implement config system.

This commit is contained in:
Adrian Gallagher
2015-02-18 19:01:47 +11:00
parent 9b5ced4f34
commit 1e627496a9
13 changed files with 526 additions and 121 deletions

76
config_example.json Normal file
View File

@@ -0,0 +1,76 @@
{
"Exchanges": [
{
"Name": "Bitfinex",
"Pairs": "BTCUSD,LTCUSD,DRKUSD",
"APIKey": "Key",
"APISecret": "Secret",
"BaseCurrencies": "USD",
"Enabled": true
},
{
"Name": "Bitstamp",
"Pairs": "BTCUSD",
"APIKey": "Key",
"APISecret": "Secret",
"BaseCurrencies": "USD",
"Enabled": true
},
{
"Name": "BTC China",
"Pairs": "BTCCNY,LTCCNY,LTCBTC",
"APIKey": "Key",
"APISecret": "Secret",
"BaseCurrencies": "CNY",
"Enabled": true
},
{
"Name": "BTCE",
"Pairs": "BTCUSD,BTCRUR,BTCEUR,BTCCNH,BTCGBP,LTCBTC,LTCUSD,LTCRUR,LTCEUR,LTCCNH,LTCGBP,NMCBTC,NMCUSD,NVCBTC,NVCUSD,USDRUR,EURUSD,EURRUR,USDCNH,GDPUSD,PPCBTC,PPCUSD",
"APIKey": "Key",
"APISecret": "Secret",
"BaseCurrencies": "USD,RUB,EUR,CNY,GBP",
"Enabled": true
},
{
"Name": "Huobi",
"Pairs": "BTCCNY,LTCCNY,LTCBTC",
"APIKey": "Key",
"APISecret": "Secret",
"BaseCurrencies": "CNY",
"Enabled": true
},
{
"Name": "ITBIT",
"Pairs": "XBTUSD,XBTSGD,XBTEUR",
"APIKey": "Key",
"APISecret": "Secret",
"BaseCurrencies": "USD,SGD,EUR",
"Enabled": true
},
{
"Name": "LakeBTC",
"Pairs": "BTCCNY,LTCCNY,LTCBTC",
"APIKey": "Key",
"APISecret": "Secret",
"BaseCurrencies": "CNY",
"Enabled": true
},
{
"Name": "OKCOIN China",
"Pairs": "BTCCNY,LTCCNY",
"APIKey": "Key",
"APISecret": "Secret",
"BaseCurrencies": "CNY",
"Enabled": true
},
{
"Name": "OKCOIN International",
"Pairs": "BTCUSD,LTCUSD",
"APIKey": "Key",
"APISecret": "Secret",
"BaseCurrencies": "USD",
"Enabled": true
}
]
}