Skip to content

Coinbase: remove order fetch after submission#853

Merged
vslee merged 1 commit intoDigitalRuby:mainfrom
vslee:main
Nov 22, 2024
Merged

Coinbase: remove order fetch after submission#853
vslee merged 1 commit intoDigitalRuby:mainfrom
vslee:main

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
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

Comments