kucoin-api 0.0.101__py3-none-any.whl → 0.0.103__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.
Potentially problematic release.
This version of kucoin-api might be problematic. Click here for more details.
- kucoin/ccxt/__init__.py +1 -1
- kucoin/ccxt/abstract/kucoin.py +30 -0
- kucoin/ccxt/async_support/__init__.py +1 -1
- kucoin/ccxt/async_support/base/exchange.py +1 -1
- kucoin/ccxt/async_support/kucoin.py +37 -0
- kucoin/ccxt/base/exchange.py +1 -1
- kucoin/ccxt/kucoin.py +37 -0
- kucoin/ccxt/pro/__init__.py +1 -1
- {kucoin_api-0.0.101.dist-info → kucoin_api-0.0.103.dist-info}/METADATA +31 -1
- {kucoin_api-0.0.101.dist-info → kucoin_api-0.0.103.dist-info}/RECORD +11 -11
- {kucoin_api-0.0.101.dist-info → kucoin_api-0.0.103.dist-info}/WHEEL +0 -0
kucoin/ccxt/__init__.py
CHANGED
|
@@ -26,7 +26,7 @@ sys.modules['ccxt'] = ccxt_module
|
|
|
26
26
|
|
|
27
27
|
# ----------------------------------------------------------------------------
|
|
28
28
|
|
|
29
|
-
__version__ = '4.5.
|
|
29
|
+
__version__ = '4.5.14'
|
|
30
30
|
|
|
31
31
|
# ----------------------------------------------------------------------------
|
|
32
32
|
|
kucoin/ccxt/abstract/kucoin.py
CHANGED
|
@@ -21,6 +21,7 @@ class ImplicitAPI:
|
|
|
21
21
|
public_get_mark_price_all_symbols = publicGetMarkPriceAllSymbols = Entry('mark-price/all-symbols', 'public', 'GET', {'cost': 3})
|
|
22
22
|
public_get_margin_config = publicGetMarginConfig = Entry('margin/config', 'public', 'GET', {'cost': 25})
|
|
23
23
|
public_get_announcements = publicGetAnnouncements = Entry('announcements', 'public', 'GET', {'cost': 20})
|
|
24
|
+
public_get_margin_collateralratio = publicGetMarginCollateralRatio = Entry('margin/collateralRatio', 'public', 'GET', {'cost': 10})
|
|
24
25
|
public_post_bullet_public = publicPostBulletPublic = Entry('bullet-public', 'public', 'POST', {'cost': 15})
|
|
25
26
|
private_get_user_info = privateGetUserInfo = Entry('user-info', 'private', 'GET', {'cost': 30})
|
|
26
27
|
private_get_accounts = privateGetAccounts = Entry('accounts', 'private', 'GET', {'cost': 7.5})
|
|
@@ -90,6 +91,9 @@ class ImplicitAPI:
|
|
|
90
91
|
private_get_redeem_orders = privateGetRedeemOrders = Entry('redeem/orders', 'private', 'GET', {'cost': 10})
|
|
91
92
|
private_get_purchase_orders = privateGetPurchaseOrders = Entry('purchase/orders', 'private', 'GET', {'cost': 10})
|
|
92
93
|
private_get_broker_api_rebase_download = privateGetBrokerApiRebaseDownload = Entry('broker/api/rebase/download', 'private', 'GET', {'cost': 3})
|
|
94
|
+
private_get_broker_querymycommission = privateGetBrokerQueryMyCommission = Entry('broker/queryMyCommission', 'private', 'GET', {'cost': 3})
|
|
95
|
+
private_get_broker_queryuser = privateGetBrokerQueryUser = Entry('broker/queryUser', 'private', 'GET', {'cost': 3})
|
|
96
|
+
private_get_broker_querydetailbyuid = privateGetBrokerQueryDetailByUid = Entry('broker/queryDetailByUid', 'private', 'GET', {'cost': 3})
|
|
93
97
|
private_get_migrate_user_account_status = privateGetMigrateUserAccountStatus = Entry('migrate/user/account/status', 'private', 'GET', {'cost': 3})
|
|
94
98
|
private_get_affiliate_inviter_statistics = privateGetAffiliateInviterStatistics = Entry('affiliate/inviter/statistics', 'private', 'GET', {'cost': 30})
|
|
95
99
|
private_post_sub_user_created = privatePostSubUserCreated = Entry('sub/user/created', 'private', 'POST', {'cost': 22.5})
|
|
@@ -183,6 +187,8 @@ class ImplicitAPI:
|
|
|
183
187
|
futuresprivate_get_margin_maxwithdrawmargin = futuresPrivateGetMarginMaxWithdrawMargin = Entry('margin/maxWithdrawMargin', 'futuresPrivate', 'GET', {'cost': 15})
|
|
184
188
|
futuresprivate_get_contracts_risk_limit_symbol = futuresPrivateGetContractsRiskLimitSymbol = Entry('contracts/risk-limit/{symbol}', 'futuresPrivate', 'GET', {'cost': 7.5})
|
|
185
189
|
futuresprivate_get_funding_history = futuresPrivateGetFundingHistory = Entry('funding-history', 'futuresPrivate', 'GET', {'cost': 7.5})
|
|
190
|
+
futuresprivate_get_copy_trade_futures_get_max_open_size = futuresPrivateGetCopyTradeFuturesGetMaxOpenSize = Entry('copy-trade/futures/get-max-open-size', 'futuresPrivate', 'GET', {'cost': 6})
|
|
191
|
+
futuresprivate_get_copy_trade_futures_position_margin_max_withdraw_margin = futuresPrivateGetCopyTradeFuturesPositionMarginMaxWithdrawMargin = Entry('copy-trade/futures/position/margin/max-withdraw-margin', 'futuresPrivate', 'GET', {'cost': 15})
|
|
186
192
|
futuresprivate_post_transfer_out = futuresPrivatePostTransferOut = Entry('transfer-out', 'futuresPrivate', 'POST', {'cost': 30})
|
|
187
193
|
futuresprivate_post_transfer_in = futuresPrivatePostTransferIn = Entry('transfer-in', 'futuresPrivate', 'POST', {'cost': 30})
|
|
188
194
|
futuresprivate_post_orders = futuresPrivatePostOrders = Entry('orders', 'futuresPrivate', 'POST', {'cost': 3})
|
|
@@ -192,11 +198,24 @@ class ImplicitAPI:
|
|
|
192
198
|
futuresprivate_post_margin_withdrawmargin = futuresPrivatePostMarginWithdrawMargin = Entry('margin/withdrawMargin', 'futuresPrivate', 'POST', {'cost': 15})
|
|
193
199
|
futuresprivate_post_position_margin_deposit_margin = futuresPrivatePostPositionMarginDepositMargin = Entry('position/margin/deposit-margin', 'futuresPrivate', 'POST', {'cost': 6})
|
|
194
200
|
futuresprivate_post_position_risk_limit_level_change = futuresPrivatePostPositionRiskLimitLevelChange = Entry('position/risk-limit-level/change', 'futuresPrivate', 'POST', {'cost': 6})
|
|
201
|
+
futuresprivate_post_copy_trade_futures_orders = futuresPrivatePostCopyTradeFuturesOrders = Entry('copy-trade/futures/orders', 'futuresPrivate', 'POST', {'cost': 3})
|
|
202
|
+
futuresprivate_post_copy_trade_futures_orders_test = futuresPrivatePostCopyTradeFuturesOrdersTest = Entry('copy-trade/futures/orders/test', 'futuresPrivate', 'POST', {'cost': 3})
|
|
203
|
+
futuresprivate_post_copy_trade_futures_st_orders = futuresPrivatePostCopyTradeFuturesStOrders = Entry('copy-trade/futures/st-orders', 'futuresPrivate', 'POST', {'cost': 3})
|
|
204
|
+
futuresprivate_post_copy_trade_futures_position_margin_deposit_margin = futuresPrivatePostCopyTradeFuturesPositionMarginDepositMargin = Entry('copy-trade/futures/position/margin/deposit-margin', 'futuresPrivate', 'POST', {'cost': 6})
|
|
205
|
+
futuresprivate_post_copy_trade_futures_position_margin_withdraw_margin = futuresPrivatePostCopyTradeFuturesPositionMarginWithdrawMargin = Entry('copy-trade/futures/position/margin/withdraw-margin', 'futuresPrivate', 'POST', {'cost': 15})
|
|
206
|
+
futuresprivate_post_copy_trade_futures_position_risk_limit_level_change = futuresPrivatePostCopyTradeFuturesPositionRiskLimitLevelChange = Entry('copy-trade/futures/position/risk-limit-level/change', 'futuresPrivate', 'POST', {'cost': 3})
|
|
207
|
+
futuresprivate_post_copy_trade_futures_position_margin_auto_deposit_status = futuresPrivatePostCopyTradeFuturesPositionMarginAutoDepositStatus = Entry('copy-trade/futures/position/margin/auto-deposit-status', 'futuresPrivate', 'POST', {'cost': 6})
|
|
208
|
+
futuresprivate_post_copy_trade_futures_position_changemarginmode = futuresPrivatePostCopyTradeFuturesPositionChangeMarginMode = Entry('copy-trade/futures/position/changeMarginMode', 'futuresPrivate', 'POST', {'cost': 3})
|
|
209
|
+
futuresprivate_post_copy_trade_futures_position_changecrossuserleverage = futuresPrivatePostCopyTradeFuturesPositionChangeCrossUserLeverage = Entry('copy-trade/futures/position/changeCrossUserLeverage', 'futuresPrivate', 'POST', {'cost': 3})
|
|
210
|
+
futuresprivate_post_copy_trade_getcrossmodemarginrequirement = futuresPrivatePostCopyTradeGetCrossModeMarginRequirement = Entry('copy-trade/getCrossModeMarginRequirement', 'futuresPrivate', 'POST', {'cost': 4.5})
|
|
211
|
+
futuresprivate_post_copy_trade_position_switchpositionmode = futuresPrivatePostCopyTradePositionSwitchPositionMode = Entry('copy-trade/position/switchPositionMode', 'futuresPrivate', 'POST', {'cost': 3})
|
|
195
212
|
futuresprivate_post_bullet_private = futuresPrivatePostBulletPrivate = Entry('bullet-private', 'futuresPrivate', 'POST', {'cost': 15})
|
|
196
213
|
futuresprivate_delete_orders_orderid = futuresPrivateDeleteOrdersOrderId = Entry('orders/{orderId}', 'futuresPrivate', 'DELETE', {'cost': 1.5})
|
|
197
214
|
futuresprivate_delete_orders_client_order_clientoid = futuresPrivateDeleteOrdersClientOrderClientOid = Entry('orders/client-order/{clientOid}', 'futuresPrivate', 'DELETE', {'cost': 1.5})
|
|
198
215
|
futuresprivate_delete_orders = futuresPrivateDeleteOrders = Entry('orders', 'futuresPrivate', 'DELETE', {'cost': 45})
|
|
199
216
|
futuresprivate_delete_stoporders = futuresPrivateDeleteStopOrders = Entry('stopOrders', 'futuresPrivate', 'DELETE', {'cost': 22.5})
|
|
217
|
+
futuresprivate_delete_copy_trade_futures_orders = futuresPrivateDeleteCopyTradeFuturesOrders = Entry('copy-trade/futures/orders', 'futuresPrivate', 'DELETE', {'cost': 1.5})
|
|
218
|
+
futuresprivate_delete_copy_trade_futures_orders_client_order = futuresPrivateDeleteCopyTradeFuturesOrdersClientOrder = Entry('copy-trade/futures/orders/client-order', 'futuresPrivate', 'DELETE', {'cost': 1.5})
|
|
200
219
|
webexchange_get_currency_currency_chain_info = webExchangeGetCurrencyCurrencyChainInfo = Entry('currency/currency/chain-info', 'webExchange', 'GET', {'cost': 1})
|
|
201
220
|
broker_get_broker_nd_info = brokerGetBrokerNdInfo = Entry('broker/nd/info', 'broker', 'GET', {'cost': 2})
|
|
202
221
|
broker_get_broker_nd_account = brokerGetBrokerNdAccount = Entry('broker/nd/account', 'broker', 'GET', {'cost': 2})
|
|
@@ -222,3 +241,14 @@ class ImplicitAPI:
|
|
|
222
241
|
earn_get_earn_eth_staking_products = earnGetEarnEthStakingProducts = Entry('earn/eth-staking/products', 'earn', 'GET', {'cost': 7.5})
|
|
223
242
|
earn_post_earn_orders = earnPostEarnOrders = Entry('earn/orders', 'earn', 'POST', {'cost': 7.5})
|
|
224
243
|
earn_delete_earn_orders = earnDeleteEarnOrders = Entry('earn/orders', 'earn', 'DELETE', {'cost': 7.5})
|
|
244
|
+
uta_get_market_announcement = utaGetMarketAnnouncement = Entry('market/announcement', 'uta', 'GET', {'cost': 20})
|
|
245
|
+
uta_get_market_currency = utaGetMarketCurrency = Entry('market/currency', 'uta', 'GET', {'cost': 3})
|
|
246
|
+
uta_get_market_instrument = utaGetMarketInstrument = Entry('market/instrument', 'uta', 'GET', {'cost': 4})
|
|
247
|
+
uta_get_market_ticker = utaGetMarketTicker = Entry('market/ticker', 'uta', 'GET', {'cost': 15})
|
|
248
|
+
uta_get_market_orderbook = utaGetMarketOrderbook = Entry('market/orderbook', 'uta', 'GET', {'cost': 3})
|
|
249
|
+
uta_get_market_trade = utaGetMarketTrade = Entry('market/trade', 'uta', 'GET', {'cost': 3})
|
|
250
|
+
uta_get_market_kline = utaGetMarketKline = Entry('market/kline', 'uta', 'GET', {'cost': 3})
|
|
251
|
+
uta_get_market_funding_rate = utaGetMarketFundingRate = Entry('market/funding-rate', 'uta', 'GET', {'cost': 2})
|
|
252
|
+
uta_get_market_funding_rate_history = utaGetMarketFundingRateHistory = Entry('market/funding-rate-history', 'uta', 'GET', {'cost': 5})
|
|
253
|
+
uta_get_market_cross_config = utaGetMarketCrossConfig = Entry('market/cross-config', 'uta', 'GET', {'cost': 25})
|
|
254
|
+
uta_get_market_server_status = utaGetMarketServerStatus = Entry('market/server/status', 'uta', 'GET', {'cost': 3})
|
|
@@ -145,6 +145,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
|
145
145
|
'webExchange': 'https://kucoin.com/_api',
|
|
146
146
|
'broker': 'https://api-broker.kucoin.com',
|
|
147
147
|
'earn': 'https://api.kucoin.com',
|
|
148
|
+
'uta': 'https://api.kucoin.com',
|
|
148
149
|
},
|
|
149
150
|
'www': 'https://www.kucoin.com',
|
|
150
151
|
'doc': [
|
|
@@ -185,6 +186,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
|
185
186
|
'mark-price/all-symbols': 3,
|
|
186
187
|
'margin/config': 25, # 25SW
|
|
187
188
|
'announcements': 20, # 20W
|
|
189
|
+
'margin/collateralRatio': 10,
|
|
188
190
|
},
|
|
189
191
|
'post': {
|
|
190
192
|
# ws
|
|
@@ -266,6 +268,9 @@ class kucoin(Exchange, ImplicitAPI):
|
|
|
266
268
|
'purchase/orders': 10, # 10SW
|
|
267
269
|
# broker
|
|
268
270
|
'broker/api/rebase/download': 3,
|
|
271
|
+
'broker/queryMyCommission': 3,
|
|
272
|
+
'broker/queryUser': 3,
|
|
273
|
+
'broker/queryDetailByUid': 3,
|
|
269
274
|
'migrate/user/account/status': 3,
|
|
270
275
|
# affiliate
|
|
271
276
|
'affiliate/inviter/statistics': 30,
|
|
@@ -388,6 +393,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
|
388
393
|
'margin/maxWithdrawMargin': 15, # 10FW
|
|
389
394
|
'contracts/risk-limit/{symbol}': 7.5, # 5FW
|
|
390
395
|
'funding-history': 7.5, # 5FW
|
|
396
|
+
'copy-trade/futures/get-max-open-size': 6, # 4FW
|
|
397
|
+
'copy-trade/futures/position/margin/max-withdraw-margin': 15, # 10FW
|
|
391
398
|
},
|
|
392
399
|
'post': {
|
|
393
400
|
# funding
|
|
@@ -401,6 +408,17 @@ class kucoin(Exchange, ImplicitAPI):
|
|
|
401
408
|
'margin/withdrawMargin': 15, # 10FW
|
|
402
409
|
'position/margin/deposit-margin': 6, # 4FW
|
|
403
410
|
'position/risk-limit-level/change': 6, # 4FW
|
|
411
|
+
'copy-trade/futures/orders': 3, # 2FW
|
|
412
|
+
'copy-trade/futures/orders/test': 3, # 2FW
|
|
413
|
+
'copy-trade/futures/st-orders': 3, # 2FW
|
|
414
|
+
'copy-trade/futures/position/margin/deposit-margin': 6, # 4FW
|
|
415
|
+
'copy-trade/futures/position/margin/withdraw-margin': 15, # 10FW
|
|
416
|
+
'copy-trade/futures/position/risk-limit-level/change': 3, # 2FW
|
|
417
|
+
'copy-trade/futures/position/margin/auto-deposit-status': 6, # 4FW
|
|
418
|
+
'copy-trade/futures/position/changeMarginMode': 3, # 2FW
|
|
419
|
+
'copy-trade/futures/position/changeCrossUserLeverage': 3, # 2FW
|
|
420
|
+
'copy-trade/getCrossModeMarginRequirement': 4.5, # 3FW
|
|
421
|
+
'copy-trade/position/switchPositionMode': 3, # 2FW
|
|
404
422
|
# ws
|
|
405
423
|
'bullet-private': 15, # 10FW
|
|
406
424
|
},
|
|
@@ -409,6 +427,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
|
409
427
|
'orders/client-order/{clientOid}': 1.5, # 1FW
|
|
410
428
|
'orders': 45, # 30FW
|
|
411
429
|
'stopOrders': 22.5, # 15FW
|
|
430
|
+
'copy-trade/futures/orders': 1.5, # 1FW
|
|
431
|
+
'copy-trade/futures/orders/client-order': 1.5, # 1FW
|
|
412
432
|
},
|
|
413
433
|
},
|
|
414
434
|
'webExchange': {
|
|
@@ -456,6 +476,21 @@ class kucoin(Exchange, ImplicitAPI):
|
|
|
456
476
|
'earn/orders': 7.5, # 5EW
|
|
457
477
|
},
|
|
458
478
|
},
|
|
479
|
+
'uta': {
|
|
480
|
+
'get': {
|
|
481
|
+
'market/announcement': 20,
|
|
482
|
+
'market/currency': 3,
|
|
483
|
+
'market/instrument': 4,
|
|
484
|
+
'market/ticker': 15,
|
|
485
|
+
'market/orderbook': 3,
|
|
486
|
+
'market/trade': 3,
|
|
487
|
+
'market/kline': 3,
|
|
488
|
+
'market/funding-rate': 2,
|
|
489
|
+
'market/funding-rate-history': 5,
|
|
490
|
+
'market/cross-config': 25,
|
|
491
|
+
'market/server/status': 3,
|
|
492
|
+
},
|
|
493
|
+
},
|
|
459
494
|
},
|
|
460
495
|
'timeframes': {
|
|
461
496
|
'1m': '1min',
|
|
@@ -4850,6 +4885,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
|
4850
4885
|
endpoint = '/' + self.implode_params(path, params)
|
|
4851
4886
|
if api == 'earn':
|
|
4852
4887
|
endpoint = '/api/v1/' + self.implode_params(path, params)
|
|
4888
|
+
if api == 'uta':
|
|
4889
|
+
endpoint = '/api/ua/v1/' + self.implode_params(path, params)
|
|
4853
4890
|
query = self.omit(params, self.extract_params(path))
|
|
4854
4891
|
endpart = ''
|
|
4855
4892
|
headers = headers if (headers is not None) else {}
|
kucoin/ccxt/base/exchange.py
CHANGED
kucoin/ccxt/kucoin.py
CHANGED
|
@@ -144,6 +144,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
|
144
144
|
'webExchange': 'https://kucoin.com/_api',
|
|
145
145
|
'broker': 'https://api-broker.kucoin.com',
|
|
146
146
|
'earn': 'https://api.kucoin.com',
|
|
147
|
+
'uta': 'https://api.kucoin.com',
|
|
147
148
|
},
|
|
148
149
|
'www': 'https://www.kucoin.com',
|
|
149
150
|
'doc': [
|
|
@@ -184,6 +185,7 @@ class kucoin(Exchange, ImplicitAPI):
|
|
|
184
185
|
'mark-price/all-symbols': 3,
|
|
185
186
|
'margin/config': 25, # 25SW
|
|
186
187
|
'announcements': 20, # 20W
|
|
188
|
+
'margin/collateralRatio': 10,
|
|
187
189
|
},
|
|
188
190
|
'post': {
|
|
189
191
|
# ws
|
|
@@ -265,6 +267,9 @@ class kucoin(Exchange, ImplicitAPI):
|
|
|
265
267
|
'purchase/orders': 10, # 10SW
|
|
266
268
|
# broker
|
|
267
269
|
'broker/api/rebase/download': 3,
|
|
270
|
+
'broker/queryMyCommission': 3,
|
|
271
|
+
'broker/queryUser': 3,
|
|
272
|
+
'broker/queryDetailByUid': 3,
|
|
268
273
|
'migrate/user/account/status': 3,
|
|
269
274
|
# affiliate
|
|
270
275
|
'affiliate/inviter/statistics': 30,
|
|
@@ -387,6 +392,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
|
387
392
|
'margin/maxWithdrawMargin': 15, # 10FW
|
|
388
393
|
'contracts/risk-limit/{symbol}': 7.5, # 5FW
|
|
389
394
|
'funding-history': 7.5, # 5FW
|
|
395
|
+
'copy-trade/futures/get-max-open-size': 6, # 4FW
|
|
396
|
+
'copy-trade/futures/position/margin/max-withdraw-margin': 15, # 10FW
|
|
390
397
|
},
|
|
391
398
|
'post': {
|
|
392
399
|
# funding
|
|
@@ -400,6 +407,17 @@ class kucoin(Exchange, ImplicitAPI):
|
|
|
400
407
|
'margin/withdrawMargin': 15, # 10FW
|
|
401
408
|
'position/margin/deposit-margin': 6, # 4FW
|
|
402
409
|
'position/risk-limit-level/change': 6, # 4FW
|
|
410
|
+
'copy-trade/futures/orders': 3, # 2FW
|
|
411
|
+
'copy-trade/futures/orders/test': 3, # 2FW
|
|
412
|
+
'copy-trade/futures/st-orders': 3, # 2FW
|
|
413
|
+
'copy-trade/futures/position/margin/deposit-margin': 6, # 4FW
|
|
414
|
+
'copy-trade/futures/position/margin/withdraw-margin': 15, # 10FW
|
|
415
|
+
'copy-trade/futures/position/risk-limit-level/change': 3, # 2FW
|
|
416
|
+
'copy-trade/futures/position/margin/auto-deposit-status': 6, # 4FW
|
|
417
|
+
'copy-trade/futures/position/changeMarginMode': 3, # 2FW
|
|
418
|
+
'copy-trade/futures/position/changeCrossUserLeverage': 3, # 2FW
|
|
419
|
+
'copy-trade/getCrossModeMarginRequirement': 4.5, # 3FW
|
|
420
|
+
'copy-trade/position/switchPositionMode': 3, # 2FW
|
|
403
421
|
# ws
|
|
404
422
|
'bullet-private': 15, # 10FW
|
|
405
423
|
},
|
|
@@ -408,6 +426,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
|
408
426
|
'orders/client-order/{clientOid}': 1.5, # 1FW
|
|
409
427
|
'orders': 45, # 30FW
|
|
410
428
|
'stopOrders': 22.5, # 15FW
|
|
429
|
+
'copy-trade/futures/orders': 1.5, # 1FW
|
|
430
|
+
'copy-trade/futures/orders/client-order': 1.5, # 1FW
|
|
411
431
|
},
|
|
412
432
|
},
|
|
413
433
|
'webExchange': {
|
|
@@ -455,6 +475,21 @@ class kucoin(Exchange, ImplicitAPI):
|
|
|
455
475
|
'earn/orders': 7.5, # 5EW
|
|
456
476
|
},
|
|
457
477
|
},
|
|
478
|
+
'uta': {
|
|
479
|
+
'get': {
|
|
480
|
+
'market/announcement': 20,
|
|
481
|
+
'market/currency': 3,
|
|
482
|
+
'market/instrument': 4,
|
|
483
|
+
'market/ticker': 15,
|
|
484
|
+
'market/orderbook': 3,
|
|
485
|
+
'market/trade': 3,
|
|
486
|
+
'market/kline': 3,
|
|
487
|
+
'market/funding-rate': 2,
|
|
488
|
+
'market/funding-rate-history': 5,
|
|
489
|
+
'market/cross-config': 25,
|
|
490
|
+
'market/server/status': 3,
|
|
491
|
+
},
|
|
492
|
+
},
|
|
458
493
|
},
|
|
459
494
|
'timeframes': {
|
|
460
495
|
'1m': '1min',
|
|
@@ -4849,6 +4884,8 @@ class kucoin(Exchange, ImplicitAPI):
|
|
|
4849
4884
|
endpoint = '/' + self.implode_params(path, params)
|
|
4850
4885
|
if api == 'earn':
|
|
4851
4886
|
endpoint = '/api/v1/' + self.implode_params(path, params)
|
|
4887
|
+
if api == 'uta':
|
|
4888
|
+
endpoint = '/api/ua/v1/' + self.implode_params(path, params)
|
|
4852
4889
|
query = self.omit(params, self.extract_params(path))
|
|
4853
4890
|
endpart = ''
|
|
4854
4891
|
headers = headers if (headers is not None) else {}
|
kucoin/ccxt/pro/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kucoin-api
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.103
|
|
4
4
|
Summary: kucoin crypto exchange api client
|
|
5
5
|
Project-URL: Homepage, https://github.com/ccxt/ccxt
|
|
6
6
|
Project-URL: Issues, https://github.com/ccxt/ccxt
|
|
@@ -201,6 +201,7 @@ You can also construct custom requests to available "implicit" endpoints
|
|
|
201
201
|
- `public_get_mark_price_all_symbols(request)`
|
|
202
202
|
- `public_get_margin_config(request)`
|
|
203
203
|
- `public_get_announcements(request)`
|
|
204
|
+
- `public_get_margin_collateralratio(request)`
|
|
204
205
|
- `public_post_bullet_public(request)`
|
|
205
206
|
- `private_get_user_info(request)`
|
|
206
207
|
- `private_get_accounts(request)`
|
|
@@ -270,6 +271,9 @@ You can also construct custom requests to available "implicit" endpoints
|
|
|
270
271
|
- `private_get_redeem_orders(request)`
|
|
271
272
|
- `private_get_purchase_orders(request)`
|
|
272
273
|
- `private_get_broker_api_rebase_download(request)`
|
|
274
|
+
- `private_get_broker_querymycommission(request)`
|
|
275
|
+
- `private_get_broker_queryuser(request)`
|
|
276
|
+
- `private_get_broker_querydetailbyuid(request)`
|
|
273
277
|
- `private_get_migrate_user_account_status(request)`
|
|
274
278
|
- `private_get_affiliate_inviter_statistics(request)`
|
|
275
279
|
- `private_post_sub_user_created(request)`
|
|
@@ -363,6 +367,8 @@ You can also construct custom requests to available "implicit" endpoints
|
|
|
363
367
|
- `futuresprivate_get_margin_maxwithdrawmargin(request)`
|
|
364
368
|
- `futuresprivate_get_contracts_risk_limit_symbol(request)`
|
|
365
369
|
- `futuresprivate_get_funding_history(request)`
|
|
370
|
+
- `futuresprivate_get_copy_trade_futures_get_max_open_size(request)`
|
|
371
|
+
- `futuresprivate_get_copy_trade_futures_position_margin_max_withdraw_margin(request)`
|
|
366
372
|
- `futuresprivate_post_transfer_out(request)`
|
|
367
373
|
- `futuresprivate_post_transfer_in(request)`
|
|
368
374
|
- `futuresprivate_post_orders(request)`
|
|
@@ -372,11 +378,24 @@ You can also construct custom requests to available "implicit" endpoints
|
|
|
372
378
|
- `futuresprivate_post_margin_withdrawmargin(request)`
|
|
373
379
|
- `futuresprivate_post_position_margin_deposit_margin(request)`
|
|
374
380
|
- `futuresprivate_post_position_risk_limit_level_change(request)`
|
|
381
|
+
- `futuresprivate_post_copy_trade_futures_orders(request)`
|
|
382
|
+
- `futuresprivate_post_copy_trade_futures_orders_test(request)`
|
|
383
|
+
- `futuresprivate_post_copy_trade_futures_st_orders(request)`
|
|
384
|
+
- `futuresprivate_post_copy_trade_futures_position_margin_deposit_margin(request)`
|
|
385
|
+
- `futuresprivate_post_copy_trade_futures_position_margin_withdraw_margin(request)`
|
|
386
|
+
- `futuresprivate_post_copy_trade_futures_position_risk_limit_level_change(request)`
|
|
387
|
+
- `futuresprivate_post_copy_trade_futures_position_margin_auto_deposit_status(request)`
|
|
388
|
+
- `futuresprivate_post_copy_trade_futures_position_changemarginmode(request)`
|
|
389
|
+
- `futuresprivate_post_copy_trade_futures_position_changecrossuserleverage(request)`
|
|
390
|
+
- `futuresprivate_post_copy_trade_getcrossmodemarginrequirement(request)`
|
|
391
|
+
- `futuresprivate_post_copy_trade_position_switchpositionmode(request)`
|
|
375
392
|
- `futuresprivate_post_bullet_private(request)`
|
|
376
393
|
- `futuresprivate_delete_orders_orderid(request)`
|
|
377
394
|
- `futuresprivate_delete_orders_client_order_clientoid(request)`
|
|
378
395
|
- `futuresprivate_delete_orders(request)`
|
|
379
396
|
- `futuresprivate_delete_stoporders(request)`
|
|
397
|
+
- `futuresprivate_delete_copy_trade_futures_orders(request)`
|
|
398
|
+
- `futuresprivate_delete_copy_trade_futures_orders_client_order(request)`
|
|
380
399
|
- `webexchange_get_currency_currency_chain_info(request)`
|
|
381
400
|
- `broker_get_broker_nd_info(request)`
|
|
382
401
|
- `broker_get_broker_nd_account(request)`
|
|
@@ -402,6 +421,17 @@ You can also construct custom requests to available "implicit" endpoints
|
|
|
402
421
|
- `earn_get_earn_eth_staking_products(request)`
|
|
403
422
|
- `earn_post_earn_orders(request)`
|
|
404
423
|
- `earn_delete_earn_orders(request)`
|
|
424
|
+
- `uta_get_market_announcement(request)`
|
|
425
|
+
- `uta_get_market_currency(request)`
|
|
426
|
+
- `uta_get_market_instrument(request)`
|
|
427
|
+
- `uta_get_market_ticker(request)`
|
|
428
|
+
- `uta_get_market_orderbook(request)`
|
|
429
|
+
- `uta_get_market_trade(request)`
|
|
430
|
+
- `uta_get_market_kline(request)`
|
|
431
|
+
- `uta_get_market_funding_rate(request)`
|
|
432
|
+
- `uta_get_market_funding_rate_history(request)`
|
|
433
|
+
- `uta_get_market_cross_config(request)`
|
|
434
|
+
- `uta_get_market_server_status(request)`
|
|
405
435
|
|
|
406
436
|
### WS Unified
|
|
407
437
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
kucoin/__init__.py,sha256=J1NNMLktlkCZKV82j8CFTVES3O3TCVk3so0ROi4E52o,246
|
|
2
|
-
kucoin/ccxt/__init__.py,sha256=
|
|
3
|
-
kucoin/ccxt/kucoin.py,sha256=
|
|
4
|
-
kucoin/ccxt/abstract/kucoin.py,sha256=
|
|
5
|
-
kucoin/ccxt/async_support/__init__.py,sha256=
|
|
6
|
-
kucoin/ccxt/async_support/kucoin.py,sha256=
|
|
2
|
+
kucoin/ccxt/__init__.py,sha256=KofM46qrA5drYviowULHhmUgrTsSpBLglw4BYeKYYtM,6131
|
|
3
|
+
kucoin/ccxt/kucoin.py,sha256=7k9nLnvFa6AX42cD6UMcQzXmW75y3zSoQZ6lGV1flEU,234553
|
|
4
|
+
kucoin/ccxt/abstract/kucoin.py,sha256=UIVEPZoZCJ9vzDkS1WG-d4-f2nG5v4MrS6ARaLkRQFw,33629
|
|
5
|
+
kucoin/ccxt/async_support/__init__.py,sha256=zh2JqTDJTSFvIi0p20ASNkhPx5B4J-vztgbN1lEmZ-0,4864
|
|
6
|
+
kucoin/ccxt/async_support/kucoin.py,sha256=8VhQXToBQHa-NggKKT4EWo3RRNauVlwqcnAng3IyYl8,235703
|
|
7
7
|
kucoin/ccxt/async_support/base/__init__.py,sha256=aVYSsFi--b4InRs9zDN_wtCpj8odosAB726JdUHavrk,67
|
|
8
|
-
kucoin/ccxt/async_support/base/exchange.py,sha256=
|
|
8
|
+
kucoin/ccxt/async_support/base/exchange.py,sha256=ir3rylgHTEu2MuD1Ew8zqnKl0XthCQMSqCkLf7lKZ4Y,126383
|
|
9
9
|
kucoin/ccxt/async_support/base/throttler.py,sha256=SR1JdHbXgkkRps_YBP7QxVREHsBN1Gbpm5gx_YuMa5g,1841
|
|
10
10
|
kucoin/ccxt/async_support/base/ws/__init__.py,sha256=uockzpLuwntKGZbs5EOWFe-Zg-k6Cj7GhNJLc_RX0so,1791
|
|
11
11
|
kucoin/ccxt/async_support/base/ws/cache.py,sha256=xf2VOtfUwloxSlIQ39M1RGZHWQzyS9IGhB5NX6cDcAc,8370
|
|
@@ -17,10 +17,10 @@ kucoin/ccxt/async_support/base/ws/order_book_side.py,sha256=GhnGUt78pJ-AYL_Dq9pr
|
|
|
17
17
|
kucoin/ccxt/base/__init__.py,sha256=eTx1OE3HJjspFUQjGm6LBhaQiMKJnXjkdP-JUXknyQ0,1320
|
|
18
18
|
kucoin/ccxt/base/decimal_to_precision.py,sha256=3XI30u9YudHbTA438397u5rkdlXa3atxwZEfUus3C4k,6803
|
|
19
19
|
kucoin/ccxt/base/errors.py,sha256=LdTTHPmxpeFHJze93mGl7I3maqTgN0y_1mJ6coWkXmA,4734
|
|
20
|
-
kucoin/ccxt/base/exchange.py,sha256=
|
|
20
|
+
kucoin/ccxt/base/exchange.py,sha256=KgtfvGePpSQ5vs1B1EQGHDrBoERC2XcL-lQ2h6OEdVs,349705
|
|
21
21
|
kucoin/ccxt/base/precise.py,sha256=koce64Yrp6vFbGijJtUt-QQ6XhJgeGTCksZ871FPp_A,8886
|
|
22
22
|
kucoin/ccxt/base/types.py,sha256=Gvbogh9i7pPH7Z18xesYeDPribqqwq8uKpOv-YODFBs,11505
|
|
23
|
-
kucoin/ccxt/pro/__init__.py,sha256=
|
|
23
|
+
kucoin/ccxt/pro/__init__.py,sha256=NqKDjvEUUlbKpwr-Nyy8p7ZHmeJj9tNKGhi7VrVPgvU,4178
|
|
24
24
|
kucoin/ccxt/pro/kucoin.py,sha256=eBjzfTr_92s-enpJaFr47fAbXLWgVKkxST-C_lZM_cU,63979
|
|
25
25
|
kucoin/ccxt/static_dependencies/README.md,sha256=3TCvhhn09_Cqf9BDDpao1V7EfKHDpQ6k9oWRsLFixpU,18
|
|
26
26
|
kucoin/ccxt/static_dependencies/__init__.py,sha256=tzFje8cloqmiIE6kola3EaYC0SnD1izWnri69hzHsSw,168
|
|
@@ -281,6 +281,6 @@ kucoin/ccxt/static_dependencies/toolz/curried/exceptions.py,sha256=gKFOHDIayAWnX
|
|
|
281
281
|
kucoin/ccxt/static_dependencies/toolz/curried/operator.py,sha256=ML92mknkAwzBl2NCm-4werSUmJEtSHNY9NSzhseNM9s,525
|
|
282
282
|
kucoin/ccxt/static_dependencies/typing_inspect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
283
283
|
kucoin/ccxt/static_dependencies/typing_inspect/typing_inspect.py,sha256=5gIWomLPfuDpgd3gX1GlnX0MuXM3VorR4j2W2qXORiQ,28269
|
|
284
|
-
kucoin_api-0.0.
|
|
285
|
-
kucoin_api-0.0.
|
|
286
|
-
kucoin_api-0.0.
|
|
284
|
+
kucoin_api-0.0.103.dist-info/METADATA,sha256=C3f-RfXHo9_LexXbTGmoNuRQIhsg6hTEcb-IiLDdA1M,20563
|
|
285
|
+
kucoin_api-0.0.103.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
286
|
+
kucoin_api-0.0.103.dist-info/RECORD,,
|
|
File without changes
|