gateio / gateapi-python

247 stars 92 forks source link

Problem with futures order details #80

Closed tomm1gun closed 2 years ago

tomm1gun commented 2 years ago

Hi, I am having a problem when inserting a float value on 'size' order = FuturesOrder(contract=contract, size=0.75, price=price1) I took a closer look at this document and found that you can only enter integer values, what should i do? https://github.com/gateio/gateapi-python/blob/master/docs/FuturesOrder.md

Thanks and have a good day!

revilwang commented 2 years ago

I suppose you are trying to input order amount. Size parameter is the contract size. There is a quanto_multiplier in the contract detail.order_amount = size * contract.quanto_multiplier

tomm1gun commented 2 years ago

Ok thanks, one more question, is there any istruction to acquire technical data?(volume, moving average...)

revilwang commented 2 years ago

API provides only basic data like trades, candlesticks, etc.

tomm1gun commented 2 years ago

ok, have a good day.