mazmex7 / BitMEX-API-python

A lightweight script to connect BitMEX REST API.
52 stars 22 forks source link

Function didn't work.. #3

Open jeongcatfish opened 5 years ago

jeongcatfish commented 5 years ago

I used simple.py

I attempt to get previous trade price. so I looked it up function from here(https://raw.githubusercontent.com/BitMEX/api-connectors/master/swagger.json)

and I got one. "/trade/bucketed": { "get": { "tags": [ "Trade" ], "summary": "Get previous trades in time buckets.", "operationId": "Trade.getBucketed",

I command like this. print(bitmex_cli.Trade.getBucketed()) # didn't work error console : AttributeError: Resource 'Trade' has no operation 'getBucketed' print(bitmex_cli.Trade.Trade.getBucketed()) #didn't work error console : AttributeError: Resource 'Trade' has no operation 'Trade'

Help~

Thank you!