Skip to content

Commit 9dbdc63

Browse files
author
Sam McHardy
committed
Merge branch 'develop'
2 parents c3a6720 + 1ef5c4b commit 9dbdc63

File tree

7 files changed

+19
-12
lines changed

7 files changed

+19
-12
lines changed

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/binance.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ exceptions module
2525
:undoc-members:
2626
:show-inheritance:
2727

28-
validation module
28+
helpers module
2929
--------------------------
3030

31-
.. automodule:: binance.validation
31+
.. automodule:: binance.helpers
3232
:members:
3333
:undoc-members:
3434
:show-inheritance:

docs/helpers.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Helper Functions
2+
================
3+
4+
.. autoclass:: binance.helpers
5+
:members: date_to_milliseconds, interval_to_milliseconds
6+
:noindex:

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Contents
1717
websockets
1818
depth_cache
1919
withdraw
20+
helpers
2021
exceptions
2122
faqs
2223
changelog

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
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
author='Sam McHardy',
1111
license='MIT',
1212
author_email='',
13-
install_requires=['requests', 'six', 'Twisted', 'pyOpenSSL', 'autobahn', 'service-identity'],
13+
install_requires=['requests', 'six', 'Twisted', 'pyOpenSSL', 'autobahn', 'service-identity', 'dateparser'],
1414
keywords='binance exchange rest api bitcoin ethereum btc eth neo',
1515
classifiers=[
1616
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)