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

fix error_on_submit_market_order_due_to_reduce_only_order_would_increase_position #6790

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -376,7 +376,7 @@ async def _place_order(
"isBuy": True if trade_type is TradeType.BUY else False,
"limitPx": float(price),
"sz": float(amount),
"reduceOnly": position_action == PositionAction.CLOSE,
"reduceOnly": False,
"orderType": param_order_type,
"cloid": order_id,
}
Expand Down