Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit b6daee7

Browse files
authored
Merge pull request #119 from Kucoin/dev
Fix the issue with incorrect fields in the parameters.
2 parents 23c43cf + 6b257d1 commit b6daee7

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Features
2929

3030
update
3131
----------
32+
- 2024 08/19
33+
1. 【FIX】 Fix the issue with incorrect fields in the parameters.
3234

3335
- 2024 07/25
3436
1. 【NEW】GET /api/v3/hf/margin/order/active/symbols: Margin.get_active_hf_order_symbols

kucoin/earn/earn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def redeem_by_earn_holding_id(self, orderId, amount, fromAccountType=None, confi
2727
}
2828
if fromAccountType:
2929
params['fromAccountType'] = fromAccountType
30-
if fromAccountType:
30+
if confirmPunishRedeem:
3131
params['confirmPunishRedeem'] = confirmPunishRedeem
3232

3333
return self._request('DELETE', '/api/v1/earn/orders', params=params)

kucoin/user/user.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,13 +443,13 @@ def flex_transfer(self, clientOid,amount,fromAccountType,type,toAccountType,
443443

444444
if currency:
445445
params['currency'] = currency
446-
if currency:
446+
if fromUserId:
447447
params['fromUserId'] = fromUserId
448-
if currency:
448+
if fromAccountTag:
449449
params['fromAccountTag'] = fromAccountTag
450-
if currency:
450+
if toUserId:
451451
params['toUserId'] = toUserId
452-
if currency:
452+
if toAccountTag:
453453
params['toAccountTag'] = toAccountTag
454454
return self._request('POST', '/api/v3/accounts/universal-transfer', params=params)
455455

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name='kucoin-python',
9-
version='v1.0.23',
9+
version='v1.0.24',
1010
packages=['kucoin', 'kucoin/base_request', 'kucoin/margin', 'kucoin/market', 'kucoin/trade', 'kucoin/user','kucoin/lending','kucoin/earn',
1111
'kucoin/websocket', 'kucoin/ws_token'],
1212
license="MIT",

0 commit comments

Comments
 (0)