ctubio / Krypto-trading-bot

Self-hosted crypto trading bot (automated high frequency market making) written in C++
https://127.0.0.1:3000
Other
3.37k stars 823 forks source link

Error three headed monkey was found (Bitfinex 'std::domain_error') #192

Closed mattygug closed 7 years ago

mattygug commented 7 years ago

After latest update Bitfinex BTC/USD

16:19:51.819769 GW Bitfinex WS Error, reconnecting..
16:19:51.820 main Event loop delay 1600ms
16:19:51.820793 Unable to calculate quote, missing fair value.
16:19:52.820213 Unable to calculate quote, missing fair value.
16:19:53.820775 Unable to calculate quote, missing fair value.
16:19:54.821204 Unable to calculate quote, missing fair value.
16:19:54.829041 GW Bitfinex WS Info {"event":"info","version":2}
16:19:54.864536 GW Bitfinex WS Streaming channel 51:"trades"
16:19:54.865073 GW Bitfinex WS Streaming wallet and orders "OK" 0:"auth"
terminate called after throwing an instance of 'std::domain_error'
  what():  type must be string, but is null
16:19:54.865465 Errrror: EV signal 6 Aborted (Three-Headed Monkey found):
/home/ubuntu/k/app/server/lib/K.linux.57.node(_ZN1K2EV3wtfEi+0xc0)[0x7f48e8d6f580]
/lib/x86_64-linux-gnu/libc.so.6(+0x354b0)[0x7f48eb1274b0]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f48eb127428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f48eb12902a]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x15d)[0x7f48ebc890ad]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8f066)[0x7f48ebc87066]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8f0b1)[0x7f48ebc870b1]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8f2c9)[0x7f48ebc872c9]
/home/ubuntu/k/app/server/lib/K.linux.57.node(_ZNK8nlohmann10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS_14adl_serializerEE3getIS8_S8_Li0EEET0_v+0xc6)[0x7f48e8d71536]
/home/ubuntu/k/app/server/lib/K.linux.57.node(_ZZN1K10GwBitfinex4bookEvENKUlPN3uWS9WebSocketILb0EEEPcmNS1_6OpCodeEE2_clES4_S5_mS6_+0xa97)[0x7f48e8de0177]
/home/ubuntu/k/app/server/lib/K.linux.57.node(_ZN3uWS9WebSocketILb0EE14handleFragmentEPcmjibPNS_14WebSocketStateILb0EEE+0x270)[0x7f48e8d68230]
/home/ubuntu/k/app/server/lib/K.linux.57.node(_ZN3uWS9WebSocketILb0EE6onDataEPN2uS6SocketEPcm+0x1e2)[0x7f48e8d68b32]
/home/ubuntu/k/app/server/lib/K.linux.57.node(_ZN2uS6Socket12sslIoHandlerIN3uWS9WebSocketILb0EEEEEvP4Pollii+0x177)[0x7f48e8d693e7]
node[0x162cf48]
node(uv_run+0x15a)[0x161c26a]
node(_ZN4node5StartEP9uv_loop_siPKPKciS5_+0x919)[0x13d8949]
node(_ZN4node5StartEiPPc+0x115)[0x13d23d5]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f48eb112830]
node(_start+0x29)[0x89a939]

thanks in advance for doing this all @ctubio i will pop by in the IRC to offer some help getting slowly into this

mattygug commented 7 years ago

can also be that bitfinex is down atm (cannot access my funds in any way)....

ctubio commented 7 years ago

ye maybe, but anyway the bot should not crash, thanks for the report'¡

mattygug commented 7 years ago

yeah there is something with the quoting they are not coming in anymore to the UI