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

Coinbase: remove order fetch after submission #853

Merged
merged 1 commit into from
Nov 22, 2024
Merged

Conversation

vslee
Copy link
Collaborator

@vslee vslee commented Nov 21, 2024

In #818, Coinbase was updated for the V3 API. As part of this, a fetch of the order was added during order submission. Since Coinbase does not return full order info as a response. Checking to fill in the additional information made sense, but also causes some problems. It results in 2 round trips to the server for each order submission. This can be problematic if many orders are being submitted quickly. There is no way for a user to opt out of this behavior (without complicating the method signature).
Thus, I will remove the order fetch and allow users who need the additional info to fetch it with an additional call. This also frees us of the dilemma of what to do if the new order does not match the submitted specs. Such as a buy order turning into sell order, as happens in the sandbox.

@vslee vslee merged commit dad0ec7 into DigitalRuby:main Nov 22, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants