python-okx 0.4.2__tar.gz → 0.4.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 (63) hide show
  1. {python_okx-0.4.2 → python_okx-0.4.3}/PKG-INFO +2 -9
  2. {python_okx-0.4.2 → python_okx-0.4.3}/README.md +1 -1
  3. {python_okx-0.4.2 → python_okx-0.4.3}/okx/Finance/EthStaking.py +7 -0
  4. {python_okx-0.4.2 → python_okx-0.4.3}/okx/__init__.py +1 -1
  5. {python_okx-0.4.2 → python_okx-0.4.3}/okx/consts.py +1 -0
  6. {python_okx-0.4.2 → python_okx-0.4.3}/python_okx.egg-info/PKG-INFO +2 -9
  7. python_okx-0.4.3/python_okx.egg-info/requires.txt +5 -0
  8. python_okx-0.4.3/requirements.txt +6 -0
  9. {python_okx-0.4.2 → python_okx-0.4.3}/test/test_eth_staking.py +3 -0
  10. python_okx-0.4.2/python_okx.egg-info/requires.txt +0 -12
  11. python_okx-0.4.2/requirements.txt +0 -15
  12. {python_okx-0.4.2 → python_okx-0.4.3}/MANIFEST.in +0 -0
  13. {python_okx-0.4.2 → python_okx-0.4.3}/okx/Account.py +0 -0
  14. {python_okx-0.4.2 → python_okx-0.4.3}/okx/BlockTrading.py +0 -0
  15. {python_okx-0.4.2 → python_okx-0.4.3}/okx/Convert.py +0 -0
  16. {python_okx-0.4.2 → python_okx-0.4.3}/okx/CopyTrading.py +0 -0
  17. {python_okx-0.4.2 → python_okx-0.4.3}/okx/DualInvest.py +0 -0
  18. {python_okx-0.4.2 → python_okx-0.4.3}/okx/FDBroker.py +0 -0
  19. {python_okx-0.4.2 → python_okx-0.4.3}/okx/Finance/FlexibleLoan.py +0 -0
  20. {python_okx-0.4.2 → python_okx-0.4.3}/okx/Finance/Savings.py +0 -0
  21. {python_okx-0.4.2 → python_okx-0.4.3}/okx/Finance/SolStaking.py +0 -0
  22. {python_okx-0.4.2 → python_okx-0.4.3}/okx/Finance/StakingDefi.py +0 -0
  23. {python_okx-0.4.2 → python_okx-0.4.3}/okx/Finance/__init__.py +0 -0
  24. {python_okx-0.4.2 → python_okx-0.4.3}/okx/Funding.py +0 -0
  25. {python_okx-0.4.2 → python_okx-0.4.3}/okx/Grid.py +0 -0
  26. {python_okx-0.4.2 → python_okx-0.4.3}/okx/MarketData.py +0 -0
  27. {python_okx-0.4.2 → python_okx-0.4.3}/okx/PublicData.py +0 -0
  28. {python_okx-0.4.2 → python_okx-0.4.3}/okx/SpreadTrading.py +0 -0
  29. {python_okx-0.4.2 → python_okx-0.4.3}/okx/Status.py +0 -0
  30. {python_okx-0.4.2 → python_okx-0.4.3}/okx/SubAccount.py +0 -0
  31. {python_okx-0.4.2 → python_okx-0.4.3}/okx/Trade.py +0 -0
  32. {python_okx-0.4.2 → python_okx-0.4.3}/okx/TradingData.py +0 -0
  33. {python_okx-0.4.2 → python_okx-0.4.3}/okx/exceptions.py +0 -0
  34. {python_okx-0.4.2 → python_okx-0.4.3}/okx/okxclient.py +0 -0
  35. {python_okx-0.4.2 → python_okx-0.4.3}/okx/utils.py +0 -0
  36. {python_okx-0.4.2 → python_okx-0.4.3}/okx/websocket/WebSocketFactory.py +0 -0
  37. {python_okx-0.4.2 → python_okx-0.4.3}/okx/websocket/WsPrivateAsync.py +0 -0
  38. {python_okx-0.4.2 → python_okx-0.4.3}/okx/websocket/WsPublicAsync.py +0 -0
  39. {python_okx-0.4.2 → python_okx-0.4.3}/okx/websocket/WsUtils.py +0 -0
  40. {python_okx-0.4.2 → python_okx-0.4.3}/okx/websocket/__init__.py +0 -0
  41. {python_okx-0.4.2 → python_okx-0.4.3}/python_okx.egg-info/SOURCES.txt +0 -0
  42. {python_okx-0.4.2 → python_okx-0.4.3}/python_okx.egg-info/dependency_links.txt +0 -0
  43. {python_okx-0.4.2 → python_okx-0.4.3}/python_okx.egg-info/top_level.txt +0 -0
  44. {python_okx-0.4.2 → python_okx-0.4.3}/setup.cfg +0 -0
  45. {python_okx-0.4.2 → python_okx-0.4.3}/setup.py +0 -0
  46. {python_okx-0.4.2 → python_okx-0.4.3}/test/test_account.py +0 -0
  47. {python_okx-0.4.2 → python_okx-0.4.3}/test/test_block_trading.py +0 -0
  48. {python_okx-0.4.2 → python_okx-0.4.3}/test/test_convert.py +0 -0
  49. {python_okx-0.4.2 → python_okx-0.4.3}/test/test_copy_trading.py +0 -0
  50. {python_okx-0.4.2 → python_okx-0.4.3}/test/test_flexible_loan.py +0 -0
  51. {python_okx-0.4.2 → python_okx-0.4.3}/test/test_funding.py +0 -0
  52. {python_okx-0.4.2 → python_okx-0.4.3}/test/test_grid.py +0 -0
  53. {python_okx-0.4.2 → python_okx-0.4.3}/test/test_market.py +0 -0
  54. {python_okx-0.4.2 → python_okx-0.4.3}/test/test_public_data.py +0 -0
  55. {python_okx-0.4.2 → python_okx-0.4.3}/test/test_savings.py +0 -0
  56. {python_okx-0.4.2 → python_okx-0.4.3}/test/test_sol_staking.py +0 -0
  57. {python_okx-0.4.2 → python_okx-0.4.3}/test/test_spread.py +0 -0
  58. {python_okx-0.4.2 → python_okx-0.4.3}/test/test_staking_defi.py +0 -0
  59. {python_okx-0.4.2 → python_okx-0.4.3}/test/test_sub_account.py +0 -0
  60. {python_okx-0.4.2 → python_okx-0.4.3}/test/test_trade.py +0 -0
  61. {python_okx-0.4.2 → python_okx-0.4.3}/test/test_trading_data.py +0 -0
  62. {python_okx-0.4.2 → python_okx-0.4.3}/test/test_ws_private_async.py +0 -0
  63. {python_okx-0.4.2 → python_okx-0.4.3}/test/test_ws_public_async.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-okx
3
- Version: 0.4.2
3
+ Version: 0.4.3
4
4
  Summary: Python SDK for OKX
5
5
  Home-page: https://okx.com/docs-v5/
6
6
  Author: okxv5api
@@ -21,13 +21,6 @@ Requires-Dist: requests>=2.25.0
21
21
  Requires-Dist: websockets>=10.0
22
22
  Requires-Dist: certifi>=2021.0.0
23
23
  Requires-Dist: loguru>=0.7.0
24
- Requires-Dist: python-dotenv>=1.0.0
25
- Requires-Dist: pytest>=7.0.0
26
- Requires-Dist: pytest-asyncio>=0.21.0
27
- Requires-Dist: pytest-cov>=4.0.0
28
- Requires-Dist: ruff>=0.1.0
29
- Requires-Dist: build>=1.0.0
30
- Requires-Dist: twine>=4.0.0
31
24
  Dynamic: author
32
25
  Dynamic: author-email
33
26
  Dynamic: classifier
@@ -128,7 +121,7 @@ git clone https://github.com/okxapi/python-okx.git
128
121
  cd python-okx
129
122
 
130
123
  # Install dependencies
131
- pip install -r requirements.txt
124
+ pip install -r dev_requirements.txt
132
125
  pip install -e .
133
126
 
134
127
  # Run tests
@@ -88,7 +88,7 @@ git clone https://github.com/okxapi/python-okx.git
88
88
  cd python-okx
89
89
 
90
90
  # Install dependencies
91
- pip install -r requirements.txt
91
+ pip install -r dev_requirements.txt
92
92
  pip install -e .
93
93
 
94
94
  # Run tests
@@ -24,6 +24,13 @@ class EthStakingAPI(OkxClient):
24
24
  }
25
25
  return self._request_with_params(POST, STACK_ETH_REDEEM, params)
26
26
 
27
+ def eth_cancel_redeem(self, ordId=''):
28
+
29
+ params = {
30
+ 'ordId': ordId,
31
+ }
32
+ return self._request_with_params(POST, STACK_ETH_CANCEL_REDEEM, params)
33
+
27
34
  def eth_balance(self):
28
35
 
29
36
  params = {}
@@ -2,4 +2,4 @@
2
2
  Python SDK for the OKX API v5
3
3
 
4
4
  """
5
- __version__="0.4.2"
5
+ __version__="0.4.3"
@@ -260,6 +260,7 @@ GET_PUBLIC_BORROW_HISTORY = '/api/v5/finance/savings/lending-rate-history'
260
260
  STACK_ETH_PRODUCT_INFO = '/api/v5/finance/staking-defi/eth/product-info'
261
261
  STACK_ETH_PURCHASE = '/api/v5/finance/staking-defi/eth/purchase'
262
262
  STACK_ETH_REDEEM = '/api/v5/finance/staking-defi/eth/redeem'
263
+ STACK_ETH_CANCEL_REDEEM = '/api/v5/finance/staking-defi/eth/cancel-redeem'
263
264
  STACK_ETH_BALANCE = '/api/v5/finance/staking-defi/eth/balance'
264
265
  STACK_ETH_PURCHASE_REDEEM_HISTORY = '/api/v5/finance/staking-defi/eth/purchase-redeem-history'
265
266
  STACK_ETH_APY_HISTORY = '/api/v5/finance/staking-defi/eth/apy-history'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-okx
3
- Version: 0.4.2
3
+ Version: 0.4.3
4
4
  Summary: Python SDK for OKX
5
5
  Home-page: https://okx.com/docs-v5/
6
6
  Author: okxv5api
@@ -21,13 +21,6 @@ Requires-Dist: requests>=2.25.0
21
21
  Requires-Dist: websockets>=10.0
22
22
  Requires-Dist: certifi>=2021.0.0
23
23
  Requires-Dist: loguru>=0.7.0
24
- Requires-Dist: python-dotenv>=1.0.0
25
- Requires-Dist: pytest>=7.0.0
26
- Requires-Dist: pytest-asyncio>=0.21.0
27
- Requires-Dist: pytest-cov>=4.0.0
28
- Requires-Dist: ruff>=0.1.0
29
- Requires-Dist: build>=1.0.0
30
- Requires-Dist: twine>=4.0.0
31
24
  Dynamic: author
32
25
  Dynamic: author-email
33
26
  Dynamic: classifier
@@ -128,7 +121,7 @@ git clone https://github.com/okxapi/python-okx.git
128
121
  cd python-okx
129
122
 
130
123
  # Install dependencies
131
- pip install -r requirements.txt
124
+ pip install -r dev_requirements.txt
132
125
  pip install -e .
133
126
 
134
127
  # Run tests
@@ -0,0 +1,5 @@
1
+ httpx[http2]>=0.24.0
2
+ requests>=2.25.0
3
+ websockets>=10.0
4
+ certifi>=2021.0.0
5
+ loguru>=0.7.0
@@ -0,0 +1,6 @@
1
+ # Runtime dependencies for python-okx
2
+ httpx[http2]>=0.24.0
3
+ requests>=2.25.0
4
+ websockets>=10.0
5
+ certifi>=2021.0.0
6
+ loguru>=0.7.0
@@ -17,6 +17,9 @@ class EthStakingTest(unittest.TestCase):
17
17
  def test_eth_redeem(self):
18
18
  print(self.StackingAPI.eth_redeem(amt="1"))
19
19
 
20
+ def test_eth_cancel_redeem(self):
21
+ print(self.StackingAPI.eth_cancel_redeem(ordId="1234567890"))
22
+
20
23
  def test_eth_balance(self):
21
24
  print(self.StackingAPI.eth_balance())
22
25
 
@@ -1,12 +0,0 @@
1
- httpx[http2]>=0.24.0
2
- requests>=2.25.0
3
- websockets>=10.0
4
- certifi>=2021.0.0
5
- loguru>=0.7.0
6
- python-dotenv>=1.0.0
7
- pytest>=7.0.0
8
- pytest-asyncio>=0.21.0
9
- pytest-cov>=4.0.0
10
- ruff>=0.1.0
11
- build>=1.0.0
12
- twine>=4.0.0
@@ -1,15 +0,0 @@
1
- # Dependencies for python-okx
2
- httpx[http2]>=0.24.0
3
- requests>=2.25.0
4
- websockets>=10.0
5
- certifi>=2021.0.0
6
- loguru>=0.7.0
7
- python-dotenv>=1.0.0
8
-
9
- # Development & Testing
10
- pytest>=7.0.0
11
- pytest-asyncio>=0.21.0
12
- pytest-cov>=4.0.0
13
- ruff>=0.1.0
14
- build>=1.0.0
15
- twine>=4.0.0
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