I am looking to place an order that takes margin while placing long/short order , and if the price hits target price , close the trade and repay the margin back.
Does stopPrice allow this in the margin api ? (POST /sapi/v1/margin/order)
I understand MARGIN_BUY can be used to take margin and AUTO_REPAY to make auto-repayment , but can this be achieved in a single trade if we set a stopPrice (TAKE_PROFIT) ??