Skip to content

sl & tp error #14

Description

@RobinDala2020

Hi
I got a LONG position and tried to set take-profit and stop-loss for the position. I used the bellow code but faced with stop loss price and taker profit price less then or equal 0.0 error from bingX.

order = Order(symbol='TRB-USDT', side="SELL", positionSide="LONG", type="TAKE_PROFIT_MARKET", quantity=0.1, price=78.2)
Perpetual.trade.create_order(order)

The evidence is attached. Please guide me.

BR,
Robin Dala

price

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions