gateio / gateapi-python

264 stars 98 forks source link

ordering at the market price #99

Closed Monalith closed 1 year ago

Monalith commented 2 years ago

Hello Folks, I have quite some experience at Python but not gate.io api.

So my question is how to make an order at the market price.

Yes I can get the last price but at very versatile points I can not optimize the limit in a good way.

What I do now is to open an order with 1.001*price and follow the status to make sure that it is closed to make sure that I buy it but I am not sure if this is the best way.

So any ideas ? At binance there is the order_market_buy command.

Anything similar ?

Thank you, Eren Uyanik

revilwang commented 1 year ago

Spot market order has been supported in 4.34.0 version