ccxt 4.1.8 → 4.1.10
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/.git-templates/hooks/pre-push +55 -0
- package/README.md +3 -3
- package/dist/ccxt.browser.js +1458 -302
- package/dist/ccxt.browser.min.js +7 -7
- package/dist/cjs/ccxt.js +3 -1
- package/dist/cjs/src/base/Exchange.js +59 -3
- package/dist/cjs/src/bingx.js +103 -41
- package/dist/cjs/src/bitbns.js +107 -83
- package/dist/cjs/src/bitget.js +35 -17
- package/dist/cjs/src/btcalpha.js +9 -1
- package/dist/cjs/src/btcmarkets.js +5 -5
- package/dist/cjs/src/coinex.js +14 -2
- package/dist/cjs/src/deribit.js +6 -0
- package/dist/cjs/src/gate.js +9 -1
- package/dist/cjs/src/hitbtc.js +20 -2
- package/dist/cjs/src/kucoinfutures.js +2 -2
- package/dist/cjs/src/phemex.js +20 -1
- package/dist/cjs/src/pro/bingx.js +891 -0
- package/dist/cjs/src/probit.js +3 -0
- package/dist/cjs/src/woo.js +21 -1
- package/js/ccxt.d.ts +6 -3
- package/js/ccxt.js +3 -1
- package/js/src/abstract/bingx.d.ts +1 -0
- package/js/src/base/Exchange.d.ts +6 -3
- package/js/src/base/Exchange.js +59 -3
- package/js/src/base/types.d.ts +7 -0
- package/js/src/binance.d.ts +17 -17
- package/js/src/bingx.d.ts +4 -3
- package/js/src/bingx.js +103 -41
- package/js/src/bitbns.d.ts +1 -1
- package/js/src/bitbns.js +107 -83
- package/js/src/bitfinex2.d.ts +13 -13
- package/js/src/bitget.d.ts +15 -15
- package/js/src/bitget.js +35 -17
- package/js/src/bitmex.d.ts +15 -15
- package/js/src/btcalpha.js +9 -1
- package/js/src/btcmarkets.js +5 -5
- package/js/src/bybit.d.ts +23 -23
- package/js/src/coinbase.d.ts +16 -16
- package/js/src/coinbasepro.d.ts +12 -12
- package/js/src/coinex.d.ts +2 -2
- package/js/src/coinex.js +14 -2
- package/js/src/cryptocom.d.ts +12 -12
- package/js/src/deribit.d.ts +2 -2
- package/js/src/deribit.js +6 -0
- package/js/src/digifinex.d.ts +2 -2
- package/js/src/gate.d.ts +10 -10
- package/js/src/gate.js +9 -1
- package/js/src/hitbtc.d.ts +2 -2
- package/js/src/hitbtc.js +20 -2
- package/js/src/huobi.d.ts +16 -16
- package/js/src/kraken.d.ts +2 -2
- package/js/src/krakenfutures.d.ts +6 -6
- package/js/src/kucoin.d.ts +13 -13
- package/js/src/kucoinfutures.d.ts +10 -10
- package/js/src/kucoinfutures.js +2 -2
- package/js/src/mexc.d.ts +3 -3
- package/js/src/okx.d.ts +13 -13
- package/js/src/phemex.d.ts +2 -2
- package/js/src/phemex.js +20 -1
- package/js/src/poloniex.d.ts +5 -5
- package/js/src/pro/bingx.d.ts +24 -0
- package/js/src/pro/bingx.js +892 -0
- package/js/src/probit.js +3 -0
- package/js/src/woo.d.ts +2 -2
- package/js/src/woo.js +21 -1
- package/package.json +1 -1
- package/pyproject.toml +8 -0
- package/skip-tests.json +4 -1
package/js/src/probit.js
CHANGED
|
@@ -1499,6 +1499,9 @@ export default class probit extends Exchange {
|
|
|
1499
1499
|
if (limit !== undefined) {
|
|
1500
1500
|
request['limit'] = limit;
|
|
1501
1501
|
}
|
|
1502
|
+
else {
|
|
1503
|
+
request['limit'] = 100;
|
|
1504
|
+
}
|
|
1502
1505
|
const response = await this.privateGetTransferPayment(this.extend(request, params));
|
|
1503
1506
|
//
|
|
1504
1507
|
// {
|
package/js/src/woo.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/woo.js';
|
|
2
|
-
import { Int, OrderSide, OrderType } from './base/types.js';
|
|
2
|
+
import { FundingRateHistory, Int, OrderSide, OrderType } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class woo
|
|
5
5
|
* @extends Exchange
|
|
@@ -200,7 +200,7 @@ export default class woo extends Exchange {
|
|
|
200
200
|
previousFundingDatetime: string;
|
|
201
201
|
}>;
|
|
202
202
|
fetchFundingRates(symbols?: string[], params?: {}): Promise<any>;
|
|
203
|
-
fetchFundingRateHistory(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
203
|
+
fetchFundingRateHistory(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
|
|
204
204
|
fetchLeverage(symbol: string, params?: {}): Promise<{
|
|
205
205
|
info: any;
|
|
206
206
|
leverage: number;
|
package/js/src/woo.js
CHANGED
|
@@ -1400,6 +1400,7 @@ export default class woo extends Exchange {
|
|
|
1400
1400
|
/**
|
|
1401
1401
|
* @method
|
|
1402
1402
|
* @name woo#fetchOHLCV
|
|
1403
|
+
* @see https://docs.woo.org/#kline-public
|
|
1403
1404
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
1404
1405
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
1405
1406
|
* @param {string} timeframe the length of time each candle represents
|
|
@@ -2366,8 +2367,26 @@ export default class woo extends Exchange {
|
|
|
2366
2367
|
return this.filterByArray(result, 'symbol', symbols);
|
|
2367
2368
|
}
|
|
2368
2369
|
async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2370
|
+
/**
|
|
2371
|
+
* @method
|
|
2372
|
+
* @name woo#fetchFundingRateHistory
|
|
2373
|
+
* @description fetches historical funding rate prices
|
|
2374
|
+
* @see https://docs.woo.org/#get-funding-rate-history-for-one-market-public
|
|
2375
|
+
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
2376
|
+
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
2377
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
|
|
2378
|
+
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
2379
|
+
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
2380
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
2381
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
|
|
2382
|
+
*/
|
|
2369
2383
|
await this.loadMarkets();
|
|
2370
|
-
|
|
2384
|
+
let paginate = false;
|
|
2385
|
+
[paginate, params] = this.handleOptionAndParams(params, 'fetchFundingRateHistory', 'paginate');
|
|
2386
|
+
if (paginate) {
|
|
2387
|
+
return await this.fetchPaginatedCallIncremental('fetchFundingRateHistory', symbol, since, limit, params, 'page', 25);
|
|
2388
|
+
}
|
|
2389
|
+
let request = {};
|
|
2371
2390
|
if (symbol !== undefined) {
|
|
2372
2391
|
const market = this.market(symbol);
|
|
2373
2392
|
symbol = market['symbol'];
|
|
@@ -2376,6 +2395,7 @@ export default class woo extends Exchange {
|
|
|
2376
2395
|
if (since !== undefined) {
|
|
2377
2396
|
request['start_t'] = this.parseToInt(since / 1000);
|
|
2378
2397
|
}
|
|
2398
|
+
[request, params] = this.handleUntilOption('end_t', request, params, 0.001);
|
|
2379
2399
|
const response = await this.v1PublicGetFundingRateHistory(this.extend(request, params));
|
|
2380
2400
|
//
|
|
2381
2401
|
// {
|
package/package.json
CHANGED
package/pyproject.toml
ADDED
package/skip-tests.json
CHANGED
|
@@ -496,7 +496,7 @@
|
|
|
496
496
|
}
|
|
497
497
|
},
|
|
498
498
|
"bybit": {
|
|
499
|
-
"
|
|
499
|
+
"skipWs": "temporarily skipped because of RL issues. after proxy merge, turn it back on",
|
|
500
500
|
"skipMethods": {
|
|
501
501
|
"fetchTickers": {
|
|
502
502
|
"symbol" :"returned symbol is not same as requested symbol. i.e. BTC/USDT:USDT vs BTC/USDT"
|
|
@@ -1364,6 +1364,9 @@
|
|
|
1364
1364
|
"fetchOrderBook": {
|
|
1365
1365
|
"ask": "multiple ask prices are equal in ob https://app.travis-ci.com/github/ccxt/ccxt/builds/264706670#L2228",
|
|
1366
1366
|
"bid": "multiple bid prices are equal https://app.travis-ci.com/github/ccxt/ccxt/builds/265172859#L2745"
|
|
1367
|
+
},
|
|
1368
|
+
"watchTrades": {
|
|
1369
|
+
"side": "undefined"
|
|
1367
1370
|
}
|
|
1368
1371
|
}
|
|
1369
1372
|
}
|