Hi,
Using MtGox, I get NaN errors when using EUR...
USD seems to be working fine.
Enabled verbose to check what's going on. With USD I get:
2013-07-30 09:59:29 (DEBUG): calced EMA properties for new candle:
2013-07-30 09:59:29 (DEBUG): short ema 101.048
2013-07-30 09:59:29 (DEBUG): long ema 101.037
2013-07-30 09:59:29 (DEBUG): diff ema 0.010
2013-07-30 09:59:29 (DEBUG): fetching new trades for new bucket at Mt. Gox
2013-07-30 09:59:31 (DEBUG): calculated candle: 0
2013-07-30 09:59:31 (DEBUG): calced EMA properties for new candle:
2013-07-30 09:59:31 (DEBUG): short ema 101.038
2013-07-30 09:59:31 (DEBUG): long ema 101.033
2013-07-30 09:59:31 (DEBUG): diff ema 0.005
2013-07-30 09:59:31 (DEBUG): we are currently not in an up or down trend @ 100.981 (0.005)
When changing to EUR, I get something like:
2013-07-30 10:04:03 (DEBUG): calculated candle: 1
2013-07-30 10:04:03 (DEBUG): calced EMA properties for new candle:
2013-07-30 10:04:03 (DEBUG): short ema NaN
2013-07-30 10:04:03 (DEBUG): long ema NaN
2013-07-30 10:04:03 (DEBUG): diff ema NaN
2013-07-30 10:04:03 (DEBUG): fetching new trades for new bucket at Mt. Gox
2013-07-30 10:04:04 (DEBUG): calculated candle: 0
2013-07-30 10:04:04 (DEBUG): calced EMA properties for new candle:
2013-07-30 10:04:04 (DEBUG): short ema NaN
2013-07-30 10:04:04 (DEBUG): long ema NaN
2013-07-30 10:04:04 (DEBUG): diff ema NaN
2013-07-30 10:04:04 (DEBUG): we are currently not in an up or down trend @ 75.500 (NaN)
This is the config I changed:
config.normal = {
enabled: true,
exchange: 'MtGox', // 'MtGox', 'BTCe' or 'Bitstamp'
currency: 'EUR',
asset: 'BTC',
tradingEnabled: false,
Simply changed the currency in there - and then the error appears.
Anybody had this issue?
What is the interval you have set? The volatility is very low at the moment, any time Gekko encouters an interval in which there were no trades this happens. So al small interval will trigger this sooner. See below:
realtime-candle-fetcher.js:98
throw 'Failed to load historical trades from ' + this.watcher.name;
^
Failed to load historical trades from bitcoincharts
I have been getting this all weekend for Bitstamp too.
Gekko is currently not dependent on external factors (besides the exchange APIs and bitcoincharts for BTC-e), this is great and I want to keep it like this for as long as possible.
But with the recent problems I am facing I am going to calculate candles on my server expose those to Gekko/the world (it stays optional).This solves a lot of small issues:
- No 'failed to load data from exchange X'
- No sudden API changes exposed to Gekko
- Able to keep track of a lot of exchanges, even those without a historical data API. This finally means altcoins as well!
- Way more efficient: This way the candles are only calculated once and everyone uses that directly
Problems:
- If for whatever reason I can't fetch the candles no one using Gekko is able to (paper) trade
- Central point of failure
- I have to pay for the server / bandwidth, if I can't it will be shutdown
- It's going to be hard to offer different non-standard intervals
I set up a script that is watching a bunch of exchanges with different currency pairs at the moment.Those can all be exposed to Gekko (assuming the exchanges have trading APIs) I am currently watching:
> show collections
bit2c_BTC/NIS
bitstamp_BTC/USD
btcchina_BTC/CNY
btce_BTC/EUR
btce_BTC/RUR
btce_BTC/USD
btce_EUR/USD
btce_FTC/BTC
btce_LTC/BTC
btce_LTC/RUR
btce_NMC/BTC
btce_NVC/BTC
btce_PPC/BTC
btce_TRC/BTC
btce_USD/RUR
bter_BQC/BTC
bter_BQC/CNY
bter_BQC/LTC
bter_BTB/BTC
bter_BTC/CNY
bter_CNC/BTC
bter_CNC/CNY
bter_CNC/LTC
bter_FRC/BTC
bter_FRC/CNY
bter_FRC/LTC
bter_FTC/BTC
bter_FTC/CNY
bter_FTC/LTC
bter_LTC/BTC
bter_LTC/CNY
bter_MYMINER/BTC
bter_NMC/BTC
bter_NME/LTC
bter_PPC/BTC
bter_PPC/CNY
bter_PPC/LTC
bter_TRC/BTC
bter_TRC/CNY
bter_TRC/LTC
bter_WDC/BTC
bter_WDC/CNY
bter_WDC/LTC
bter_YAC/BTC
bter_YAC/CNY
cryptsy_ALF/BTC
cryptsy_AMC/BTC
cryptsy_ANC/BTC
cryptsy_ARG/BTC
cryptsy_BQC/BTC
cryptsy_BTB/BTC
cryptsy_BTE/BTC
cryptsy_BTG/BTC
cryptsy_CAP/BTC
cryptsy_CGB/BTC
cryptsy_CNC/BTC
cryptsy_CRC/BTC
cryptsy_CSC/BTC
cryptsy_DBL/LTC
cryptsy_DGC/BTC
cryptsy_DMD/BTC
cryptsy_DVC/LTC
cryptsy_ELC/BTC
cryptsy_EMD/BTC
cryptsy_EZC/LTC
cryptsy_FLO/LTC
cryptsy_FRC/BTC
cryptsy_FRK/BTC
cryptsy_FST/BTC
cryptsy_FTC/BTC
cryptsy_GLD/LTC
cryptsy_HYC/BTC
cryptsy_IFC/LTC
cryptsy_IXC/BTC
cryptsy_JKC/LTC
cryptsy_KGC/BTC
cryptsy_LKY/BTC
cryptsy_LTC/BTC
cryptsy_MEC/BTC
cryptsy_MEM/LTC
cryptsy_MNC/BTC
cryptsy_MST/LTC
cryptsy_NAN/BTC
cryptsy_NBL/BTC
cryptsy_NMC/BTC
cryptsy_NRB/BTC
cryptsy_NVC/BTC
cryptsy_PPC/BTC
cryptsy_PXC/BTC
cryptsy_QRK/BTC
cryptsy_RYC/LTC
cryptsy_SBC/BTC
cryptsy_TRC/BTC
cryptsy_WDC/BTC
cryptsy_XNC/LTC
cryptsy_XPM/BTC
cryptsy_YAC/BTC
fxbtc_BTC/CNY
fxbtc_LTC/BTC
fxbtc_LTC/CNY
mtgox_BTC/AUD
mtgox_BTC/BTC
mtgox_BTC/CAD
mtgox_BTC/CHF
mtgox_BTC/CNY
mtgox_BTC/CZK
mtgox_BTC/DKK
mtgox_BTC/EUR
mtgox_BTC/GBP
mtgox_BTC/HKD
mtgox_BTC/JPY
mtgox_BTC/NOK
mtgox_BTC/NZD
mtgox_BTC/PLN
mtgox_BTC/RUB
mtgox_BTC/SEK
mtgox_BTC/SGD
mtgox_BTC/THB
mtgox_BTC/USD
mtgox_USD/BTC
vircurex_BTC/DGC
vircurex_BTC/DVC
vircurex_BTC/FRC
vircurex_BTC/FTC
vircurex_BTC/IXC
vircurex_BTC/LTC
vircurex_BTC/NMC
vircurex_BTC/NVC
vircurex_BTC/PPC
vircurex_BTC/RUR
vircurex_BTC/TRC
vircurex_BTC/USD
vircurex_BTC/XPM
virwox_BTC/SLL
It's been running for a day or something and I currently have 120k trades stored (this does not include historical data).