kucoin-futures-python-sdk
kucoin-futures-python-sdk copied to clipboard
How to define leverage and TP & SL?
You can send the value for leverage in the body of the trade request.
body = {
'clientOid': market_order_cid,
'side': 'sell',
'symbol': symbol,
'type': 'market',
'leverage': self.leverage,
'size': quantity
}
P.S.
I don't use this library for trading, I just create and send a normal HTTP Request using requests.post
body = { 'clientOid': market_order_cid, 'side': 'sell', 'symbol': symbol, 'type': 'market', 'leverage': self.leverage, 'size': quantity }
What about price? @bermoodastar