Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOC/FAK canceled orders at near spot price doesn't call back OnDoneReceived. #291

Open
prozerran opened this issue Jun 23, 2021 · 3 comments

Comments

@prozerran
Copy link

IOC/FAK canceled orders are never called back to
WebSocket_OnDoneReceived(object sender, WebfeedEventArgs e)

The Done.DoneReasonType.Canceled are not called in the cases where
the price is VERY close to the actual price.

For example, if current BTC price is 40,000,
and you create a BUY Limit IOC/FAK order at a few dollars short of 40,000,
say 39998. This order should be immediately not filled and canceled, which it DID
in Coinbase Pro. Coinbase Pro does show this canceled order, but the library
do not call back to WebSocket_OnDoneReceived(object sender, WebfeedEventArgs e)
with Done.DoneReasonType.Canceled.

However, if the price is much further apart say, > $50, then i get the canceled callback.
But NOT if the price is < ~$5.

@dougdellolio
Copy link
Owner

hi. there is no logic around price that exists in this library - it simply receives the "Done" messages from the WebSocket and treats all messages the same. It sounds like it is just not being sent back from Coinbase Pro with that ResponseType.

The only thing I can recommend is that maybe it's coming through from a different event. The full list of events are here:
https://github.com/dougdellolio/coinbasepro-csharp/blob/master/CoinbasePro/WebSocket/IWebSocket.cs

If this doesn't solve the issue, you may want to submit a support ticket to get some clarification from them directly as I am not sure there is anything to fix on this end

@prozerran
Copy link
Author

But can you verify the issue exist as well on your end? Perhaps you can help submit the report as I am not faimilar with their Rest Api. I am only leveraging on your library as a bridge to connect with them.

@RobertMeffe
Copy link

If the Order was placed that close to the current trading price; That is correct behavior as the order was never "Open" so no "Done" message would be sent. Check to make sure an Open message was created for that order if not it was canceled.
Disclaimer: Base on knowing the Coinbase Pro API. Day 1 with this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants