With ccxt library I can create orders on phemex. I use the following command:
order = exchange.create_order(symbol, type, side, amount, price, params)
But I want to do a leverage (contract) trade, how to set that? And how to change if the order is a long or short order? And by creating the order I want to give a stop loss and a take profit point. I think I have to do that in params. Do anyone have the syntax for that?
Thank you!