gateio / gateapi-python

263 stars 97 forks source link

Problem with futures order details #80

Closed tomm1gun closed 3 years ago

tomm1gun commented 3 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 3 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 3 years ago

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

revilwang commented 3 years ago

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

tomm1gun commented 3 years ago

ok, have a good day.