python-binance 1.0.30__tar.gz → 1.0.35__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python-binance-1.0.30/python_binance.egg-info → python_binance-1.0.35}/PKG-INFO +28 -4
- {python-binance-1.0.30 → python_binance-1.0.35}/README.rst +15 -1
- {python-binance-1.0.30 → python_binance-1.0.35}/binance/__init__.py +1 -2
- {python-binance-1.0.30 → python_binance-1.0.35}/binance/async_client.py +749 -25
- {python-binance-1.0.30 → python_binance-1.0.35}/binance/base_client.py +25 -2
- {python-binance-1.0.30 → python_binance-1.0.35}/binance/client.py +560 -20
- {python-binance-1.0.30 → python_binance-1.0.35}/binance/enums.py +5 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/binance/exceptions.py +19 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/binance/helpers.py +1 -1
- python_binance-1.0.35/binance/ws/keepalive_websocket.py +274 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/binance/ws/reconnecting_websocket.py +3 -2
- {python-binance-1.0.30 → python_binance-1.0.35}/binance/ws/streams.py +31 -7
- {python-binance-1.0.30 → python_binance-1.0.35}/binance/ws/threaded_stream.py +19 -1
- {python-binance-1.0.30 → python_binance-1.0.35}/binance/ws/websocket_api.py +25 -1
- {python-binance-1.0.30 → python_binance-1.0.35/python_binance.egg-info}/PKG-INFO +28 -4
- {python-binance-1.0.30 → python_binance-1.0.35}/python_binance.egg-info/SOURCES.txt +5 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/setup.py +1 -1
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_async_client_futures.py +267 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_async_client_ws_futures_requests.py +91 -1
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_client_futures.py +347 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_client_ws_futures_requests.py +84 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_ids.py +40 -0
- python_binance-1.0.35/tests/test_keepalive_reconnect.py +215 -0
- python_binance-1.0.35/tests/test_region_exception.py +155 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_threaded_stream.py +3 -0
- python_binance-1.0.35/tests/test_user_socket_integration.py +191 -0
- python_binance-1.0.35/tests/test_verbose_mode.py +56 -0
- python_binance-1.0.35/tests/test_websocket_verbose.py +117 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_ws_api.py +11 -9
- python-binance-1.0.30/binance/ws/keepalive_websocket.py +0 -144
- {python-binance-1.0.30 → python_binance-1.0.35}/LICENSE +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/binance/ws/__init__.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/binance/ws/constants.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/binance/ws/depthcache.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/pyproject.toml +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/python_binance.egg-info/dependency_links.txt +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/python_binance.egg-info/requires.txt +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/python_binance.egg-info/top_level.txt +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/setup.cfg +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_api_request.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_async_client.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_async_client_gift_card copy.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_async_client_margin.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_async_client_options.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_async_client_portfolio.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_async_client_ws_api.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_client.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_client_gift_card.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_client_margin.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_client_options.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_client_portfolio.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_client_ws_api.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_cryptography.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_depth_cache.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_futures.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_get_order_book.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_headers.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_historical_klines.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_init.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_order.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_ping.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_reconnecting_websocket.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_socket_manager.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_streams.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_streams_options.py +0 -0
- {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_threaded_socket_manager.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
2
|
-
Name:
|
|
3
|
-
Version: 1.0.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: python_binance
|
|
3
|
+
Version: 1.0.35
|
|
4
4
|
Summary: Binance REST API python implementation
|
|
5
5
|
Home-page: https://github.com/sammchardy/python-binance
|
|
6
6
|
Author: Sam McHardy
|
|
@@ -29,9 +29,19 @@ Requires-Dist: dateparser
|
|
|
29
29
|
Requires-Dist: aiohttp
|
|
30
30
|
Requires-Dist: websockets
|
|
31
31
|
Requires-Dist: pycryptodome
|
|
32
|
+
Dynamic: author
|
|
33
|
+
Dynamic: classifier
|
|
34
|
+
Dynamic: description
|
|
35
|
+
Dynamic: description-content-type
|
|
36
|
+
Dynamic: home-page
|
|
37
|
+
Dynamic: keywords
|
|
38
|
+
Dynamic: license
|
|
39
|
+
Dynamic: license-file
|
|
40
|
+
Dynamic: requires-dist
|
|
41
|
+
Dynamic: summary
|
|
32
42
|
|
|
33
43
|
=================================
|
|
34
|
-
Welcome to python-binance v1.0.
|
|
44
|
+
Welcome to python-binance v1.0.35
|
|
35
45
|
=================================
|
|
36
46
|
|
|
37
47
|
.. image:: https://img.shields.io/pypi/v/python-binance.svg
|
|
@@ -98,6 +108,7 @@ Features
|
|
|
98
108
|
- Demo trading support (by providing demo=True)
|
|
99
109
|
- Testnet support for Spot, Futures and Vanilla Options (deprecated)
|
|
100
110
|
- Simple handling of authentication include RSA and EDDSA keys
|
|
111
|
+
- Verbose mode for inspecting requests (verbose=True)
|
|
101
112
|
- No need to generate timestamps yourself, the wrapper does it for you
|
|
102
113
|
- RecvWindow sent by default
|
|
103
114
|
- Response exception handling
|
|
@@ -198,6 +209,18 @@ pass `testnet=True` when creating the client.
|
|
|
198
209
|
# fetch weekly klines since it listed
|
|
199
210
|
klines = client.get_historical_klines("NEOBTC", Client.KLINE_INTERVAL_1WEEK, "1 Jan, 2017")
|
|
200
211
|
|
|
212
|
+
# create conditional order using the dedicated method
|
|
213
|
+
algo_order = client.futures_create_algo_order(symbol="LTCUSDT", side="BUY", type="STOP_MARKET", quantity=0.1, triggerPrice = 120)
|
|
214
|
+
|
|
215
|
+
# create conditional order using the create_order method (will redirect to the algoOrder as well)
|
|
216
|
+
order2 = await client.futures_create_order(symbol="LTCUSDT", side="BUY", type="STOP_MARKET", quantity=0.1, triggerPrice = 120)
|
|
217
|
+
|
|
218
|
+
# cancel algo/conditional order
|
|
219
|
+
cancel2 = await client.futures_cancel_algo_order(orderId=order2["orderId"], symbol="LTCUSDT")
|
|
220
|
+
|
|
221
|
+
# fetch open algo/conditional orders
|
|
222
|
+
open_orders = await client.futures_get_open_algo_orders(symbol="LTCUSDT")
|
|
223
|
+
|
|
201
224
|
# create order through websockets
|
|
202
225
|
order_ws = client.ws_create_order( symbol="LTCUSDT", side="BUY", type="MARKET", quantity=0.1)
|
|
203
226
|
|
|
@@ -286,6 +309,7 @@ for more information.
|
|
|
286
309
|
# fetch weekly klines since it listed
|
|
287
310
|
klines = await client.get_historical_klines("NEOBTC", Client.KLINE_INTERVAL_1WEEK, "1 Jan, 2017")
|
|
288
311
|
|
|
312
|
+
|
|
289
313
|
# create order through websockets
|
|
290
314
|
order_ws = await client.ws_create_order( symbol="LTCUSDT", side="BUY", type="MARKET", quantity=0.1)
|
|
291
315
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
=================================
|
|
2
|
-
Welcome to python-binance v1.0.
|
|
2
|
+
Welcome to python-binance v1.0.35
|
|
3
3
|
=================================
|
|
4
4
|
|
|
5
5
|
.. image:: https://img.shields.io/pypi/v/python-binance.svg
|
|
@@ -66,6 +66,7 @@ Features
|
|
|
66
66
|
- Demo trading support (by providing demo=True)
|
|
67
67
|
- Testnet support for Spot, Futures and Vanilla Options (deprecated)
|
|
68
68
|
- Simple handling of authentication include RSA and EDDSA keys
|
|
69
|
+
- Verbose mode for inspecting requests (verbose=True)
|
|
69
70
|
- No need to generate timestamps yourself, the wrapper does it for you
|
|
70
71
|
- RecvWindow sent by default
|
|
71
72
|
- Response exception handling
|
|
@@ -166,6 +167,18 @@ pass `testnet=True` when creating the client.
|
|
|
166
167
|
# fetch weekly klines since it listed
|
|
167
168
|
klines = client.get_historical_klines("NEOBTC", Client.KLINE_INTERVAL_1WEEK, "1 Jan, 2017")
|
|
168
169
|
|
|
170
|
+
# create conditional order using the dedicated method
|
|
171
|
+
algo_order = client.futures_create_algo_order(symbol="LTCUSDT", side="BUY", type="STOP_MARKET", quantity=0.1, triggerPrice = 120)
|
|
172
|
+
|
|
173
|
+
# create conditional order using the create_order method (will redirect to the algoOrder as well)
|
|
174
|
+
order2 = await client.futures_create_order(symbol="LTCUSDT", side="BUY", type="STOP_MARKET", quantity=0.1, triggerPrice = 120)
|
|
175
|
+
|
|
176
|
+
# cancel algo/conditional order
|
|
177
|
+
cancel2 = await client.futures_cancel_algo_order(orderId=order2["orderId"], symbol="LTCUSDT")
|
|
178
|
+
|
|
179
|
+
# fetch open algo/conditional orders
|
|
180
|
+
open_orders = await client.futures_get_open_algo_orders(symbol="LTCUSDT")
|
|
181
|
+
|
|
169
182
|
# create order through websockets
|
|
170
183
|
order_ws = client.ws_create_order( symbol="LTCUSDT", side="BUY", type="MARKET", quantity=0.1)
|
|
171
184
|
|
|
@@ -254,6 +267,7 @@ for more information.
|
|
|
254
267
|
# fetch weekly klines since it listed
|
|
255
268
|
klines = await client.get_historical_klines("NEOBTC", Client.KLINE_INTERVAL_1WEEK, "1 Jan, 2017")
|
|
256
269
|
|
|
270
|
+
|
|
257
271
|
# create order through websockets
|
|
258
272
|
order_ws = await client.ws_create_order( symbol="LTCUSDT", side="BUY", type="MARKET", quantity=0.1)
|
|
259
273
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
-
__version__ = "1.0.
|
|
7
|
+
__version__ = "1.0.35"
|
|
8
8
|
|
|
9
9
|
from binance.async_client import AsyncClient # noqa
|
|
10
10
|
from binance.client import Client # noqa
|
|
@@ -13,7 +13,6 @@ from binance.ws.depthcache import (
|
|
|
13
13
|
OptionsDepthCacheManager, # noqa
|
|
14
14
|
ThreadedDepthCacheManager, # noqa
|
|
15
15
|
FuturesDepthCacheManager, # noqa
|
|
16
|
-
OptionsDepthCacheManager, # noqa
|
|
17
16
|
)
|
|
18
17
|
from binance.ws.streams import (
|
|
19
18
|
BinanceSocketManager, # noqa
|