mioxtw / ArbBot

2 stars 2 forks source link

Websocket broken! #3

Open mioxtw opened 2 years ago

mioxtw commented 2 years ago

[2021-09-25 00:10:47] [info] asio async_read_at_least error: asio.ssl.stream:1 (stream truncated):[3.7] [2021-09-25 00:10:47] [error] handle_read_frame error: websocketpp.transport:2 (Underlying Transport Error) [2021-09-25 00:10:47] [info] asio async_shutdown error: asio.ssl.stream:1 (stream truncated)

Probable Solution: Need to implement ping pong each 15s

From FTX Websocket API: [Send pings at regular intervals (every 15 seconds): {'op': 'ping'}. You will see an {'type': 'pong'} response.]

mioxtw commented 2 years ago

Again

ubuntu@ip-172-31-17-19:~/ArbBot/bin/src/example$ ./arb arb50000_close.json


[Master Mio] ArbBot v0.2.13 Auther: [Mio] Website: [http://miobtc.com] Email: [miox.tw@gmail.com]

[FTX] SubAccount Name: [ARB50000] Open/Close positions: [close] Size: [1000] Premium: [-0.5 %] Batch size limit: [100] Hedge Mode: [1] FTX Futures[FTT-PERP] / FTX Spot[FTT/USD]

[FTX] Balance: [USD] :[-288964] [FTX] Balance: [FTT] :[6500] [FTX] Margin Balance: [USD] :[70108.9]

[FTX] Max Leverage: [20] [FTX] Current Leverage: [12.4586] [FTX] Spot Positions: [FTT] :[6500]

[2021-10-14 16:23:29] [info] asio async_read_at_least error: asio.ssl.stream:1 (stream truncated):[40.8] [2021-10-14 16:23:29] [error] handle_read_frame error: websocketpp.transport:2 (Underlying Transport Error)

mioxtw commented 2 years ago

Available Solution: https://www.coder.work/article/7300281