BitMEX / api-connectors

Libraries for connecting to the BitMEX API.

Home Page:https://www.bitmex.com/app/restAPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The function "datetime.datetime( , tzinfo=tzutc())" does not work in the http-python-connector

andant7 opened this issue · comments

Example:

q=client.Quote.Quote_getBucketed(symbol="XBTUSD", binSize="1m", count=20, reverse=True).result()
print(q[0][0])

Result:
{'timestamp': datetime.datetime(2021, 4, 19, 12, 21, tzinfo=tzutc()), 'symbol': 'XBTUSD', 'bidSize': 66, 'bidPrice': 57124.5, 'askPrice': 57173.5, 'askSize': 4745}

The function "datetime.datetime( , tzinfo=tzutc())" does not work.

Why?