Closed Memoi closed 5 years ago
Binance was naughty and updated their api response :sweat_smile: I have updated the relevant function parsing their exchange data.
Thanks :)
now I have this for npm test:
233 passing (17s) 1 failing
1) Binance
Should rerun binanceStream if closed:
Error: Timeout of 3000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (C:\c4d\test\tests.js)
------------- | ---------- | ---------- | ---------- | ---------- | ------------------- | File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
---|---|---|---|---|---|---|---|---|---|---|---|
All files | 98.09 | 92.42 | 92.24 | 100 | |||||||
c4d | 99.34 | 95.33 | 97.14 | 100 | |||||||
c4d.js | 99.34 | 95.33 | 97.14 | 100 | ... 60,676,698,706 | ||||||
c4d/engines | 97.47 | 91.08 | 90.12 | 100 | |||||||
binance.js | 98.13 | 89.31 | 94.81 | 100 | ... 48,749,751,769 | ||||||
bittrex.js | 96.88 | 92.27 | 85.88 | 100 | ... 11,612,622,626 | ||||||
------------- | ---------- | ---------- | ---------- | ---------- | ------------------- |
npm ERR! Test failed. See above for more details.
To keep this clean and tidy please open a separate issue as I am closing this one.
I re-install all and it's ok now :), thanks
Awesome!
Hi,
First, thanks for your great project ;)
After executed node main.js I have this error:
TypeError: Cannot read property 'split' of undefined at getPrec (C:\c4d\engines\binance.js:605:29) at binanceExchangeInfo.then (C:\c4d\engines\binance.js:612:65) at processTicksAndRejections (internal/process/task_queues.js:86:5)
########### When I use the C4DC :
Websocket connection created: 2019-04-07T14:33:31.234Z Error getting Bittrex account info Error: Error getting Bittrex account info at bittrexAPI.then (C:\c4d\engines\bittrex.js:76:19) at processTicksAndRejections (internal/process/task_queues.js:86:5) Starting Binance Socket Connections vetbtc - Binance WebSocket Client Connected: 2019-04-07T14:33:38.773Z vetusdt - Binance WebSocket Client Connected: 2019-04-07T14:33:38.778Z btcusdt - Binance WebSocket Client Connected: 2019-04-07T14:33:38.781Z WebSocket Client Connected:Listening to Binance User Account: 2019-04-07T14:33:39.083Z TypeError: Cannot read property 'one' of undefined at CryptoBot.engine.generateStrategy [as binanceGenerateStrategy] (C:\c4d\engines\binance.js:334:29) at CryptoBot.engine.Arbitrage [as binanceArbitrage] (C:\c4d\engines\binance.js:62:7) at WebSocket.client.onmessage (C:\c4d\engines\binance.js:752:10) at WebSocket.onMessage (C:\c4d\node_modules\ws\lib\EventTarget.js:99:16) at WebSocket.emit (events.js:193:13) at Receiver._receiver.onmessage (C:\c4d\node_modules\ws\lib\WebSocket.js:141:47) at Receiver.dataMessage (C:\c4d\node_modules\ws\lib\Receiver.js:389:14) at perMessageDeflate.decompress (C:\c4d\node_modules\ws\lib\Receiver.js:349:40) at _decompress (C:\c4d\node_modules\ws\lib\PerMessageDeflate.js:306:9) at _inflate.flush (C:\c4d\node_modules\ws\lib\PerMessageDeflate.js:386:7) TypeError: Cannot read property 'one' of undefined at CryptoBot.engine.generateStrategy [as binanceGenerateStrategy] (C:\c4d\engines\binance.js:322:29) at CryptoBot.engine.Arbitrage [as binanceArbitrage] (C:\c4d\engines\binance.js:62:7) at WebSocket.client.onmessage (C:\c4d\engines\binance.js:752:10) at WebSocket.onMessage (C:\c4d\node_modules\ws\lib\EventTarget.js:99:16) at WebSocket.emit (events.js:193:13) at Receiver._receiver.onmessage (C:\c4d\node_modules\ws\lib\WebSocket.js:141:47) at Receiver.dataMessage (C:\c4d\node_modules\ws\lib\Receiver.js:389:14) at perMessageDeflate.decompress (C:\c4d\node_modules\ws\lib\Receiver.js:349:40) at _decompress (C:\c4d\node_modules\ws\lib\PerMessageDeflate.js:306:9) at _inflate.flush (C:\c4d\node_modules\ws\lib\PerMessageDeflate.js:386:7) TypeError: Cannot read property 'one' of undefined at CryptoBot.engine.generateStrategy [as binanceGenerateStrategy] (C:\c4d\engines\binance.js:328:29) at CryptoBot.engine.Arbitrage [as binanceArbitrage] (C:\c4d\engines\binance.js:62:7) at WebSocket.client.onmessage (C:\c4d\engines\binance.js:752:10) at WebSocket.onMessage (C:\c4d\node_modules\ws\lib\EventTarget.js:99:16) at WebSocket.emit (events.js:193:13) at Receiver._receiver.onmessage (C:\c4d\node_modules\ws\lib\WebSocket.js:141:47) at Receiver.dataMessage (C:\c4d\node_modules\ws\lib\Receiver.js:389:14) at perMessageDeflate.decompress (C:\c4d\node_modules\ws\lib\Receiver.js:349:40) at _decompress (C:\c4d\node_modules\ws\lib\PerMessageDeflate.js:306:9) at _inflate.flush (C:\c4d\node_modules\ws\lib\PerMessageDeflate.js:386:7) ########### After executed npm test :
233 passing (15s) 1 failing
1) Binance
Precision
npm ERR! Test failed. See above for more details.
my conf :
Thanks for your help :)