gateio / gatews

Gate Websocket V4 SDK
89 stars 35 forks source link

Can anyone help me about placing spot order? #26

Closed ikaraburc closed 2 years ago

ikaraburc commented 2 years ago

I am new, I want to learn how to place an order with python websocket app in gate.io.. thanks to all

ikaraburc commented 2 years ago

just an example

revilwang commented 2 years ago

You need to use gate-api to place order. gatews doesn't support it.

pip install gate-api

ikaraburc commented 2 years ago

Dear revilwang thank you for your kind help. it may be a silly question, if we can not place an order by using gatews, what is the use of gatews and how can get benefit from it? Or do we have to use gateapi and gatews together? Thank you in advance

revilwang commented 2 years ago

You can trade without gatews at all. However gatews can help you get recent market data faster. Another thing is gatews pushes new update to you, while using gate-api, you need to query periodically yourself

ikaraburc commented 2 years ago

I have my own python code for gateio coins trade written by me by using restapi. But I want to get data by websocket to get the data faster and change my buy/sell orders as per websocket data. Is this possible? if not possible, only to getting by websocket should be useless?

revilwang commented 2 years ago

Of course it is possible. I suggest you can try the gatews examples to have a quick impression about what gatews can do for you. For detailed data websocket provides, refer to the official WebSocket reference documents