ccxt 4.2.30 → 4.2.31
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 +4 -5
- package/dist/ccxt.browser.js +498 -79
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/base/Exchange.js +12 -4
- package/dist/cjs/src/binance.js +1 -1
- package/dist/cjs/src/bitfinex2.js +415 -41
- package/dist/cjs/src/bitforex.js +3 -0
- package/dist/cjs/src/coinbase.js +10 -0
- package/dist/cjs/src/deribit.js +1 -0
- package/dist/cjs/src/htx.js +1 -1
- package/dist/cjs/src/kraken.js +3 -1
- package/dist/cjs/src/krakenfutures.js +3 -0
- package/dist/cjs/src/lbank.js +27 -26
- package/dist/cjs/src/okx.js +16 -2
- package/dist/cjs/src/poloniexfutures.js +3 -0
- package/dist/cjs/src/timex.js +1 -1
- package/dist/cjs/src/whitebit.js +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/coinbase.d.ts +10 -0
- package/js/src/abstract/okx.d.ts +12 -1
- package/js/src/base/Exchange.d.ts +1 -1
- package/js/src/base/Exchange.js +12 -4
- package/js/src/binance.js +1 -1
- package/js/src/bitfinex2.d.ts +6 -1
- package/js/src/bitfinex2.js +415 -41
- package/js/src/bitforex.js +3 -0
- package/js/src/coinbase.js +10 -0
- package/js/src/deribit.js +1 -0
- package/js/src/htx.js +1 -1
- package/js/src/kraken.js +3 -1
- package/js/src/krakenfutures.js +3 -0
- package/js/src/lbank.d.ts +1 -1
- package/js/src/lbank.js +27 -26
- package/js/src/okx.js +16 -2
- package/js/src/poloniexfutures.js +3 -0
- package/js/src/timex.js +1 -1
- package/js/src/whitebit.js +1 -1
- package/package.json +1 -1
package/js/src/bitforex.js
CHANGED
|
@@ -44,6 +44,9 @@ export default class bitforex extends Exchange {
|
|
|
44
44
|
'fetchClosedOrders': true,
|
|
45
45
|
'fetchCrossBorrowRate': false,
|
|
46
46
|
'fetchCrossBorrowRates': false,
|
|
47
|
+
'fetchDepositAddress': false,
|
|
48
|
+
'fetchDepositAddresses': false,
|
|
49
|
+
'fetchDepositAddressesByNetwork': false,
|
|
47
50
|
'fetchFundingHistory': false,
|
|
48
51
|
'fetchFundingRate': false,
|
|
49
52
|
'fetchFundingRateHistory': false,
|
package/js/src/coinbase.js
CHANGED
|
@@ -207,6 +207,13 @@ export default class coinbase extends Exchange {
|
|
|
207
207
|
'brokerage/best_bid_ask',
|
|
208
208
|
'brokerage/convert/trade/{trade_id}',
|
|
209
209
|
'brokerage/time',
|
|
210
|
+
'brokerage/cfm/balance_summary',
|
|
211
|
+
'brokerage/cfm/positions',
|
|
212
|
+
'brokerage/cfm/positions/{product_id}',
|
|
213
|
+
'brokerage/cfm/sweeps',
|
|
214
|
+
'brokerage/intx/portfolio/{portfolio_uuid}',
|
|
215
|
+
'brokerage/intx/positions/{portfolio_uuid}',
|
|
216
|
+
'brokerage/intx/positions/{portfolio_uuid}/{symbol}',
|
|
210
217
|
],
|
|
211
218
|
'post': [
|
|
212
219
|
'brokerage/orders',
|
|
@@ -217,12 +224,15 @@ export default class coinbase extends Exchange {
|
|
|
217
224
|
'brokerage/portfolios/move_funds',
|
|
218
225
|
'brokerage/convert/quote',
|
|
219
226
|
'brokerage/convert/trade/{trade_id}',
|
|
227
|
+
'brokerage/cfm/sweeps/schedule',
|
|
228
|
+
'brokerage/intx/allocate',
|
|
220
229
|
],
|
|
221
230
|
'put': [
|
|
222
231
|
'brokerage/portfolios/{portfolio_uuid}',
|
|
223
232
|
],
|
|
224
233
|
'delete': [
|
|
225
234
|
'brokerage/portfolios/{portfolio_uuid}',
|
|
235
|
+
'brokerage/cfm/sweeps',
|
|
226
236
|
],
|
|
227
237
|
},
|
|
228
238
|
},
|
package/js/src/deribit.js
CHANGED
|
@@ -1346,6 +1346,7 @@ export default class deribit extends Exchange {
|
|
|
1346
1346
|
request['end_timestamp'] = now;
|
|
1347
1347
|
}
|
|
1348
1348
|
else {
|
|
1349
|
+
since = Math.max(since - 1, 0);
|
|
1349
1350
|
request['start_timestamp'] = since;
|
|
1350
1351
|
if (limit === undefined) {
|
|
1351
1352
|
request['end_timestamp'] = now;
|
package/js/src/htx.js
CHANGED
|
@@ -5012,7 +5012,7 @@ export default class htx extends Exchange {
|
|
|
5012
5012
|
const marketId = this.safeString2(order, 'contract_code', 'symbol');
|
|
5013
5013
|
market = this.safeMarket(marketId, market);
|
|
5014
5014
|
const timestamp = this.safeIntegerN(order, ['created_at', 'created-at', 'create_date']);
|
|
5015
|
-
const clientOrderId = this.safeString2(order, 'client_order_id', 'client-
|
|
5015
|
+
const clientOrderId = this.safeString2(order, 'client_order_id', 'client-or' + 'der-id'); // transpiler regex trick for php issue
|
|
5016
5016
|
let cost = undefined;
|
|
5017
5017
|
let amount = undefined;
|
|
5018
5018
|
if ((type !== undefined) && (type.indexOf('market') >= 0)) {
|
package/js/src/kraken.js
CHANGED
|
@@ -978,7 +978,9 @@ export default class kraken extends Exchange {
|
|
|
978
978
|
request['interval'] = timeframe;
|
|
979
979
|
}
|
|
980
980
|
if (since !== undefined) {
|
|
981
|
-
|
|
981
|
+
// contrary to kraken's api documentation, the since parameter must be passed in nanoseconds
|
|
982
|
+
// the adding of '000000' is copied from the fetchTrades function
|
|
983
|
+
request['since'] = this.numberToString(since) + '000000'; // expected to be in nanoseconds
|
|
982
984
|
}
|
|
983
985
|
const response = await this.publicGetOHLC(this.extend(request, params));
|
|
984
986
|
//
|
package/js/src/krakenfutures.js
CHANGED
|
@@ -45,6 +45,9 @@ export default class krakenfutures extends Exchange {
|
|
|
45
45
|
'fetchClosedOrders': undefined,
|
|
46
46
|
'fetchCrossBorrowRate': false,
|
|
47
47
|
'fetchCrossBorrowRates': false,
|
|
48
|
+
'fetchDepositAddress': false,
|
|
49
|
+
'fetchDepositAddresses': false,
|
|
50
|
+
'fetchDepositAddressesByNetwork': false,
|
|
48
51
|
'fetchFundingHistory': undefined,
|
|
49
52
|
'fetchFundingRate': 'emulated',
|
|
50
53
|
'fetchFundingRateHistory': true,
|
package/js/src/lbank.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Exchange from './abstract/lbank.js';
|
|
2
2
|
import type { Balances, Currency, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction } from './base/types.js';
|
|
3
3
|
/**
|
|
4
|
-
* @class
|
|
4
|
+
* @class lbank
|
|
5
5
|
* @augments Exchange
|
|
6
6
|
*/
|
|
7
7
|
export default class lbank extends Exchange {
|
package/js/src/lbank.js
CHANGED
|
@@ -14,7 +14,7 @@ import { sha256 } from './static_dependencies/noble-hashes/sha256.js';
|
|
|
14
14
|
import { rsa } from './base/functions/rsa.js';
|
|
15
15
|
// ---------------------------------------------------------------------------
|
|
16
16
|
/**
|
|
17
|
-
* @class
|
|
17
|
+
* @class lbank
|
|
18
18
|
* @augments Exchange
|
|
19
19
|
*/
|
|
20
20
|
export default class lbank extends Exchange {
|
|
@@ -52,6 +52,7 @@ export default class lbank extends Exchange {
|
|
|
52
52
|
'fetchClosedOrders': false,
|
|
53
53
|
'fetchCrossBorrowRate': false,
|
|
54
54
|
'fetchCrossBorrowRates': false,
|
|
55
|
+
'fetchDepositAddress': true,
|
|
55
56
|
'fetchDepositWithdrawFee': 'emulated',
|
|
56
57
|
'fetchDepositWithdrawFees': true,
|
|
57
58
|
'fetchFundingHistory': false,
|
|
@@ -300,7 +301,7 @@ export default class lbank extends Exchange {
|
|
|
300
301
|
async fetchTime(params = {}) {
|
|
301
302
|
/**
|
|
302
303
|
* @method
|
|
303
|
-
* @name
|
|
304
|
+
* @name lbank#fetchTime
|
|
304
305
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
305
306
|
* @see https://www.lbank.com/en-US/docs/index.html#get-timestamp
|
|
306
307
|
* @see https://www.lbank.com/en-US/docs/contract.html#get-the-current-time
|
|
@@ -341,8 +342,8 @@ export default class lbank extends Exchange {
|
|
|
341
342
|
async fetchMarkets(params = {}) {
|
|
342
343
|
/**
|
|
343
344
|
* @method
|
|
344
|
-
* @name
|
|
345
|
-
* @description retrieves data on all markets for
|
|
345
|
+
* @name lbank#fetchMarkets
|
|
346
|
+
* @description retrieves data on all markets for lbank
|
|
346
347
|
* @see https://www.lbank.com/en-US/docs/index.html#trading-pairs
|
|
347
348
|
* @see https://www.lbank.com/en-US/docs/contract.html#query-contract-information-list
|
|
348
349
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -595,7 +596,7 @@ export default class lbank extends Exchange {
|
|
|
595
596
|
async fetchTicker(symbol, params = {}) {
|
|
596
597
|
/**
|
|
597
598
|
* @method
|
|
598
|
-
* @name
|
|
599
|
+
* @name lbank#fetchTicker
|
|
599
600
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
600
601
|
* @see https://www.lbank.com/en-US/docs/index.html#query-current-market-data-new
|
|
601
602
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
@@ -640,7 +641,7 @@ export default class lbank extends Exchange {
|
|
|
640
641
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
641
642
|
/**
|
|
642
643
|
* @method
|
|
643
|
-
* @name
|
|
644
|
+
* @name lbank#fetchTickers
|
|
644
645
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
645
646
|
* @see https://www.lbank.com/en-US/docs/index.html#query-current-market-data-new
|
|
646
647
|
* @see https://www.lbank.com/en-US/docs/contract.html#query-contract-market-list
|
|
@@ -720,7 +721,7 @@ export default class lbank extends Exchange {
|
|
|
720
721
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
721
722
|
/**
|
|
722
723
|
* @method
|
|
723
|
-
* @name
|
|
724
|
+
* @name lbank#fetchOrderBook
|
|
724
725
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
725
726
|
* @see https://www.lbank.com/en-US/docs/index.html#query-market-depth
|
|
726
727
|
* @see https://www.lbank.com/en-US/docs/contract.html#get-handicap
|
|
@@ -909,7 +910,7 @@ export default class lbank extends Exchange {
|
|
|
909
910
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
910
911
|
/**
|
|
911
912
|
* @method
|
|
912
|
-
* @name
|
|
913
|
+
* @name lbank#fetchTrades
|
|
913
914
|
* @description get the list of most recent trades for a particular symbol
|
|
914
915
|
* @see https://www.lbank.com/en-US/docs/index.html#query-historical-transactions
|
|
915
916
|
* @see https://www.lbank.com/en-US/docs/index.html#recent-transactions-list
|
|
@@ -986,7 +987,7 @@ export default class lbank extends Exchange {
|
|
|
986
987
|
async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
|
|
987
988
|
/**
|
|
988
989
|
* @method
|
|
989
|
-
* @name
|
|
990
|
+
* @name lbank#fetchOHLCV
|
|
990
991
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
991
992
|
* @see https://www.lbank.com/en-US/docs/index.html#query-k-bar-data
|
|
992
993
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
@@ -1171,7 +1172,7 @@ export default class lbank extends Exchange {
|
|
|
1171
1172
|
async fetchBalance(params = {}) {
|
|
1172
1173
|
/**
|
|
1173
1174
|
* @method
|
|
1174
|
-
* @name
|
|
1175
|
+
* @name lbank#fetchBalance
|
|
1175
1176
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1176
1177
|
* @see https://www.lbank.com/en-US/docs/index.html#asset-information
|
|
1177
1178
|
* @see https://www.lbank.com/en-US/docs/index.html#account-information
|
|
@@ -1245,7 +1246,7 @@ export default class lbank extends Exchange {
|
|
|
1245
1246
|
async fetchTradingFee(symbol, params = {}) {
|
|
1246
1247
|
/**
|
|
1247
1248
|
* @method
|
|
1248
|
-
* @name
|
|
1249
|
+
* @name lbank#fetchTradingFee
|
|
1249
1250
|
* @description fetch the trading fees for a market
|
|
1250
1251
|
* @see https://www.lbank.com/en-US/docs/index.html#transaction-fee-rate-query
|
|
1251
1252
|
* @param {string} symbol unified market symbol
|
|
@@ -1259,7 +1260,7 @@ export default class lbank extends Exchange {
|
|
|
1259
1260
|
async fetchTradingFees(params = {}) {
|
|
1260
1261
|
/**
|
|
1261
1262
|
* @method
|
|
1262
|
-
* @name
|
|
1263
|
+
* @name lbank#fetchTradingFees
|
|
1263
1264
|
* @description fetch the trading fees for multiple markets
|
|
1264
1265
|
* @see https://www.lbank.com/en-US/docs/index.html#transaction-fee-rate-query
|
|
1265
1266
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1300,7 +1301,7 @@ export default class lbank extends Exchange {
|
|
|
1300
1301
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1301
1302
|
/**
|
|
1302
1303
|
* @method
|
|
1303
|
-
* @name
|
|
1304
|
+
* @name lbank#createOrder
|
|
1304
1305
|
* @description create a trade order
|
|
1305
1306
|
* @see https://www.lbank.com/en-US/docs/index.html#place-order
|
|
1306
1307
|
* @see https://www.lbank.com/en-US/docs/index.html#place-an-order
|
|
@@ -1544,7 +1545,7 @@ export default class lbank extends Exchange {
|
|
|
1544
1545
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1545
1546
|
/**
|
|
1546
1547
|
* @method
|
|
1547
|
-
* @name
|
|
1548
|
+
* @name lbank#fetchOrder
|
|
1548
1549
|
* @description fetches information on an order made by the user
|
|
1549
1550
|
* @see https://www.lbank.com/en-US/docs/index.html#query-order
|
|
1550
1551
|
* @see https://www.lbank.com/en-US/docs/index.html#query-order-new
|
|
@@ -1648,7 +1649,7 @@ export default class lbank extends Exchange {
|
|
|
1648
1649
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1649
1650
|
/**
|
|
1650
1651
|
* @method
|
|
1651
|
-
* @name
|
|
1652
|
+
* @name lbank#fetchMyTrades
|
|
1652
1653
|
* @description fetch all trades made by the user
|
|
1653
1654
|
* @see https://www.lbank.com/en-US/docs/index.html#past-transaction-details
|
|
1654
1655
|
* @param {string} symbol unified market symbol
|
|
@@ -1707,7 +1708,7 @@ export default class lbank extends Exchange {
|
|
|
1707
1708
|
async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1708
1709
|
/**
|
|
1709
1710
|
* @method
|
|
1710
|
-
* @name
|
|
1711
|
+
* @name lbank#fetchOrders
|
|
1711
1712
|
* @description fetches information on multiple orders made by the user
|
|
1712
1713
|
* @see https://www.lbank.com/en-US/docs/index.html#query-all-orders
|
|
1713
1714
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
@@ -1767,7 +1768,7 @@ export default class lbank extends Exchange {
|
|
|
1767
1768
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1768
1769
|
/**
|
|
1769
1770
|
* @method
|
|
1770
|
-
* @name
|
|
1771
|
+
* @name lbank#fetchOpenOrders
|
|
1771
1772
|
* @description fetch all unfilled currently open orders
|
|
1772
1773
|
* @see https://www.lbank.com/en-US/docs/index.html#current-pending-order
|
|
1773
1774
|
* @param {string} symbol unified market symbol
|
|
@@ -1824,7 +1825,7 @@ export default class lbank extends Exchange {
|
|
|
1824
1825
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1825
1826
|
/**
|
|
1826
1827
|
* @method
|
|
1827
|
-
* @name
|
|
1828
|
+
* @name lbank#cancelOrder
|
|
1828
1829
|
* @description cancels an open order
|
|
1829
1830
|
* @see https://www.lbank.com/en-US/docs/index.html#cancel-order-new
|
|
1830
1831
|
* @param {string} id order id
|
|
@@ -1866,7 +1867,7 @@ export default class lbank extends Exchange {
|
|
|
1866
1867
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
1867
1868
|
/**
|
|
1868
1869
|
* @method
|
|
1869
|
-
* @name
|
|
1870
|
+
* @name lbank#cancelAllOrders
|
|
1870
1871
|
* @description cancel all open orders in a market
|
|
1871
1872
|
* @see https://www.lbank.com/en-US/docs/index.html#cancel-all-pending-orders-for-a-single-trading-pair
|
|
1872
1873
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
@@ -1913,7 +1914,7 @@ export default class lbank extends Exchange {
|
|
|
1913
1914
|
async fetchDepositAddress(code, params = {}) {
|
|
1914
1915
|
/**
|
|
1915
1916
|
* @method
|
|
1916
|
-
* @name
|
|
1917
|
+
* @name lbank#fetchDepositAddress
|
|
1917
1918
|
* @description fetch the deposit address for a currency associated with this account
|
|
1918
1919
|
* @see https://www.lbank.com/en-US/docs/index.html#get-deposit-address
|
|
1919
1920
|
* @see https://www.lbank.com/en-US/docs/index.html#the-user-obtains-the-deposit-address
|
|
@@ -2017,7 +2018,7 @@ export default class lbank extends Exchange {
|
|
|
2017
2018
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
2018
2019
|
/**
|
|
2019
2020
|
* @method
|
|
2020
|
-
* @name
|
|
2021
|
+
* @name lbank#withdraw
|
|
2021
2022
|
* @description make a withdrawal
|
|
2022
2023
|
* @see https://www.lbank.com/en-US/docs/index.html#withdrawal
|
|
2023
2024
|
* @param {string} code unified currency code
|
|
@@ -2183,7 +2184,7 @@ export default class lbank extends Exchange {
|
|
|
2183
2184
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2184
2185
|
/**
|
|
2185
2186
|
* @method
|
|
2186
|
-
* @name
|
|
2187
|
+
* @name lbank#fetchDeposits
|
|
2187
2188
|
* @description fetch all deposits made to an account
|
|
2188
2189
|
* @see https://www.lbank.com/en-US/docs/index.html#get-recharge-history
|
|
2189
2190
|
* @param {string} code unified currency code
|
|
@@ -2236,7 +2237,7 @@ export default class lbank extends Exchange {
|
|
|
2236
2237
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2237
2238
|
/**
|
|
2238
2239
|
* @method
|
|
2239
|
-
* @name
|
|
2240
|
+
* @name lbank#fetchWithdrawals
|
|
2240
2241
|
* @description fetch all withdrawals made from an account
|
|
2241
2242
|
* @see https://www.lbank.com/en-US/docs/index.html#get-withdrawal-history
|
|
2242
2243
|
* @param {string} code unified currency code
|
|
@@ -2293,10 +2294,10 @@ export default class lbank extends Exchange {
|
|
|
2293
2294
|
async fetchTransactionFees(codes = undefined, params = {}) {
|
|
2294
2295
|
/**
|
|
2295
2296
|
* @method
|
|
2296
|
-
* @name
|
|
2297
|
+
* @name lbank#fetchTransactionFees
|
|
2297
2298
|
* @deprecated
|
|
2298
2299
|
* @description please use fetchDepositWithdrawFees instead
|
|
2299
|
-
* @param {string[]|undefined} codes not used by
|
|
2300
|
+
* @param {string[]|undefined} codes not used by lbank fetchTransactionFees ()
|
|
2300
2301
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2301
2302
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2302
2303
|
*/
|
|
@@ -2442,7 +2443,7 @@ export default class lbank extends Exchange {
|
|
|
2442
2443
|
async fetchDepositWithdrawFees(codes = undefined, params = {}) {
|
|
2443
2444
|
/**
|
|
2444
2445
|
* @method
|
|
2445
|
-
* @name
|
|
2446
|
+
* @name lbank#fetchDepositWithdrawFees
|
|
2446
2447
|
* @description when using private endpoint, only returns information for currencies with non-zero balance, use public method by specifying this.options['fetchDepositWithdrawFees']['method'] = 'fetchPublicDepositWithdrawFees'
|
|
2447
2448
|
* @see https://www.lbank.com/en-US/docs/index.html#get-all-coins-information
|
|
2448
2449
|
* @see https://www.lbank.com/en-US/docs/index.html#withdrawal-configurations
|
package/js/src/okx.js
CHANGED
|
@@ -344,9 +344,11 @@ export default class okx extends Exchange {
|
|
|
344
344
|
'tradingBot/grid/sub-orders': 1,
|
|
345
345
|
'tradingBot/grid/positions': 1,
|
|
346
346
|
'tradingBot/grid/ai-param': 1,
|
|
347
|
-
'tradingBot/
|
|
347
|
+
'tradingBot/signal/signals': 1,
|
|
348
348
|
'tradingBot/signal/orders-algo-details': 1,
|
|
349
|
+
'tradingBot/signal/orders-algo-history': 1,
|
|
349
350
|
'tradingBot/signal/positions': 1,
|
|
351
|
+
'tradingBot/signal/positions-history': 1,
|
|
350
352
|
'tradingBot/signal/sub-orders': 1,
|
|
351
353
|
'tradingBot/signal/event-history': 1,
|
|
352
354
|
'tradingBot/recurring/orders-algo-pending': 1,
|
|
@@ -466,6 +468,15 @@ export default class okx extends Exchange {
|
|
|
466
468
|
'tradingBot/grid/compute-margin-balance': 1,
|
|
467
469
|
'tradingBot/grid/margin-balance': 1,
|
|
468
470
|
'tradingBot/grid/min-investment': 1,
|
|
471
|
+
'tradingBot/signal/create-signal': 1,
|
|
472
|
+
'tradingBot/signal/order-algo': 1,
|
|
473
|
+
'tradingBot/signal/stop-order-algo': 1,
|
|
474
|
+
'tradingBot/signal/margin-balance': 1,
|
|
475
|
+
'tradingBot/signal/amendTPSL': 1,
|
|
476
|
+
'tradingBot/signal/set-instruments': 1,
|
|
477
|
+
'tradingBot/signal/close-position': 1,
|
|
478
|
+
'tradingBot/signal/sub-order': 1,
|
|
479
|
+
'tradingBot/signal/cancel-sub-order': 1,
|
|
469
480
|
'tradingBot/recurring/order-algo': 1,
|
|
470
481
|
'tradingBot/recurring/amend-order-algo': 1,
|
|
471
482
|
'tradingBot/recurring/stop-order-algo': 1,
|
|
@@ -4206,10 +4217,13 @@ export default class okx extends Exchange {
|
|
|
4206
4217
|
market = this.market(symbol);
|
|
4207
4218
|
request['instId'] = market['id'];
|
|
4208
4219
|
}
|
|
4220
|
+
if (since !== undefined) {
|
|
4221
|
+
request['begin'] = since;
|
|
4222
|
+
}
|
|
4209
4223
|
[request, params] = this.handleUntilOption('end', request, params);
|
|
4210
4224
|
const [type, query] = this.handleMarketTypeAndParams('fetchMyTrades', market, params);
|
|
4211
4225
|
request['instType'] = this.convertToInstrumentType(type);
|
|
4212
|
-
if (limit !== undefined) {
|
|
4226
|
+
if ((limit !== undefined) && (since === undefined)) { // let limit = n, okx will return the n most recent results, instead of the n results after limit, so limit should only be sent when since is undefined
|
|
4213
4227
|
request['limit'] = limit; // default 100, max 100
|
|
4214
4228
|
}
|
|
4215
4229
|
const response = await this.privateGetTradeFillsHistory(this.extend(request, query));
|
|
@@ -37,6 +37,9 @@ export default class poloniexfutures extends Exchange {
|
|
|
37
37
|
'fetchBalance': true,
|
|
38
38
|
'fetchClosedOrders': true,
|
|
39
39
|
'fetchCurrencies': false,
|
|
40
|
+
'fetchDepositAddress': false,
|
|
41
|
+
'fetchDepositAddresses': false,
|
|
42
|
+
'fetchDepositAddressesByNetwork': false,
|
|
40
43
|
'fetchFundingRate': true,
|
|
41
44
|
'fetchFundingRateHistory': false,
|
|
42
45
|
'fetchL3OrderBook': true,
|
package/js/src/timex.js
CHANGED
|
@@ -98,7 +98,7 @@ export default class timex extends Exchange {
|
|
|
98
98
|
'rest': 'https://plasma-relay-backend.timex.io',
|
|
99
99
|
},
|
|
100
100
|
'www': 'https://timex.io',
|
|
101
|
-
'doc': 'https://
|
|
101
|
+
'doc': 'https://plasma-relay-backend.timex.io/swagger-ui/index.html',
|
|
102
102
|
'referral': 'https://timex.io/?refcode=1x27vNkTbP1uwkCck',
|
|
103
103
|
},
|
|
104
104
|
'api': {
|
package/js/src/whitebit.js
CHANGED
package/package.json
CHANGED