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.
- {python_okx-0.4.2 → python_okx-0.4.3}/PKG-INFO +2 -9
- {python_okx-0.4.2 → python_okx-0.4.3}/README.md +1 -1
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/Finance/EthStaking.py +7 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/__init__.py +1 -1
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/consts.py +1 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/python_okx.egg-info/PKG-INFO +2 -9
- python_okx-0.4.3/python_okx.egg-info/requires.txt +5 -0
- python_okx-0.4.3/requirements.txt +6 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/test/test_eth_staking.py +3 -0
- python_okx-0.4.2/python_okx.egg-info/requires.txt +0 -12
- python_okx-0.4.2/requirements.txt +0 -15
- {python_okx-0.4.2 → python_okx-0.4.3}/MANIFEST.in +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/Account.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/BlockTrading.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/Convert.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/CopyTrading.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/DualInvest.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/FDBroker.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/Finance/FlexibleLoan.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/Finance/Savings.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/Finance/SolStaking.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/Finance/StakingDefi.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/Finance/__init__.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/Funding.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/Grid.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/MarketData.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/PublicData.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/SpreadTrading.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/Status.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/SubAccount.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/Trade.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/TradingData.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/exceptions.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/okxclient.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/utils.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/websocket/WebSocketFactory.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/websocket/WsPrivateAsync.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/websocket/WsPublicAsync.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/websocket/WsUtils.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/okx/websocket/__init__.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/python_okx.egg-info/SOURCES.txt +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/python_okx.egg-info/dependency_links.txt +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/python_okx.egg-info/top_level.txt +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/setup.cfg +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/setup.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/test/test_account.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/test/test_block_trading.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/test/test_convert.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/test/test_copy_trading.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/test/test_flexible_loan.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/test/test_funding.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/test/test_grid.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/test/test_market.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/test/test_public_data.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/test/test_savings.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/test/test_sol_staking.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/test/test_spread.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/test/test_staking_defi.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/test/test_sub_account.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/test/test_trade.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/test/test_trading_data.py +0 -0
- {python_okx-0.4.2 → python_okx-0.4.3}/test/test_ws_private_async.py +0 -0
- {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.
|
|
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
|
|
124
|
+
pip install -r dev_requirements.txt
|
|
132
125
|
pip install -e .
|
|
133
126
|
|
|
134
127
|
# 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 = {}
|
|
@@ -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.
|
|
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
|
|
124
|
+
pip install -r dev_requirements.txt
|
|
132
125
|
pip install -e .
|
|
133
126
|
|
|
134
127
|
# Run tests
|
|
@@ -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,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
|
|
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
|
|
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
|