Kucoin / kucoin-futures-python-sdk

MIT License
7 stars 3 forks source link

How to define leverage and TP & SL? #21

Open wkh7777 opened 2 years ago

amiroveisi commented 2 years ago

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

BaseMax commented 2 years ago

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

What about price? @bermoodastar