python-okx 0.4.2__py3-none-any.whl → 0.4.3__py3-none-any.whl

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.
okx/Finance/EthStaking.py CHANGED
@@ -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 = {}
okx/__init__.py CHANGED
@@ -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"
okx/consts.py CHANGED
@@ -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
@@ -13,12 +13,12 @@ okx/Status.py,sha256=hGnn-tw302xXCDWly7LssaG3-29HcHZRhrBFUuGrSS0,495
13
13
  okx/SubAccount.py,sha256=BcwEzi_Y63k-rS9IffFKAJ2ywVl7o9J0U9sBzg87Lpw,3264
14
14
  okx/Trade.py,sha256=nw93Zar92U5lIJ5WhPK6v-W8l_J_-sAY4ZvIx8Njp_U,13880
15
15
  okx/TradingData.py,sha256=T_55BXEcEXj7Ti5eO1hfRo6fgdg5i2VxXYl4G3acgnE,3498
16
- okx/__init__.py,sha256=_pOZk8eys0MjXeHo_Sk8gNJ8aujfqAwRu-iN7m7khSY,58
17
- okx/consts.py,sha256=oPuecL5y3iBt6GfSubJPFIzE5gounrISJUrGK_q7At0,15745
16
+ okx/__init__.py,sha256=X0xFnw59xovb4eAHErwrskpMxsvR7vgzAtyRD9Yy-f0,58
17
+ okx/consts.py,sha256=XNxojpnVOl72V3EuNTiIEuFvWrPdOFXul9srHoaO9Xc,15820
18
18
  okx/exceptions.py,sha256=ERuCnvnudJNBNACh3LNE3km5GJy0BGC5C3OKjgHXFaU,1182
19
19
  okx/okxclient.py,sha256=wywtgB73QelIlsQHFkOcRQsichdpm1n8AlYizB9S_rI,3040
20
20
  okx/utils.py,sha256=yMlqB3OF6NDBrz7P6rEmD8PWe2xeqh0Gw8lceUFWy0A,1879
21
- okx/Finance/EthStaking.py,sha256=hOl_i4VOBjejeyBboG1-37rhVnlSoOZ44e-Jzger-bQ,1612
21
+ okx/Finance/EthStaking.py,sha256=SGI9nP_l9wQOjr7P6Ct1v75JUbjdX7z4CWL11hYU1AQ,1794
22
22
  okx/Finance/FlexibleLoan.py,sha256=L-j1O73fEIIiM_h8NvCT6NocUv6KAx2WEQU6F9GRzIw,2351
23
23
  okx/Finance/Savings.py,sha256=qZbv-KzgGt_me8RZePDSUiRCI1mbz692EK2ZhfYiH8c,1999
24
24
  okx/Finance/SolStaking.py,sha256=VcEU4ukbU5bO8qe00DDfFJ0DUIZZS9ZO_-A2evJz5e0,1608
@@ -29,7 +29,7 @@ okx/websocket/WsPrivateAsync.py,sha256=yssG16oniViPQhIUb52kPj_TmNhrulXY7GknkkjAZ
29
29
  okx/websocket/WsPublicAsync.py,sha256=rOBVvO1Hm0SeIKGJYanom0Vs4FjH8wZHFNjsaXCJWJA,4269
30
30
  okx/websocket/WsUtils.py,sha256=ynkCtfvkrwBUiCi-_yqp1xTn3hhVd_o5ITIhD1xLdBo,2199
31
31
  okx/websocket/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
- python_okx-0.4.2.dist-info/METADATA,sha256=YbPxhLxTFDkwS6p140kxhhWfX2VaeeumsS1m5sz_vNc,4912
33
- python_okx-0.4.2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
34
- python_okx-0.4.2.dist-info/top_level.txt,sha256=rrbhHZwiw4YlhG1LWWaAODvRxyZr3onxFnqwsHdikDc,4
35
- python_okx-0.4.2.dist-info/RECORD,,
32
+ python_okx-0.4.3.dist-info/METADATA,sha256=iFiDChj4NsWcOeWc96PEjs1G9Zfq3SzdOO3A7mlIGJ8,4697
33
+ python_okx-0.4.3.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
34
+ python_okx-0.4.3.dist-info/top_level.txt,sha256=rrbhHZwiw4YlhG1LWWaAODvRxyZr3onxFnqwsHdikDc,4
35
+ python_okx-0.4.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (82.0.1)
2
+ Generator: setuptools (83.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5