-
Notifications
You must be signed in to change notification settings - Fork 131
Open
Description
I'm trying to submit the LIMIT OCO order without any success.
I'm using the following code and only get half of the order through, without the OCO part.
if position.amount > 0:
LimitPrice = position.base_price + 150.0
StopPrice = position.base_price - 150.0
else:
LimitPrice = position.base_price - 150.0
StopPrice = position.base_price + 150.0
await bfx.wss.inputs.submit_order(
type="LIMIT", symbol=position.symbol,
amount=-position.amount, price=LimitPrice,
lev=position.leverage, price_oco_stop=StopPrice)
Any idea? Is there a Python example using the OCO order?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels