kucoin-api-docs icon indicating copy to clipboard operation
kucoin-api-docs copied to clipboard

set take profit and stop loss for positions

Open erik7667 opened this issue 3 years ago • 4 comments

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

erik7667 avatar Nov 10 '21 12:11 erik7667

同问

virtuef avatar Dec 16 '21 01:12 virtuef

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 avatar Feb 28 '22 07:02 K3RIoT

@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

pedrofaria09 avatar Feb 11 '23 23:02 pedrofaria09

mit order for TP with reduce only option set as true.

hi can you explain more ? or write an example please

mjmajidf avatar Mar 18 '23 10:03 mjmajidf