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.
Files changed (66) hide show
  1. {python-binance-1.0.30/python_binance.egg-info → python_binance-1.0.35}/PKG-INFO +28 -4
  2. {python-binance-1.0.30 → python_binance-1.0.35}/README.rst +15 -1
  3. {python-binance-1.0.30 → python_binance-1.0.35}/binance/__init__.py +1 -2
  4. {python-binance-1.0.30 → python_binance-1.0.35}/binance/async_client.py +749 -25
  5. {python-binance-1.0.30 → python_binance-1.0.35}/binance/base_client.py +25 -2
  6. {python-binance-1.0.30 → python_binance-1.0.35}/binance/client.py +560 -20
  7. {python-binance-1.0.30 → python_binance-1.0.35}/binance/enums.py +5 -0
  8. {python-binance-1.0.30 → python_binance-1.0.35}/binance/exceptions.py +19 -0
  9. {python-binance-1.0.30 → python_binance-1.0.35}/binance/helpers.py +1 -1
  10. python_binance-1.0.35/binance/ws/keepalive_websocket.py +274 -0
  11. {python-binance-1.0.30 → python_binance-1.0.35}/binance/ws/reconnecting_websocket.py +3 -2
  12. {python-binance-1.0.30 → python_binance-1.0.35}/binance/ws/streams.py +31 -7
  13. {python-binance-1.0.30 → python_binance-1.0.35}/binance/ws/threaded_stream.py +19 -1
  14. {python-binance-1.0.30 → python_binance-1.0.35}/binance/ws/websocket_api.py +25 -1
  15. {python-binance-1.0.30 → python_binance-1.0.35/python_binance.egg-info}/PKG-INFO +28 -4
  16. {python-binance-1.0.30 → python_binance-1.0.35}/python_binance.egg-info/SOURCES.txt +5 -0
  17. {python-binance-1.0.30 → python_binance-1.0.35}/setup.py +1 -1
  18. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_async_client_futures.py +267 -0
  19. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_async_client_ws_futures_requests.py +91 -1
  20. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_client_futures.py +347 -0
  21. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_client_ws_futures_requests.py +84 -0
  22. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_ids.py +40 -0
  23. python_binance-1.0.35/tests/test_keepalive_reconnect.py +215 -0
  24. python_binance-1.0.35/tests/test_region_exception.py +155 -0
  25. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_threaded_stream.py +3 -0
  26. python_binance-1.0.35/tests/test_user_socket_integration.py +191 -0
  27. python_binance-1.0.35/tests/test_verbose_mode.py +56 -0
  28. python_binance-1.0.35/tests/test_websocket_verbose.py +117 -0
  29. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_ws_api.py +11 -9
  30. python-binance-1.0.30/binance/ws/keepalive_websocket.py +0 -144
  31. {python-binance-1.0.30 → python_binance-1.0.35}/LICENSE +0 -0
  32. {python-binance-1.0.30 → python_binance-1.0.35}/binance/ws/__init__.py +0 -0
  33. {python-binance-1.0.30 → python_binance-1.0.35}/binance/ws/constants.py +0 -0
  34. {python-binance-1.0.30 → python_binance-1.0.35}/binance/ws/depthcache.py +0 -0
  35. {python-binance-1.0.30 → python_binance-1.0.35}/pyproject.toml +0 -0
  36. {python-binance-1.0.30 → python_binance-1.0.35}/python_binance.egg-info/dependency_links.txt +0 -0
  37. {python-binance-1.0.30 → python_binance-1.0.35}/python_binance.egg-info/requires.txt +0 -0
  38. {python-binance-1.0.30 → python_binance-1.0.35}/python_binance.egg-info/top_level.txt +0 -0
  39. {python-binance-1.0.30 → python_binance-1.0.35}/setup.cfg +0 -0
  40. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_api_request.py +0 -0
  41. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_async_client.py +0 -0
  42. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_async_client_gift_card copy.py +0 -0
  43. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_async_client_margin.py +0 -0
  44. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_async_client_options.py +0 -0
  45. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_async_client_portfolio.py +0 -0
  46. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_async_client_ws_api.py +0 -0
  47. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_client.py +0 -0
  48. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_client_gift_card.py +0 -0
  49. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_client_margin.py +0 -0
  50. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_client_options.py +0 -0
  51. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_client_portfolio.py +0 -0
  52. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_client_ws_api.py +0 -0
  53. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_cryptography.py +0 -0
  54. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_depth_cache.py +0 -0
  55. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_futures.py +0 -0
  56. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_get_order_book.py +0 -0
  57. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_headers.py +0 -0
  58. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_historical_klines.py +0 -0
  59. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_init.py +0 -0
  60. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_order.py +0 -0
  61. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_ping.py +0 -0
  62. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_reconnecting_websocket.py +0 -0
  63. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_socket_manager.py +0 -0
  64. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_streams.py +0 -0
  65. {python-binance-1.0.30 → python_binance-1.0.35}/tests/test_streams_options.py +0 -0
  66. {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.1
2
- Name: python-binance
3
- Version: 1.0.30
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.30
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.30
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.30"
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