Closed solarfrantz closed 3 years ago
Hi @solarfrantz I found the bug, its caused by xOpenHub server logic.
for quick fix you have to do this request before subscribe for candles
x.getPriceHistory({
symbol: 'BITCOIN',
period: PERIOD_FIELD.PERIOD_M1,
ticks: -1
})
I close this ticket and create another one
I created a new issue related to this: https://github.com/peterszombati/xapi-node/issues/17
That's very odd, have you tried also submitting a bug on their API's, maybe they'll fix it and we won't have to do this ugly workaround ?
I've tried to get the realtime candles, even waited more the one minute as the official docs says and apparently the listener never gets called, see the code from below:
Am I doing something wrong ?
PS: getTickPrices works as expected