thrasher-corp / gocryptotrader

A cryptocurrency trading bot and framework supporting multiple exchanges written in Golang.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bitfinex: WS cancel stuck waiting for confirmation

gbjk opened this issue · comments

Given a cancellation request such as:

[[0,"oc",null,{"id":123642403113}]]

And an ack:

[0,"n",[1690698879385,"oc-req",null,null,[123642403113,null,136725840,"tBTCUST",1690698868393,169
0698868394,0.0008,0.0008,"EXCHANGE LIMIT",null,null,null,0,"ACTIVE",null,null,29145,0,0,0,null,null,null,0,0,null,null,null,"API>BFX",null,null,{}],null,"SUCCESS","Submitted for cancellation; waiting for confirmation (ID: 123642403113)."]]

and confirmation

[0,"oc",[123642403113,null,136725840,"tBTCUST",1690698868393,1690698879386,0.0008,0.0008,"EXCHANG
E LIMIT",null,null,null,0,"CANCELED",null,null,29145,0,0,0,null,null,null,0,0,null,null,null,"API>BFX",null,null,{}]]

We eventually get a response to cancelOrder:
Bitfinex websocket connection: timeout waiting for response with signature: 123642403113"
Where the signature is the order number.

It seems to not be accepting the cancellation ack/conf.

Can't self-assign this but I'm working on it 🛠️