kucoin-api-docs
kucoin-api-docs copied to clipboard
set take profit and stop loss for positions
hi . i create order with this url : /api/v1/orders i want set take profit and stop loss after open position . how can i do it ? please help me . this is necessary
同问
you can do this in futures api with creating 3 order first order is opening trade wait few second and create second order with stop order option and reduceOnly flag set as true wait few second and at last create third order as limit order for TP with reduce only option set as true.
@K3RIoT im with some problems making an Stop Loss and Take Profit order as you says. Lets says im long ETH at 1600$ with a leverage of 10 and i purcahse 2 sizes. This is my order:
data = {
"clientOid": str(uuid.uuid4()),
"side": "buy",
"symbol": "ETHUSDTM",
"type": "market",
"leverage": 10,
"size": "2",
}
How would i create my SL 0.5% down of 1600$ and TP 1% above 1600%? Thanks
mit order for TP with reduce only option set as true.
hi can you explain more ? or write an example please