okxapi / python-okx

408 stars 156 forks source link

module 'okx.consts' has no attribute 'API_URL' #6

Closed Hearty07 closed 1 year ago

Hearty07 commented 1 year ago

in _request timestamp = self._get_timestamp() File "C:\Users\Hearty\AppData\Local\Programs\Python\Python310\lib\site-packages\okx\client.py", line 52, in _get_timestamp request_path = c.API_URL + c.SERVER_TIMESTAMP_URL AttributeError: module 'okx.consts' has no attribute 'API_URL'

使用use_server_time=True以后出现上述问题,另外是否使用server_time区别是什么?

Hearty07 commented 1 year ago
okxapi commented 1 year ago

this issues had been resolved.pls upgrade python-okx version.use_server_time=True means using the time in server,else using client local time,there are maybe different.

asd1054 commented 1 year ago

不清楚,反正使用不使用都是返回我格林威治时间,没啥用,我还以为是 超时时间,但是我无法验证,如果 问题已解决,请告知一下