ccxt 4.0.112 → 4.1.2
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.
- package/README.md +3 -3
- package/dist/ccxt.browser.js +251 -33
- package/dist/ccxt.browser.min.js +9 -9
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/base/Exchange.js +6 -0
- package/dist/cjs/src/binance.js +84 -0
- package/dist/cjs/src/bitrue.js +1 -1
- package/dist/cjs/src/bybit.js +27 -8
- package/dist/cjs/src/coinbasepro.js +1 -0
- package/dist/cjs/src/kucoin.js +31 -1
- package/dist/cjs/src/latoken.js +1 -1
- package/dist/cjs/src/okx.js +27 -11
- package/dist/cjs/src/pro/coinbasepro.js +70 -8
- package/dist/cjs/src/pro/okx.js +2 -2
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/coinbaseprime.d.ts +1 -0
- package/js/src/abstract/coinbasepro.d.ts +1 -0
- package/js/src/base/Exchange.d.ts +2 -0
- package/js/src/base/Exchange.js +6 -0
- package/js/src/binance.js +84 -0
- package/js/src/bitrue.js +1 -1
- package/js/src/bybit.js +27 -8
- package/js/src/coinbasepro.js +1 -0
- package/js/src/kucoin.js +31 -1
- package/js/src/latoken.js +1 -1
- package/js/src/okx.js +27 -11
- package/js/src/pro/coinbasepro.d.ts +3 -24
- package/js/src/pro/coinbasepro.js +70 -8
- package/js/src/pro/okx.js +2 -2
- package/package.json +1 -1
package/dist/cjs/ccxt.js
CHANGED
|
@@ -179,7 +179,7 @@ var woo$1 = require('./src/pro/woo.js');
|
|
|
179
179
|
|
|
180
180
|
//-----------------------------------------------------------------------------
|
|
181
181
|
// this is updated by vss.js when building
|
|
182
|
-
const version = '4.
|
|
182
|
+
const version = '4.1.2';
|
|
183
183
|
Exchange["default"].ccxtVersion = version;
|
|
184
184
|
const exchanges = {
|
|
185
185
|
'ace': ace,
|
|
@@ -1310,6 +1310,12 @@ class Exchange {
|
|
|
1310
1310
|
async watchTradesForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
|
|
1311
1311
|
throw new errors.NotSupported(this.id + ' watchTradesForSymbols() is not supported yet');
|
|
1312
1312
|
}
|
|
1313
|
+
async watchMyTradesForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
|
|
1314
|
+
throw new errors.NotSupported(this.id + ' watchMyTradesForSymbols() is not supported yet');
|
|
1315
|
+
}
|
|
1316
|
+
async watchOrdersForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
|
|
1317
|
+
throw new errors.NotSupported(this.id + ' watchOrdersForSymbols() is not supported yet');
|
|
1318
|
+
}
|
|
1313
1319
|
async watchOHLCVForSymbols(symbolsAndTimeframes, since = undefined, limit = undefined, params = {}) {
|
|
1314
1320
|
throw new errors.NotSupported(this.id + ' watchOHLCVForSymbols() is not supported yet');
|
|
1315
1321
|
}
|
package/dist/cjs/src/binance.js
CHANGED
|
@@ -3306,6 +3306,14 @@ class binance extends binance$1 {
|
|
|
3306
3306
|
* @method
|
|
3307
3307
|
* @name binance#fetchOHLCV
|
|
3308
3308
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
3309
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
|
|
3310
|
+
* @see https://binance-docs.github.io/apidocs/voptions/en/#kline-candlestick-data
|
|
3311
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#index-price-kline-candlestick-data
|
|
3312
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#mark-price-kline-candlestick-data
|
|
3313
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
|
|
3314
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#index-price-kline-candlestick-data
|
|
3315
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#mark-price-kline-candlestick-data
|
|
3316
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
|
|
3309
3317
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
3310
3318
|
* @param {string} timeframe the length of time each candle represents
|
|
3311
3319
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -4621,6 +4629,11 @@ class binance extends binance$1 {
|
|
|
4621
4629
|
* @method
|
|
4622
4630
|
* @name binance#fetchOrder
|
|
4623
4631
|
* @description fetches information on an order made by the user
|
|
4632
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-order-user_data
|
|
4633
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#query-order-user_data
|
|
4634
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#query-order-user_data
|
|
4635
|
+
* @see https://binance-docs.github.io/apidocs/voptions/en/#query-single-order-trade
|
|
4636
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-order-user_data
|
|
4624
4637
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
4625
4638
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
4626
4639
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
|
|
@@ -4672,6 +4685,11 @@ class binance extends binance$1 {
|
|
|
4672
4685
|
* @method
|
|
4673
4686
|
* @name binance#fetchOrders
|
|
4674
4687
|
* @description fetches information on multiple orders made by the user
|
|
4688
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#all-orders-user_data
|
|
4689
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#all-orders-user_data
|
|
4690
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#all-orders-user_data
|
|
4691
|
+
* @see https://binance-docs.github.io/apidocs/voptions/en/#query-option-order-history-trade
|
|
4692
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-all-orders-user_data
|
|
4675
4693
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4676
4694
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4677
4695
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -4792,6 +4810,11 @@ class binance extends binance$1 {
|
|
|
4792
4810
|
* @method
|
|
4793
4811
|
* @name binance#fetchOpenOrders
|
|
4794
4812
|
* @description fetch all unfilled currently open orders
|
|
4813
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#current-open-orders-user_data
|
|
4814
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#current-all-open-orders-user_data
|
|
4815
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#current-all-open-orders-user_data
|
|
4816
|
+
* @see https://binance-docs.github.io/apidocs/voptions/en/#query-current-open-option-orders-user_data
|
|
4817
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-open-orders-user_data
|
|
4795
4818
|
* @param {string} symbol unified market symbol
|
|
4796
4819
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
4797
4820
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -4859,6 +4882,11 @@ class binance extends binance$1 {
|
|
|
4859
4882
|
* @method
|
|
4860
4883
|
* @name binance#fetchClosedOrders
|
|
4861
4884
|
* @description fetches information on multiple closed orders made by the user
|
|
4885
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#all-orders-user_data
|
|
4886
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#all-orders-user_data
|
|
4887
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#all-orders-user_data
|
|
4888
|
+
* @see https://binance-docs.github.io/apidocs/voptions/en/#query-option-order-history-trade
|
|
4889
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-all-orders-user_data
|
|
4862
4890
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4863
4891
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4864
4892
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -4898,6 +4926,11 @@ class binance extends binance$1 {
|
|
|
4898
4926
|
* @method
|
|
4899
4927
|
* @name binance#cancelOrder
|
|
4900
4928
|
* @description cancels an open order
|
|
4929
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#cancel-order-trade
|
|
4930
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#cancel-order-trade
|
|
4931
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#cancel-order-trade
|
|
4932
|
+
* @see https://binance-docs.github.io/apidocs/voptions/en/#cancel-option-order-trade
|
|
4933
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#margin-account-cancel-order-trade
|
|
4901
4934
|
* @param {string} id order id
|
|
4902
4935
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
4903
4936
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
@@ -5000,6 +5033,7 @@ class binance extends binance$1 {
|
|
|
5000
5033
|
* @name binance#cancelOrders
|
|
5001
5034
|
* @description cancel multiple orders
|
|
5002
5035
|
* @see https://binance-docs.github.io/apidocs/futures/en/#cancel-multiple-orders-trade
|
|
5036
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#cancel-multiple-orders-trade
|
|
5003
5037
|
* @param {[string]} ids order ids
|
|
5004
5038
|
* @param {string} [symbol] unified market symbol
|
|
5005
5039
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
@@ -5068,6 +5102,10 @@ class binance extends binance$1 {
|
|
|
5068
5102
|
* @method
|
|
5069
5103
|
* @name binance#fetchOrderTrades
|
|
5070
5104
|
* @description fetch all the trades made from a single order
|
|
5105
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#account-trade-list-user_data
|
|
5106
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#account-trade-list-user_data
|
|
5107
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#account-trade-list-user_data
|
|
5108
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-trade-list-user_data
|
|
5071
5109
|
* @param {string} id order id
|
|
5072
5110
|
* @param {string} symbol unified market symbol
|
|
5073
5111
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
@@ -5095,6 +5133,10 @@ class binance extends binance$1 {
|
|
|
5095
5133
|
* @method
|
|
5096
5134
|
* @name binance#fetchMyTrades
|
|
5097
5135
|
* @description fetch all trades made by the user
|
|
5136
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#account-trade-list-user_data
|
|
5137
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#account-trade-list-user_data
|
|
5138
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#account-trade-list-user_data
|
|
5139
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-trade-list-user_data
|
|
5098
5140
|
* @param {string} symbol unified market symbol
|
|
5099
5141
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
5100
5142
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -5234,6 +5276,7 @@ class binance extends binance$1 {
|
|
|
5234
5276
|
* @method
|
|
5235
5277
|
* @name binance#fetchMyDustTrades
|
|
5236
5278
|
* @description fetch all dust trades made by the user
|
|
5279
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#dustlog-user_data
|
|
5237
5280
|
* @param {string} symbol not used by binance fetchMyDustTrades ()
|
|
5238
5281
|
* @param {int} [since] the earliest time in ms to fetch my dust trades for
|
|
5239
5282
|
* @param {int} [limit] the maximum number of dust trades to retrieve
|
|
@@ -5372,6 +5415,8 @@ class binance extends binance$1 {
|
|
|
5372
5415
|
* @method
|
|
5373
5416
|
* @name binance#fetchDeposits
|
|
5374
5417
|
* @description fetch all deposits made to an account
|
|
5418
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#get-fiat-deposit-withdraw-history-user_data
|
|
5419
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#deposit-history-supporting-network-user_data
|
|
5375
5420
|
* @param {string} code unified currency code
|
|
5376
5421
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
5377
5422
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
@@ -5476,6 +5521,8 @@ class binance extends binance$1 {
|
|
|
5476
5521
|
* @method
|
|
5477
5522
|
* @name binance#fetchWithdrawals
|
|
5478
5523
|
* @description fetch all withdrawals made from an account
|
|
5524
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#get-fiat-deposit-withdraw-history-user_data
|
|
5525
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#withdraw-history-supporting-network-user_data
|
|
5479
5526
|
* @param {string} code unified currency code
|
|
5480
5527
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
5481
5528
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -5940,6 +5987,7 @@ class binance extends binance$1 {
|
|
|
5940
5987
|
* @method
|
|
5941
5988
|
* @name binance#fetchTransfers
|
|
5942
5989
|
* @description fetch a history of internal transfers made on an account
|
|
5990
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-user-universal-transfer-history-user_data
|
|
5943
5991
|
* @param {string} code unified currency code of the currency transferred
|
|
5944
5992
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
5945
5993
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
@@ -6003,6 +6051,7 @@ class binance extends binance$1 {
|
|
|
6003
6051
|
* @method
|
|
6004
6052
|
* @name binance#fetchDepositAddress
|
|
6005
6053
|
* @description fetch the deposit address for a currency associated with this account
|
|
6054
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#deposit-address-supporting-network-user_data
|
|
6006
6055
|
* @param {string} code unified currency code
|
|
6007
6056
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
6008
6057
|
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
@@ -6078,6 +6127,7 @@ class binance extends binance$1 {
|
|
|
6078
6127
|
* @name binance#fetchTransactionFees
|
|
6079
6128
|
* @deprecated
|
|
6080
6129
|
* @description please use fetchDepositWithdrawFees instead
|
|
6130
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#all-coins-39-information-user_data
|
|
6081
6131
|
* @param {string[]|undefined} codes not used by binance fetchTransactionFees ()
|
|
6082
6132
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
6083
6133
|
* @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
@@ -6191,6 +6241,7 @@ class binance extends binance$1 {
|
|
|
6191
6241
|
* @method
|
|
6192
6242
|
* @name binance#fetchDepositWithdrawFees
|
|
6193
6243
|
* @description fetch deposit and withdraw fees
|
|
6244
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#all-coins-39-information-user_data
|
|
6194
6245
|
* @param {string[]|undefined} codes not used by binance fetchDepositWithdrawFees ()
|
|
6195
6246
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
6196
6247
|
* @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
@@ -6314,6 +6365,7 @@ class binance extends binance$1 {
|
|
|
6314
6365
|
* @method
|
|
6315
6366
|
* @name binance#withdraw
|
|
6316
6367
|
* @description make a withdrawal
|
|
6368
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#withdraw-user_data
|
|
6317
6369
|
* @param {string} code unified currency code
|
|
6318
6370
|
* @param {float} amount the amount to withdraw
|
|
6319
6371
|
* @param {string} address the address to withdraw to
|
|
@@ -6369,6 +6421,7 @@ class binance extends binance$1 {
|
|
|
6369
6421
|
* @method
|
|
6370
6422
|
* @name binance#fetchTradingFee
|
|
6371
6423
|
* @description fetch the trading fees for a market
|
|
6424
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#trade-fee-user_data
|
|
6372
6425
|
* @param {string} symbol unified market symbol
|
|
6373
6426
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
6374
6427
|
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
@@ -6396,6 +6449,9 @@ class binance extends binance$1 {
|
|
|
6396
6449
|
* @method
|
|
6397
6450
|
* @name binance#fetchTradingFees
|
|
6398
6451
|
* @description fetch the trading fees for multiple markets
|
|
6452
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#trade-fee-user_data
|
|
6453
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data
|
|
6454
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#account-information-user_data
|
|
6399
6455
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
6400
6456
|
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
6401
6457
|
*/
|
|
@@ -6573,6 +6629,7 @@ class binance extends binance$1 {
|
|
|
6573
6629
|
* @method
|
|
6574
6630
|
* @name binance#futuresTransfer
|
|
6575
6631
|
* @description transfer between futures account
|
|
6632
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#new-future-account-transfer-user_data
|
|
6576
6633
|
* @param {string} code unified currency code
|
|
6577
6634
|
* @param {float} amount the amount to transfer
|
|
6578
6635
|
* @param {string} type 1 - transfer from spot account to USDT-Ⓜ futures account, 2 - transfer from USDT-Ⓜ futures account to spot account, 3 - transfer from spot account to COIN-Ⓜ futures account, 4 - transfer from COIN-Ⓜ futures account to spot account
|
|
@@ -6603,6 +6660,8 @@ class binance extends binance$1 {
|
|
|
6603
6660
|
* @method
|
|
6604
6661
|
* @name binance#fetchFundingRate
|
|
6605
6662
|
* @description fetch the current funding rate
|
|
6663
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#mark-price
|
|
6664
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
|
|
6606
6665
|
* @param {string} symbol unified market symbol
|
|
6607
6666
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
6608
6667
|
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
@@ -6645,6 +6704,8 @@ class binance extends binance$1 {
|
|
|
6645
6704
|
* @method
|
|
6646
6705
|
* @name binance#fetchFundingRateHistory
|
|
6647
6706
|
* @description fetches historical funding rate prices
|
|
6707
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#get-funding-rate-history
|
|
6708
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#get-funding-rate-history-of-perpetual-futures
|
|
6648
6709
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
6649
6710
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
6650
6711
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
|
|
@@ -6715,6 +6776,8 @@ class binance extends binance$1 {
|
|
|
6715
6776
|
* @method
|
|
6716
6777
|
* @name binance#fetchFundingRates
|
|
6717
6778
|
* @description fetch the funding rate for multiple markets
|
|
6779
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#mark-price
|
|
6780
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
|
|
6718
6781
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
6719
6782
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
6720
6783
|
* @returns {object} a dictionary of [funding rates structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rates-structure}, indexe by market symbols
|
|
@@ -7243,6 +7306,8 @@ class binance extends binance$1 {
|
|
|
7243
7306
|
* @method
|
|
7244
7307
|
* @name binance#fetchLeverageTiers
|
|
7245
7308
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
7309
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#notional-and-leverage-brackets-user_data
|
|
7310
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#notional-bracket-for-symbol-user_data
|
|
7246
7311
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
7247
7312
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
7248
7313
|
* @returns {object} a dictionary of [leverage tiers structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure}, indexed by market symbols
|
|
@@ -7531,6 +7596,8 @@ class binance extends binance$1 {
|
|
|
7531
7596
|
* @method
|
|
7532
7597
|
* @name binance#fetchAccountPositions
|
|
7533
7598
|
* @description fetch account positions
|
|
7599
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data
|
|
7600
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#account-information-user_data
|
|
7534
7601
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
7535
7602
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
7536
7603
|
* @returns {object} data on account positions
|
|
@@ -7568,6 +7635,7 @@ class binance extends binance$1 {
|
|
|
7568
7635
|
* @name binance#fetchPositionsRisk
|
|
7569
7636
|
* @description fetch positions risk
|
|
7570
7637
|
* @see https://binance-docs.github.io/apidocs/futures/en/#position-information-v2-user_data
|
|
7638
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#position-information-user_data
|
|
7571
7639
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
7572
7640
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
7573
7641
|
* @returns {object} data on the positions risk
|
|
@@ -7664,6 +7732,8 @@ class binance extends binance$1 {
|
|
|
7664
7732
|
* @method
|
|
7665
7733
|
* @name binance#fetchFundingHistory
|
|
7666
7734
|
* @description fetch the history of funding payments paid and received on this account
|
|
7735
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#get-income-history-user_data
|
|
7736
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#get-income-history-user_data
|
|
7667
7737
|
* @param {string} symbol unified market symbol
|
|
7668
7738
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
7669
7739
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
@@ -7711,6 +7781,8 @@ class binance extends binance$1 {
|
|
|
7711
7781
|
* @method
|
|
7712
7782
|
* @name binance#setLeverage
|
|
7713
7783
|
* @description set the level of leverage for a market
|
|
7784
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#change-initial-leverage-trade
|
|
7785
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#change-initial-leverage-trade
|
|
7714
7786
|
* @param {float} leverage the rate of leverage
|
|
7715
7787
|
* @param {string} symbol unified market symbol
|
|
7716
7788
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
@@ -7747,6 +7819,8 @@ class binance extends binance$1 {
|
|
|
7747
7819
|
* @method
|
|
7748
7820
|
* @name binance#setMarginMode
|
|
7749
7821
|
* @description set margin mode to 'cross' or 'isolated'
|
|
7822
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#change-margin-type-trade
|
|
7823
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#change-margin-type-trade
|
|
7750
7824
|
* @param {string} marginMode 'cross' or 'isolated'
|
|
7751
7825
|
* @param {string} symbol unified market symbol
|
|
7752
7826
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
@@ -7815,6 +7889,8 @@ class binance extends binance$1 {
|
|
|
7815
7889
|
* @method
|
|
7816
7890
|
* @name binance#setPositionMode
|
|
7817
7891
|
* @description set hedged to true or false for a market
|
|
7892
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#change-position-mode-trade
|
|
7893
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#change-position-mode-trade
|
|
7818
7894
|
* @param {bool} hedged set to true to use dualSidePosition
|
|
7819
7895
|
* @param {string} symbol not used by binance setPositionMode ()
|
|
7820
7896
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
@@ -8503,6 +8579,7 @@ class binance extends binance$1 {
|
|
|
8503
8579
|
* @method
|
|
8504
8580
|
* @name binance#fetchBorrowRate
|
|
8505
8581
|
* @description fetch the rate of interest to borrow a currency for margin trading
|
|
8582
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-margin-interest-rate-history-user_data
|
|
8506
8583
|
* @param {string} code unified currency code
|
|
8507
8584
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
8508
8585
|
* @returns {object} a [borrow rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
|
|
@@ -8532,6 +8609,7 @@ class binance extends binance$1 {
|
|
|
8532
8609
|
* @method
|
|
8533
8610
|
* @name binance#fetchBorrowRateHistory
|
|
8534
8611
|
* @description retrieves a history of a currencies borrow interest rate at specific time slots
|
|
8612
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-margin-interest-rate-history-user_data
|
|
8535
8613
|
* @param {string} code unified currency code
|
|
8536
8614
|
* @param {int} [since] timestamp for the earliest borrow rate
|
|
8537
8615
|
* @param {int} [limit] the maximum number of [borrow rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure} to retrieve
|
|
@@ -8605,6 +8683,7 @@ class binance extends binance$1 {
|
|
|
8605
8683
|
* @method
|
|
8606
8684
|
* @name binance#createGiftCode
|
|
8607
8685
|
* @description create gift code
|
|
8686
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#create-a-single-token-gift-card-user_data
|
|
8608
8687
|
* @param {string} code gift code
|
|
8609
8688
|
* @param {float} amount amount of currency for the gift
|
|
8610
8689
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
@@ -8642,6 +8721,7 @@ class binance extends binance$1 {
|
|
|
8642
8721
|
* @method
|
|
8643
8722
|
* @name binance#redeemGiftCode
|
|
8644
8723
|
* @description redeem gift code
|
|
8724
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#redeem-a-binance-gift-card-user_data
|
|
8645
8725
|
* @param {string} giftcardCode
|
|
8646
8726
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
8647
8727
|
* @returns {object} response from the exchange
|
|
@@ -8668,6 +8748,7 @@ class binance extends binance$1 {
|
|
|
8668
8748
|
* @method
|
|
8669
8749
|
* @name binance#verifyGiftCode
|
|
8670
8750
|
* @description verify gift code
|
|
8751
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#verify-binance-gift-card-by-gift-card-number-user_data
|
|
8671
8752
|
* @param {string} id reference number id
|
|
8672
8753
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
8673
8754
|
* @returns {object} response from the exchange
|
|
@@ -8691,6 +8772,7 @@ class binance extends binance$1 {
|
|
|
8691
8772
|
* @method
|
|
8692
8773
|
* @name binance#fetchBorrowInterest
|
|
8693
8774
|
* @description fetch the interest owed by the user for borrowing currency for margin trading
|
|
8775
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#get-interest-history-user_data
|
|
8694
8776
|
* @param {string} code unified currency code
|
|
8695
8777
|
* @param {string} symbol unified market symbol when fetch interest in isolated markets
|
|
8696
8778
|
* @param {int} [since] the earliest time in ms to fetch borrrow interest for
|
|
@@ -8843,6 +8925,8 @@ class binance extends binance$1 {
|
|
|
8843
8925
|
* @method
|
|
8844
8926
|
* @name binance#fetchOpenInterestHistory
|
|
8845
8927
|
* @description Retrieves the open interest history of a currency
|
|
8928
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#open-interest-statistics
|
|
8929
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#open-interest-statistics
|
|
8846
8930
|
* @param {string} symbol Unified CCXT market symbol
|
|
8847
8931
|
* @param {string} timeframe "5m","15m","30m","1h","2h","4h","6h","12h", or "1d"
|
|
8848
8932
|
* @param {int} [since] the time(ms) of the earliest record to retrieve as a unix timestamp
|
package/dist/cjs/src/bitrue.js
CHANGED
|
@@ -829,7 +829,7 @@ class bitrue extends bitrue$1 {
|
|
|
829
829
|
'last': last,
|
|
830
830
|
'previousClose': undefined,
|
|
831
831
|
'change': undefined,
|
|
832
|
-
'percentage': this.safeString(ticker, 'percentChange'),
|
|
832
|
+
'percentage': Precise["default"].stringMul(this.safeString(ticker, 'percentChange'), '10000'),
|
|
833
833
|
'average': undefined,
|
|
834
834
|
'baseVolume': this.safeString(ticker, 'baseVolume'),
|
|
835
835
|
'quoteVolume': this.safeString(ticker, 'quoteVolume'),
|
package/dist/cjs/src/bybit.js
CHANGED
|
@@ -4008,6 +4008,16 @@ class bybit extends bybit$1 {
|
|
|
4008
4008
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
4009
4009
|
* @param {float} price the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
|
|
4010
4010
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
4011
|
+
* @param {float} [params.triggerPrice] The price that a trigger order is triggered at
|
|
4012
|
+
* @param {float} [params.stopLossPrice] The price that a stop loss order is triggered at
|
|
4013
|
+
* @param {float} [params.takeProfitPrice] The price that a take profit order is triggered at
|
|
4014
|
+
* @param {object} [params.takeProfit] *takeProfit object in params* containing the triggerPrice that the attached take profit order will be triggered
|
|
4015
|
+
* @param {float} [params.takeProfit.triggerPrice] take profit trigger price
|
|
4016
|
+
* @param {object} [params.stopLoss] *stopLoss object in params* containing the triggerPrice that the attached stop loss order will be triggered
|
|
4017
|
+
* @param {float} [params.stopLoss.triggerPrice] stop loss trigger price
|
|
4018
|
+
* @param {string} [params.triggerBy] 'IndexPrice', 'MarkPrice' or 'LastPrice', default is 'LastPrice', required if no initial value for triggerPrice
|
|
4019
|
+
* @param {string} [params.slTriggerBy] 'IndexPrice', 'MarkPrice' or 'LastPrice', default is 'LastPrice', required if no initial value for stopLoss
|
|
4020
|
+
* @param {string} [params.tpTriggerby] 'IndexPrice', 'MarkPrice' or 'LastPrice', default is 'LastPrice', required if no initial value for takeProfit
|
|
4011
4021
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4012
4022
|
*/
|
|
4013
4023
|
this.checkRequiredSymbol('editOrder', symbol);
|
|
@@ -4050,9 +4060,9 @@ class bybit extends bybit$1 {
|
|
|
4050
4060
|
if (amount !== undefined) {
|
|
4051
4061
|
request['qty'] = this.amountToPrecision(symbol, amount);
|
|
4052
4062
|
}
|
|
4053
|
-
let triggerPrice = this.
|
|
4054
|
-
const stopLossTriggerPrice = this.
|
|
4055
|
-
const takeProfitTriggerPrice = this.
|
|
4063
|
+
let triggerPrice = this.safeString2(params, 'triggerPrice', 'stopPrice');
|
|
4064
|
+
const stopLossTriggerPrice = this.safeString(params, 'stopLossPrice');
|
|
4065
|
+
const takeProfitTriggerPrice = this.safeString(params, 'takeProfitPrice');
|
|
4056
4066
|
const stopLoss = this.safeValue(params, 'stopLoss');
|
|
4057
4067
|
const takeProfit = this.safeValue(params, 'takeProfit');
|
|
4058
4068
|
const isStopLossTriggerOrder = stopLossTriggerPrice !== undefined;
|
|
@@ -4063,16 +4073,25 @@ class bybit extends bybit$1 {
|
|
|
4063
4073
|
triggerPrice = isStopLossTriggerOrder ? stopLossTriggerPrice : takeProfitTriggerPrice;
|
|
4064
4074
|
}
|
|
4065
4075
|
if (triggerPrice !== undefined) {
|
|
4066
|
-
|
|
4076
|
+
const triggerPriceRequest = (triggerPrice === '0') ? triggerPrice : this.priceToPrecision(symbol, triggerPrice);
|
|
4077
|
+
request['triggerPrice'] = triggerPriceRequest;
|
|
4078
|
+
const triggerBy = this.safeString(params, 'triggerBy', 'LastPrice');
|
|
4079
|
+
request['triggerBy'] = triggerBy;
|
|
4067
4080
|
}
|
|
4068
4081
|
if (isStopLoss || isTakeProfit) {
|
|
4069
4082
|
if (isStopLoss) {
|
|
4070
|
-
const slTriggerPrice = this.
|
|
4071
|
-
|
|
4083
|
+
const slTriggerPrice = this.safeString2(stopLoss, 'triggerPrice', 'stopPrice', stopLoss);
|
|
4084
|
+
const stopLossRequest = (slTriggerPrice === '0') ? slTriggerPrice : this.priceToPrecision(symbol, slTriggerPrice);
|
|
4085
|
+
request['stopLoss'] = stopLossRequest;
|
|
4086
|
+
const slTriggerBy = this.safeString(params, 'slTriggerBy', 'LastPrice');
|
|
4087
|
+
request['slTriggerBy'] = slTriggerBy;
|
|
4072
4088
|
}
|
|
4073
4089
|
if (isTakeProfit) {
|
|
4074
|
-
const tpTriggerPrice = this.
|
|
4075
|
-
|
|
4090
|
+
const tpTriggerPrice = this.safeString2(takeProfit, 'triggerPrice', 'stopPrice', takeProfit);
|
|
4091
|
+
const takeProfitRequest = (tpTriggerPrice === '0') ? tpTriggerPrice : this.priceToPrecision(symbol, tpTriggerPrice);
|
|
4092
|
+
request['takeProfit'] = takeProfitRequest;
|
|
4093
|
+
const tpTriggerBy = this.safeString(params, 'tpTriggerBy', 'LastPrice');
|
|
4094
|
+
request['tpTriggerBy'] = tpTriggerBy;
|
|
4076
4095
|
}
|
|
4077
4096
|
}
|
|
4078
4097
|
const clientOrderId = this.safeString(params, 'clientOrderId');
|
package/dist/cjs/src/kucoin.js
CHANGED
|
@@ -808,6 +808,7 @@ class kucoin extends kucoin$1 {
|
|
|
808
808
|
* @method
|
|
809
809
|
* @name kucoin#fetchTime
|
|
810
810
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
811
|
+
* @see https://docs.kucoin.com/#server-time
|
|
811
812
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
812
813
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
813
814
|
*/
|
|
@@ -826,6 +827,7 @@ class kucoin extends kucoin$1 {
|
|
|
826
827
|
* @method
|
|
827
828
|
* @name kucoin#fetchStatus
|
|
828
829
|
* @description the latest known information on the availability of the exchange API
|
|
830
|
+
* @see https://docs.kucoin.com/#service-status
|
|
829
831
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
830
832
|
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
831
833
|
*/
|
|
@@ -854,6 +856,8 @@ class kucoin extends kucoin$1 {
|
|
|
854
856
|
* @method
|
|
855
857
|
* @name kucoin#fetchMarkets
|
|
856
858
|
* @description retrieves data on all markets for kucoin
|
|
859
|
+
* @see https://docs.kucoin.com/#get-symbols-list-deprecated
|
|
860
|
+
* @see https://docs.kucoin.com/#get-all-tickers
|
|
857
861
|
* @param {object} [params] extra parameters specific to the exchange api endpoint
|
|
858
862
|
* @returns {object[]} an array of objects representing market data
|
|
859
863
|
*/
|
|
@@ -992,6 +996,7 @@ class kucoin extends kucoin$1 {
|
|
|
992
996
|
* @method
|
|
993
997
|
* @name kucoin#fetchCurrencies
|
|
994
998
|
* @description fetches all available currencies on an exchange
|
|
999
|
+
* @see https://docs.kucoin.com/#get-currencies
|
|
995
1000
|
* @param {object} params extra parameters specific to the kucoin api endpoint
|
|
996
1001
|
* @returns {object} an associative dictionary of currencies
|
|
997
1002
|
*/
|
|
@@ -1089,7 +1094,7 @@ class kucoin extends kucoin$1 {
|
|
|
1089
1094
|
}
|
|
1090
1095
|
for (let j = 0; j < chainsLength; j++) {
|
|
1091
1096
|
const chain = chains[j];
|
|
1092
|
-
const chainId = this.safeString(chain, '
|
|
1097
|
+
const chainId = this.safeString(chain, 'chainId');
|
|
1093
1098
|
const networkCode = this.networkIdToCode(chainId);
|
|
1094
1099
|
const chainWithdrawEnabled = this.safeValue(chain, 'isWithdrawEnabled', false);
|
|
1095
1100
|
if (isWithdrawEnabled === undefined) {
|
|
@@ -1152,6 +1157,7 @@ class kucoin extends kucoin$1 {
|
|
|
1152
1157
|
* @method
|
|
1153
1158
|
* @name kucoin#fetchAccounts
|
|
1154
1159
|
* @description fetch all the accounts associated with a profile
|
|
1160
|
+
* @see https://docs.kucoin.com/#list-accounts
|
|
1155
1161
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
1156
1162
|
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
1157
1163
|
*/
|
|
@@ -1429,6 +1435,7 @@ class kucoin extends kucoin$1 {
|
|
|
1429
1435
|
* @method
|
|
1430
1436
|
* @name kucoin#fetchTickers
|
|
1431
1437
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
1438
|
+
* @see https://docs.kucoin.com/#get-all-tickers
|
|
1432
1439
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1433
1440
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
1434
1441
|
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
@@ -1483,6 +1490,7 @@ class kucoin extends kucoin$1 {
|
|
|
1483
1490
|
* @method
|
|
1484
1491
|
* @name kucoin#fetchTicker
|
|
1485
1492
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1493
|
+
* @see https://docs.kucoin.com/#get-24hr-stats
|
|
1486
1494
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1487
1495
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
1488
1496
|
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
@@ -1544,6 +1552,7 @@ class kucoin extends kucoin$1 {
|
|
|
1544
1552
|
* @method
|
|
1545
1553
|
* @name kucoin#fetchOHLCV
|
|
1546
1554
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
1555
|
+
* @see https://docs.kucoin.com/#get-klines
|
|
1547
1556
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
1548
1557
|
* @param {string} timeframe the length of time each candle represents
|
|
1549
1558
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -1623,6 +1632,7 @@ class kucoin extends kucoin$1 {
|
|
|
1623
1632
|
* @method
|
|
1624
1633
|
* @name kucoin#fetchDepositAddress
|
|
1625
1634
|
* @description fetch the deposit address for a currency associated with this account
|
|
1635
|
+
* @see https://docs.kucoin.com/#get-deposit-addresses-v2
|
|
1626
1636
|
* @param {string} code unified currency code
|
|
1627
1637
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
1628
1638
|
* @param {string} [params.network] the blockchain network name
|
|
@@ -1720,6 +1730,8 @@ class kucoin extends kucoin$1 {
|
|
|
1720
1730
|
* @method
|
|
1721
1731
|
* @name kucoin#fetchOrderBook
|
|
1722
1732
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1733
|
+
* @see https://docs.kucoin.com/#get-part-order-book-aggregated
|
|
1734
|
+
* @see https://docs.kucoin.com/#get-full-order-book-aggregated
|
|
1723
1735
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1724
1736
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1725
1737
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
@@ -2190,6 +2202,10 @@ class kucoin extends kucoin$1 {
|
|
|
2190
2202
|
* @method
|
|
2191
2203
|
* @name kucoin#fetchClosedOrders
|
|
2192
2204
|
* @description fetches information on multiple closed orders made by the user
|
|
2205
|
+
* @see https://docs.kucoin.com/spot#list-orders
|
|
2206
|
+
* @see https://docs.kucoin.com/spot#list-stop-orders
|
|
2207
|
+
* @see https://docs.kucoin.com/spot-hf/#obtain-list-of-active-hf-orders
|
|
2208
|
+
* @see https://docs.kucoin.com/spot-hf/#obtain-list-of-filled-hf-orders
|
|
2193
2209
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2194
2210
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2195
2211
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
@@ -2209,6 +2225,10 @@ class kucoin extends kucoin$1 {
|
|
|
2209
2225
|
* @method
|
|
2210
2226
|
* @name kucoin#fetchOpenOrders
|
|
2211
2227
|
* @description fetch all unfilled currently open orders
|
|
2228
|
+
* @see https://docs.kucoin.com/spot#list-orders
|
|
2229
|
+
* @see https://docs.kucoin.com/spot#list-stop-orders
|
|
2230
|
+
* @see https://docs.kucoin.com/spot-hf/#obtain-list-of-active-hf-orders
|
|
2231
|
+
* @see https://docs.kucoin.com/spot-hf/#obtain-list-of-filled-hf-orders
|
|
2212
2232
|
* @param {string} symbol unified market symbol
|
|
2213
2233
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2214
2234
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -2485,6 +2505,8 @@ class kucoin extends kucoin$1 {
|
|
|
2485
2505
|
* @method
|
|
2486
2506
|
* @name kucoin#fetchOrderTrades
|
|
2487
2507
|
* @description fetch all the trades made from a single order
|
|
2508
|
+
* @see https://docs.kucoin.com/#list-fills
|
|
2509
|
+
* @see https://docs.kucoin.com/spot-hf/#transaction-details
|
|
2488
2510
|
* @param {string} id order id
|
|
2489
2511
|
* @param {string} symbol unified market symbol
|
|
2490
2512
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
@@ -2610,6 +2632,7 @@ class kucoin extends kucoin$1 {
|
|
|
2610
2632
|
* @method
|
|
2611
2633
|
* @name kucoin#fetchTrades
|
|
2612
2634
|
* @description get the list of most recent trades for a particular symbol
|
|
2635
|
+
* @see https://docs.kucoin.com/#get-trade-histories
|
|
2613
2636
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
2614
2637
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
2615
2638
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -2782,6 +2805,7 @@ class kucoin extends kucoin$1 {
|
|
|
2782
2805
|
* @method
|
|
2783
2806
|
* @name kucoin#fetchTradingFee
|
|
2784
2807
|
* @description fetch the trading fees for a market
|
|
2808
|
+
* @see https://docs.kucoin.com/#actual-fee-rate-of-the-trading-pair
|
|
2785
2809
|
* @param {string} symbol unified market symbol
|
|
2786
2810
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
2787
2811
|
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
@@ -2821,6 +2845,7 @@ class kucoin extends kucoin$1 {
|
|
|
2821
2845
|
* @method
|
|
2822
2846
|
* @name kucoin#withdraw
|
|
2823
2847
|
* @description make a withdrawal
|
|
2848
|
+
* @see https://docs.kucoin.com/#apply-withdraw-2
|
|
2824
2849
|
* @param {string} code unified currency code
|
|
2825
2850
|
* @param {float} amount the amount to withdraw
|
|
2826
2851
|
* @param {string} address the address to withdraw to
|
|
@@ -2993,6 +3018,8 @@ class kucoin extends kucoin$1 {
|
|
|
2993
3018
|
* @method
|
|
2994
3019
|
* @name kucoin#fetchDeposits
|
|
2995
3020
|
* @description fetch all deposits made to an account
|
|
3021
|
+
* @see https://docs.kucoin.com/#get-deposit-list
|
|
3022
|
+
* @see https://docs.kucoin.com/#get-v1-historical-deposits-list
|
|
2996
3023
|
* @param {string} code unified currency code
|
|
2997
3024
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2998
3025
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
@@ -3067,6 +3094,8 @@ class kucoin extends kucoin$1 {
|
|
|
3067
3094
|
* @method
|
|
3068
3095
|
* @name kucoin#fetchWithdrawals
|
|
3069
3096
|
* @description fetch all withdrawals made from an account
|
|
3097
|
+
* @see https://docs.kucoin.com/#get-withdrawals-list
|
|
3098
|
+
* @see https://docs.kucoin.com/#get-v1-historical-withdrawals-list
|
|
3070
3099
|
* @param {string} code unified currency code
|
|
3071
3100
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
3072
3101
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -3581,6 +3610,7 @@ class kucoin extends kucoin$1 {
|
|
|
3581
3610
|
* @method
|
|
3582
3611
|
* @name kucoin#fetchLedger
|
|
3583
3612
|
* @description fetch the history of changes, actions done by the user or operations that altered balance of the user
|
|
3613
|
+
* @see https://docs.kucoin.com/#get-account-ledgers
|
|
3584
3614
|
* @param {string} code unified currency code, default is undefined
|
|
3585
3615
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
3586
3616
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
package/dist/cjs/src/latoken.js
CHANGED
|
@@ -30,9 +30,9 @@ class latoken extends latoken$1 {
|
|
|
30
30
|
'cancelOrder': true,
|
|
31
31
|
'createOrder': true,
|
|
32
32
|
'createPostOnlyOrder': false,
|
|
33
|
-
'createStopOrder': true,
|
|
34
33
|
'createStopLimitOrder': true,
|
|
35
34
|
'createStopMarketOrder': false,
|
|
35
|
+
'createStopOrder': true,
|
|
36
36
|
'fetchBalance': true,
|
|
37
37
|
'fetchBorrowRate': false,
|
|
38
38
|
'fetchBorrowRateHistories': false,
|