Skip to content

Conversation

c9s
Copy link
Owner

@c9s c9s commented Mar 28, 2025

Add IOC support on bitget

switch order.Type {
case types.OrderTypeLimitMaker:
req.Force(v2.OrderForcePostOnly)
case types.OrderTypeMarket:
// From the doc: It is invalid when orderType is market)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we return error here?
If someone submit order with market, stop limit, stop market, it will submit no price order ?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好像一定要給 time in force

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i fixed it by assigning it to GTC

@c9s c9s force-pushed the c9s/xgap/improve-bitget-force branch from b659ddc to 09b7c72 Compare March 28, 2025 10:09
@c9s c9s merged commit 64b4f8e into main Mar 28, 2025
3 checks passed
@c9s c9s deleted the c9s/xgap/improve-bitget-force branch March 28, 2025 11:08
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

Successfully merging this pull request may close these issues.

4 participants