python-okx 0.2.2__tar.gz → 0.2.3__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 (38) hide show
  1. {python-okx-0.2.2 → python-okx-0.2.3}/PKG-INFO +1 -1
  2. {python-okx-0.2.2 → python-okx-0.2.3}/okx/SpreadTrading.py +1 -1
  3. {python-okx-0.2.2 → python-okx-0.2.3}/okx/__init__.py +1 -1
  4. {python-okx-0.2.2 → python-okx-0.2.3}/okx/consts.py +12 -0
  5. {python-okx-0.2.2 → python-okx-0.2.3}/python_okx.egg-info/PKG-INFO +1 -1
  6. {python-okx-0.2.2 → python-okx-0.2.3}/README.md +0 -0
  7. {python-okx-0.2.2 → python-okx-0.2.3}/okx/Account.py +0 -0
  8. {python-okx-0.2.2 → python-okx-0.2.3}/okx/BlockTrading.py +0 -0
  9. {python-okx-0.2.2 → python-okx-0.2.3}/okx/Convert.py +0 -0
  10. {python-okx-0.2.2 → python-okx-0.2.3}/okx/CopyTrading.py +0 -0
  11. {python-okx-0.2.2 → python-okx-0.2.3}/okx/Earning.py +0 -0
  12. {python-okx-0.2.2 → python-okx-0.2.3}/okx/FDBroker.py +0 -0
  13. {python-okx-0.2.2 → python-okx-0.2.3}/okx/Funding.py +0 -0
  14. {python-okx-0.2.2 → python-okx-0.2.3}/okx/Grid.py +0 -0
  15. {python-okx-0.2.2 → python-okx-0.2.3}/okx/MarketData.py +0 -0
  16. {python-okx-0.2.2 → python-okx-0.2.3}/okx/NDBroker.py +0 -0
  17. {python-okx-0.2.2 → python-okx-0.2.3}/okx/PublicData.py +0 -0
  18. {python-okx-0.2.2 → python-okx-0.2.3}/okx/Status.py +0 -0
  19. {python-okx-0.2.2 → python-okx-0.2.3}/okx/SubAccount.py +0 -0
  20. {python-okx-0.2.2 → python-okx-0.2.3}/okx/Trade.py +0 -0
  21. {python-okx-0.2.2 → python-okx-0.2.3}/okx/TradingData.py +0 -0
  22. {python-okx-0.2.2 → python-okx-0.2.3}/okx/client.py +0 -0
  23. {python-okx-0.2.2 → python-okx-0.2.3}/okx/exceptions.py +0 -0
  24. {python-okx-0.2.2 → python-okx-0.2.3}/okx/utils.py +0 -0
  25. {python-okx-0.2.2 → python-okx-0.2.3}/okx/websocket/WsClientFactory.py +0 -0
  26. {python-okx-0.2.2 → python-okx-0.2.3}/okx/websocket/WsClientProtocol.py +0 -0
  27. {python-okx-0.2.2 → python-okx-0.2.3}/okx/websocket/WsConnectManager.py +0 -0
  28. {python-okx-0.2.2 → python-okx-0.2.3}/okx/websocket/WsLoginFactory.py +0 -0
  29. {python-okx-0.2.2 → python-okx-0.2.3}/okx/websocket/WsPrivate.py +0 -0
  30. {python-okx-0.2.2 → python-okx-0.2.3}/okx/websocket/WsPublic.py +0 -0
  31. {python-okx-0.2.2 → python-okx-0.2.3}/okx/websocket/WsUtils.py +0 -0
  32. {python-okx-0.2.2 → python-okx-0.2.3}/okx/websocket/__init__.py +0 -0
  33. {python-okx-0.2.2 → python-okx-0.2.3}/python_okx.egg-info/SOURCES.txt +0 -0
  34. {python-okx-0.2.2 → python-okx-0.2.3}/python_okx.egg-info/dependency_links.txt +0 -0
  35. {python-okx-0.2.2 → python-okx-0.2.3}/python_okx.egg-info/requires.txt +0 -0
  36. {python-okx-0.2.2 → python-okx-0.2.3}/python_okx.egg-info/top_level.txt +0 -0
  37. {python-okx-0.2.2 → python-okx-0.2.3}/setup.cfg +0 -0
  38. {python-okx-0.2.2 → python-okx-0.2.3}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-okx
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Python SDK for OKX
5
5
  Home-page: https://okx.com/docs-v5/
6
6
  Author: okxv5api
@@ -2,7 +2,7 @@ from .client import Client
2
2
  from .consts import *
3
3
 
4
4
 
5
- class SpreadAPI(Client):
5
+ class SpreadTradingAPI(Client):
6
6
 
7
7
  def __init__(self, api_key='-1', api_secret_key='-1', passphrase='-1', use_server_time=False, flag='1', domain = 'https://www.okx.com',debug = True):
8
8
  Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, flag, domain,debug)
@@ -2,4 +2,4 @@
2
2
  Python SDK for the OKX API v5
3
3
 
4
4
  """
5
- __version__="0.2.2"
5
+ __version__="0.2.3"
@@ -277,3 +277,15 @@ GET_PROFIT_SHARING_DETAILS = '/api/v5/copytrading/profit-sharing-details'
277
277
  GET_TOTAL_PROFIT_SHARING = '/api/v5/copytrading/total-profit-sharing'
278
278
  GET_UNREALIZED_PROFIT_SHARING_DETAILS = '/api/v5/copytrading/unrealized-profit-sharing-details'
279
279
 
280
+ # Spread Trading˚
281
+ SPREAD_PLACE_ORDER= '/api/v5/sprd/order'
282
+ SPREAD_CANAEL_ORDER = '/api/v5/sprd/cancel-order'
283
+ SPREAD_CANAEL_ALL_ORDERS = '/api/v5/sprd/mass-cancel'
284
+ SPREAD_GET_ORDER_DETAILS = '/api/v5/sprd/order'
285
+ SPREAD_GET_ACTIVE_ORDERS = '/api/v5/sprd/orders-pending'
286
+ SPREAD_GET_ORDERS = '/api/v5/sprd/orders-history'
287
+ SPREAD_GET_TRADES = '/api/v5/sprd/trades'
288
+ SPREAD_GET_SPREADS = '/api/v5/sprd/spreads'
289
+ SPREAD_GET_ORDER_BOOK = '/api/v5/sprd/books'
290
+ SPREAD_GET_TICKER = '/api/v5/sprd/ticker'
291
+ SPREAD_GET_PUBLIC_TRADES = '/api/v5/sprd/public-trades'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-okx
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Python SDK for OKX
5
5
  Home-page: https://okx.com/docs-v5/
6
6
  Author: okxv5api
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes