kucoin-futures-python-sdk icon indicating copy to clipboard operation
kucoin-futures-python-sdk copied to clipboard

How to define leverage and TP & SL?

Open wkh7777 opened this issue 3 years ago • 2 comments

wkh7777 avatar Feb 16 '22 05:02 wkh7777

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

amiroveisi avatar Feb 24 '22 09:02 amiroveisi

body = { 'clientOid': market_order_cid, 'side': 'sell', 'symbol': symbol, 'type': 'market', 'leverage': self.leverage, 'size': quantity }

What about price? @bermoodastar

BaseMax avatar Jun 01 '22 17:06 BaseMax