ccxt 4.0.112 → 4.1.1
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 +35 -5
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/kucoin.js +31 -1
- package/dist/cjs/src/latoken.js +1 -1
- 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/kucoin.js +31 -1
- package/js/src/latoken.js +1 -1
- 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.1';
|
|
183
183
|
Exchange["default"].ccxtVersion = version;
|
|
184
184
|
const exchanges = {
|
|
185
185
|
'ace': ace,
|
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,
|
package/dist/cjs/src/pro/okx.js
CHANGED
|
@@ -1034,8 +1034,8 @@ class okx extends okx$1 {
|
|
|
1034
1034
|
// filter orders with no last trade id
|
|
1035
1035
|
for (let i = 0; i < rawOrders.length; i++) {
|
|
1036
1036
|
const rawOrder = rawOrders[i];
|
|
1037
|
-
const tradeId = this.safeString(rawOrder, 'tradeId');
|
|
1038
|
-
if (
|
|
1037
|
+
const tradeId = this.safeString(rawOrder, 'tradeId', '');
|
|
1038
|
+
if (tradeId.length > 0) {
|
|
1039
1039
|
const order = this.parseOrder(rawOrder);
|
|
1040
1040
|
filteredOrders.push(order);
|
|
1041
1041
|
}
|
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
5
|
import { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.0
|
|
7
|
+
declare const version = "4.1.0";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
package/js/ccxt.js
CHANGED
|
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
|
|
|
38
38
|
import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.
|
|
41
|
+
const version = '4.1.1';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
package/js/src/kucoin.js
CHANGED
|
@@ -811,6 +811,7 @@ export default class kucoin extends Exchange {
|
|
|
811
811
|
* @method
|
|
812
812
|
* @name kucoin#fetchTime
|
|
813
813
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
814
|
+
* @see https://docs.kucoin.com/#server-time
|
|
814
815
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
815
816
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
816
817
|
*/
|
|
@@ -829,6 +830,7 @@ export default class kucoin extends Exchange {
|
|
|
829
830
|
* @method
|
|
830
831
|
* @name kucoin#fetchStatus
|
|
831
832
|
* @description the latest known information on the availability of the exchange API
|
|
833
|
+
* @see https://docs.kucoin.com/#service-status
|
|
832
834
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
833
835
|
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
834
836
|
*/
|
|
@@ -857,6 +859,8 @@ export default class kucoin extends Exchange {
|
|
|
857
859
|
* @method
|
|
858
860
|
* @name kucoin#fetchMarkets
|
|
859
861
|
* @description retrieves data on all markets for kucoin
|
|
862
|
+
* @see https://docs.kucoin.com/#get-symbols-list-deprecated
|
|
863
|
+
* @see https://docs.kucoin.com/#get-all-tickers
|
|
860
864
|
* @param {object} [params] extra parameters specific to the exchange api endpoint
|
|
861
865
|
* @returns {object[]} an array of objects representing market data
|
|
862
866
|
*/
|
|
@@ -995,6 +999,7 @@ export default class kucoin extends Exchange {
|
|
|
995
999
|
* @method
|
|
996
1000
|
* @name kucoin#fetchCurrencies
|
|
997
1001
|
* @description fetches all available currencies on an exchange
|
|
1002
|
+
* @see https://docs.kucoin.com/#get-currencies
|
|
998
1003
|
* @param {object} params extra parameters specific to the kucoin api endpoint
|
|
999
1004
|
* @returns {object} an associative dictionary of currencies
|
|
1000
1005
|
*/
|
|
@@ -1092,7 +1097,7 @@ export default class kucoin extends Exchange {
|
|
|
1092
1097
|
}
|
|
1093
1098
|
for (let j = 0; j < chainsLength; j++) {
|
|
1094
1099
|
const chain = chains[j];
|
|
1095
|
-
const chainId = this.safeString(chain, '
|
|
1100
|
+
const chainId = this.safeString(chain, 'chainId');
|
|
1096
1101
|
const networkCode = this.networkIdToCode(chainId);
|
|
1097
1102
|
const chainWithdrawEnabled = this.safeValue(chain, 'isWithdrawEnabled', false);
|
|
1098
1103
|
if (isWithdrawEnabled === undefined) {
|
|
@@ -1155,6 +1160,7 @@ export default class kucoin extends Exchange {
|
|
|
1155
1160
|
* @method
|
|
1156
1161
|
* @name kucoin#fetchAccounts
|
|
1157
1162
|
* @description fetch all the accounts associated with a profile
|
|
1163
|
+
* @see https://docs.kucoin.com/#list-accounts
|
|
1158
1164
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
1159
1165
|
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
1160
1166
|
*/
|
|
@@ -1432,6 +1438,7 @@ export default class kucoin extends Exchange {
|
|
|
1432
1438
|
* @method
|
|
1433
1439
|
* @name kucoin#fetchTickers
|
|
1434
1440
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
1441
|
+
* @see https://docs.kucoin.com/#get-all-tickers
|
|
1435
1442
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1436
1443
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
1437
1444
|
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
@@ -1486,6 +1493,7 @@ export default class kucoin extends Exchange {
|
|
|
1486
1493
|
* @method
|
|
1487
1494
|
* @name kucoin#fetchTicker
|
|
1488
1495
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1496
|
+
* @see https://docs.kucoin.com/#get-24hr-stats
|
|
1489
1497
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1490
1498
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
1491
1499
|
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
@@ -1547,6 +1555,7 @@ export default class kucoin extends Exchange {
|
|
|
1547
1555
|
* @method
|
|
1548
1556
|
* @name kucoin#fetchOHLCV
|
|
1549
1557
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
1558
|
+
* @see https://docs.kucoin.com/#get-klines
|
|
1550
1559
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
1551
1560
|
* @param {string} timeframe the length of time each candle represents
|
|
1552
1561
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -1626,6 +1635,7 @@ export default class kucoin extends Exchange {
|
|
|
1626
1635
|
* @method
|
|
1627
1636
|
* @name kucoin#fetchDepositAddress
|
|
1628
1637
|
* @description fetch the deposit address for a currency associated with this account
|
|
1638
|
+
* @see https://docs.kucoin.com/#get-deposit-addresses-v2
|
|
1629
1639
|
* @param {string} code unified currency code
|
|
1630
1640
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
1631
1641
|
* @param {string} [params.network] the blockchain network name
|
|
@@ -1723,6 +1733,8 @@ export default class kucoin extends Exchange {
|
|
|
1723
1733
|
* @method
|
|
1724
1734
|
* @name kucoin#fetchOrderBook
|
|
1725
1735
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1736
|
+
* @see https://docs.kucoin.com/#get-part-order-book-aggregated
|
|
1737
|
+
* @see https://docs.kucoin.com/#get-full-order-book-aggregated
|
|
1726
1738
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1727
1739
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1728
1740
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
@@ -2193,6 +2205,10 @@ export default class kucoin extends Exchange {
|
|
|
2193
2205
|
* @method
|
|
2194
2206
|
* @name kucoin#fetchClosedOrders
|
|
2195
2207
|
* @description fetches information on multiple closed orders made by the user
|
|
2208
|
+
* @see https://docs.kucoin.com/spot#list-orders
|
|
2209
|
+
* @see https://docs.kucoin.com/spot#list-stop-orders
|
|
2210
|
+
* @see https://docs.kucoin.com/spot-hf/#obtain-list-of-active-hf-orders
|
|
2211
|
+
* @see https://docs.kucoin.com/spot-hf/#obtain-list-of-filled-hf-orders
|
|
2196
2212
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2197
2213
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2198
2214
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
@@ -2212,6 +2228,10 @@ export default class kucoin extends Exchange {
|
|
|
2212
2228
|
* @method
|
|
2213
2229
|
* @name kucoin#fetchOpenOrders
|
|
2214
2230
|
* @description fetch all unfilled currently open orders
|
|
2231
|
+
* @see https://docs.kucoin.com/spot#list-orders
|
|
2232
|
+
* @see https://docs.kucoin.com/spot#list-stop-orders
|
|
2233
|
+
* @see https://docs.kucoin.com/spot-hf/#obtain-list-of-active-hf-orders
|
|
2234
|
+
* @see https://docs.kucoin.com/spot-hf/#obtain-list-of-filled-hf-orders
|
|
2215
2235
|
* @param {string} symbol unified market symbol
|
|
2216
2236
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2217
2237
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -2488,6 +2508,8 @@ export default class kucoin extends Exchange {
|
|
|
2488
2508
|
* @method
|
|
2489
2509
|
* @name kucoin#fetchOrderTrades
|
|
2490
2510
|
* @description fetch all the trades made from a single order
|
|
2511
|
+
* @see https://docs.kucoin.com/#list-fills
|
|
2512
|
+
* @see https://docs.kucoin.com/spot-hf/#transaction-details
|
|
2491
2513
|
* @param {string} id order id
|
|
2492
2514
|
* @param {string} symbol unified market symbol
|
|
2493
2515
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
@@ -2613,6 +2635,7 @@ export default class kucoin extends Exchange {
|
|
|
2613
2635
|
* @method
|
|
2614
2636
|
* @name kucoin#fetchTrades
|
|
2615
2637
|
* @description get the list of most recent trades for a particular symbol
|
|
2638
|
+
* @see https://docs.kucoin.com/#get-trade-histories
|
|
2616
2639
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
2617
2640
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
2618
2641
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -2785,6 +2808,7 @@ export default class kucoin extends Exchange {
|
|
|
2785
2808
|
* @method
|
|
2786
2809
|
* @name kucoin#fetchTradingFee
|
|
2787
2810
|
* @description fetch the trading fees for a market
|
|
2811
|
+
* @see https://docs.kucoin.com/#actual-fee-rate-of-the-trading-pair
|
|
2788
2812
|
* @param {string} symbol unified market symbol
|
|
2789
2813
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
2790
2814
|
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
@@ -2824,6 +2848,7 @@ export default class kucoin extends Exchange {
|
|
|
2824
2848
|
* @method
|
|
2825
2849
|
* @name kucoin#withdraw
|
|
2826
2850
|
* @description make a withdrawal
|
|
2851
|
+
* @see https://docs.kucoin.com/#apply-withdraw-2
|
|
2827
2852
|
* @param {string} code unified currency code
|
|
2828
2853
|
* @param {float} amount the amount to withdraw
|
|
2829
2854
|
* @param {string} address the address to withdraw to
|
|
@@ -2996,6 +3021,8 @@ export default class kucoin extends Exchange {
|
|
|
2996
3021
|
* @method
|
|
2997
3022
|
* @name kucoin#fetchDeposits
|
|
2998
3023
|
* @description fetch all deposits made to an account
|
|
3024
|
+
* @see https://docs.kucoin.com/#get-deposit-list
|
|
3025
|
+
* @see https://docs.kucoin.com/#get-v1-historical-deposits-list
|
|
2999
3026
|
* @param {string} code unified currency code
|
|
3000
3027
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
3001
3028
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
@@ -3070,6 +3097,8 @@ export default class kucoin extends Exchange {
|
|
|
3070
3097
|
* @method
|
|
3071
3098
|
* @name kucoin#fetchWithdrawals
|
|
3072
3099
|
* @description fetch all withdrawals made from an account
|
|
3100
|
+
* @see https://docs.kucoin.com/#get-withdrawals-list
|
|
3101
|
+
* @see https://docs.kucoin.com/#get-v1-historical-withdrawals-list
|
|
3073
3102
|
* @param {string} code unified currency code
|
|
3074
3103
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
3075
3104
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -3584,6 +3613,7 @@ export default class kucoin extends Exchange {
|
|
|
3584
3613
|
* @method
|
|
3585
3614
|
* @name kucoin#fetchLedger
|
|
3586
3615
|
* @description fetch the history of changes, actions done by the user or operations that altered balance of the user
|
|
3616
|
+
* @see https://docs.kucoin.com/#get-account-ledgers
|
|
3587
3617
|
* @param {string} code unified currency code, default is undefined
|
|
3588
3618
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
3589
3619
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
package/js/src/latoken.js
CHANGED
|
@@ -33,9 +33,9 @@ export default class latoken extends Exchange {
|
|
|
33
33
|
'cancelOrder': true,
|
|
34
34
|
'createOrder': true,
|
|
35
35
|
'createPostOnlyOrder': false,
|
|
36
|
-
'createStopOrder': true,
|
|
37
36
|
'createStopLimitOrder': true,
|
|
38
37
|
'createStopMarketOrder': false,
|
|
38
|
+
'createStopOrder': true,
|
|
39
39
|
'fetchBalance': true,
|
|
40
40
|
'fetchBorrowRate': false,
|
|
41
41
|
'fetchBorrowRateHistories': false,
|
package/js/src/pro/okx.js
CHANGED
|
@@ -1037,8 +1037,8 @@ export default class okx extends okxRest {
|
|
|
1037
1037
|
// filter orders with no last trade id
|
|
1038
1038
|
for (let i = 0; i < rawOrders.length; i++) {
|
|
1039
1039
|
const rawOrder = rawOrders[i];
|
|
1040
|
-
const tradeId = this.safeString(rawOrder, 'tradeId');
|
|
1041
|
-
if (
|
|
1040
|
+
const tradeId = this.safeString(rawOrder, 'tradeId', '');
|
|
1041
|
+
if (tradeId.length > 0) {
|
|
1042
1042
|
const order = this.parseOrder(rawOrder);
|
|
1043
1043
|
filteredOrders.push(order);
|
|
1044
1044
|
}
|
package/package.json
CHANGED