Skip to content

Commit 1ef5c4b

Browse files
author
Sam McHardy
committed
Merge branch 'bugfix/historical_klines_example_error' into develop
2 parents a50aa2b + 54eb752 commit 1ef5c4b

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

PYPIREADME.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ Quick Start
116116
# get historical kline data from any date range
117117
118118
# fetch 1 minute klines for the last day up until now
119-
klines = client.get_historical_klines("BNBBTC", Client.KLINE_INTERVAL_1MINUTE, "1 day ago UTC"))
119+
klines = client.get_historical_klines("BNBBTC", Client.KLINE_INTERVAL_1MINUTE, "1 day ago UTC")
120120
121121
# fetch 30 minute klines for the last month of 2017
122-
klines = client.get_historical_klines("ETHBTC", Client.KLINE_INTERVAL_30MINUTE, "1 Dec, 2017", "1 Jan, 2018"))
122+
klines = client.get_historical_klines("ETHBTC", Client.KLINE_INTERVAL_30MINUTE, "1 Dec, 2017", "1 Jan, 2018")
123123
124124
# fetch weekly klines since it listed
125-
klines = client.get_historical_klines("NEOBTC", KLINE_INTERVAL_1WEEK, "1 Jan, 2017"))
125+
klines = client.get_historical_klines("NEOBTC", KLINE_INTERVAL_1WEEK, "1 Jan, 2017")
126126
127127
128128
For more `check out the documentation <https://python-binance.readthedocs.io/en/latest/>`_.

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ Quick Start
119119
# get historical kline data from any date range
120120
121121
# fetch 1 minute klines for the last day up until now
122-
klines = client.get_historical_klines("BNBBTC", Client.KLINE_INTERVAL_1MINUTE, "1 day ago UTC"))
122+
klines = client.get_historical_klines("BNBBTC", Client.KLINE_INTERVAL_1MINUTE, "1 day ago UTC")
123123
124124
# fetch 30 minute klines for the last month of 2017
125-
klines = client.get_historical_klines("ETHBTC", Client.KLINE_INTERVAL_30MINUTE, "1 Dec, 2017", "1 Jan, 2018"))
125+
klines = client.get_historical_klines("ETHBTC", Client.KLINE_INTERVAL_30MINUTE, "1 Dec, 2017", "1 Jan, 2018")
126126
127127
# fetch weekly klines since it listed
128-
klines = client.get_historical_klines("NEOBTC", KLINE_INTERVAL_1WEEK, "1 Jan, 2017"))
128+
klines = client.get_historical_klines("NEOBTC", KLINE_INTERVAL_1WEEK, "1 Jan, 2017")
129129
130130
For more `check out the documentation <https://python-binance.readthedocs.io/en/latest/>`_.
131131

docs/market_data.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ Fetch klines for any date range and interval
4646
.. code:: python
4747
4848
# fetch 1 minute klines for the last day up until now
49-
klines = client.get_historical_klines("BNBBTC", Client.KLINE_INTERVAL_1MINUTE, "1 day ago UTC"))
49+
klines = client.get_historical_klines("BNBBTC", Client.KLINE_INTERVAL_1MINUTE, "1 day ago UTC")
5050
5151
# fetch 30 minute klines for the last month of 2017
52-
klines = client.get_historical_klines("ETHBTC", Client.KLINE_INTERVAL_30MINUTE, "1 Dec, 2017", "1 Jan, 2018"))
52+
klines = client.get_historical_klines("ETHBTC", Client.KLINE_INTERVAL_30MINUTE, "1 Dec, 2017", "1 Jan, 2018")
5353
5454
# fetch weekly klines since it listed
55-
klines = client.get_historical_klines("NEOBTC", KLINE_INTERVAL_1WEEK, "1 Jan, 2017"))
55+
klines = client.get_historical_klines("NEOBTC", KLINE_INTERVAL_1WEEK, "1 Jan, 2017")
5656
5757
`Get 24hr Ticker <binance.html#binance.client.Client.get_ticker>`_
5858
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)