Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

an automatic manipulation of request parameters by using the function "get_historical_klines" #459

Closed
stein5 opened this issue Nov 29, 2019 · 0 comments

Comments

@stein5
Copy link

stein5 commented Nov 29, 2019

Describe the bug
Even though the parameters start_str and end_str by using the function "get_historical_klines" are put in utc(+0000) timestamp in milliseconds like start_str="1572566400000" and end_str="1572567000000", the response data of the request are the local timezone data(+0900) starting with 1572598800000...
I think two parameters "str_str" and "end_str" in the timestamp format are manipulated to local timezone by requesting.

To Reproduce

request:
client.get_historical_klines("BTCUSDT", Client.KLINE_INTERVAL_1MINUTE, "1572566400000", end_str="1572567000000", limit=500)

response:
[[1572598800000, '9134.63000000', '9136.00000000', '9124.06000000', '9124.29000000', '38.03214700', 1572598859999, '347235.10461681', 415, '13.53411000', '123585.92727641', '0'], [1572598860000, '9124.30000000', '9126.02000000', '9118.10000000', '9121.92000000', '21.02118800', 1572598919999, '191742.91957637', 260, '9.20189600', '83940.02573609', '0'], [1572598920000, '9121.02000000', '9132.21000000', '9118.95000000', '9124.88000000', '31.55935500', 1572598979999, '288020.13766589', 361, '16.46156900', '150229.54058978', '0'],...

Expected behavior
response data that are expected...
[[1572566400000, '9140.86000000', '9141.99000000', '9128.84000000', '9130.69000000', '73.77571600', 1572566459999, '673937.26245627', 304, '42.19302100', '385436.26444131', '0'], [1572566460000, '9130.10000000', '9144.70000000', '9129.73000000', '9130.35000000', '39.60444800', 1572566519999, '361878.05486463', 256, '22.14900800', '202378.77002015', '0'], [1572566520000, '9133.62000000', '9133.62000000', '9125.81000000', '9128.08000000', '33.79200600', 1572566579999, '308489.02942042', 242, '20.25087900', '184886.50938397', '0'],...

Environment (please complete the following information):

  • Python version: 3.7.4
  • Virtual Env: pyenv virtualenv
  • OS: osx
  • python-binance version: 0.7.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants