ccxt 4.3.67 → 4.3.69
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 +5 -5
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/base/Exchange.js +364 -356
- package/dist/cjs/src/base/functions/type.js +2 -2
- package/dist/cjs/src/bingx.js +463 -217
- package/dist/cjs/src/bitget.js +4 -2
- package/dist/cjs/src/btcbox.js +2 -1
- package/dist/cjs/src/coinbaseinternational.js +79 -1
- package/dist/cjs/src/hyperliquid.js +0 -3
- package/dist/cjs/src/kucoin.js +12 -5
- package/dist/cjs/src/oxfun.js +2 -2
- package/dist/cjs/src/poloniex.js +33 -33
- package/dist/cjs/src/poloniexfutures.js +26 -26
- package/dist/cjs/src/pro/krakenfutures.js +7 -6
- package/dist/cjs/src/pro/poloniex.js +13 -13
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/js/ccxt.d.ts +3 -3
- package/js/ccxt.js +1 -1
- package/js/src/base/Exchange.d.ts +107 -82
- package/js/src/base/Exchange.js +364 -356
- package/js/src/base/functions/type.js +2 -2
- package/js/src/base/types.d.ts +0 -2
- package/js/src/binance.d.ts +2 -2
- package/js/src/bingx.d.ts +4 -2
- package/js/src/bingx.js +463 -217
- package/js/src/bitget.d.ts +2 -2
- package/js/src/bitget.js +4 -2
- package/js/src/bitmart.d.ts +2 -2
- package/js/src/bitrue.d.ts +2 -2
- package/js/src/btcbox.js +2 -1
- package/js/src/bybit.d.ts +2 -2
- package/js/src/coinbaseinternational.d.ts +11 -0
- package/js/src/coinbaseinternational.js +79 -1
- package/js/src/coinex.d.ts +2 -2
- package/js/src/coinlist.d.ts +2 -2
- package/js/src/deribit.d.ts +2 -2
- package/js/src/digifinex.d.ts +2 -2
- package/js/src/hyperliquid.js +0 -3
- package/js/src/kucoin.js +12 -5
- package/js/src/latoken.d.ts +2 -2
- package/js/src/mexc.d.ts +2 -2
- package/js/src/okx.d.ts +2 -2
- package/js/src/oxfun.d.ts +1 -1
- package/js/src/oxfun.js +2 -2
- package/js/src/phemex.d.ts +2 -2
- package/js/src/poloniex.js +33 -33
- package/js/src/poloniexfutures.js +26 -26
- package/js/src/pro/krakenfutures.js +7 -6
- package/js/src/pro/poloniex.js +13 -13
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/woo.d.ts +2 -2
- package/package.json +1 -1
- package/js/src/coinbaseprime.d.ts +0 -4
- package/js/src/coinbaseprime.js +0 -32
- package/js/src/pro/coinbaseprime.d.ts +0 -4
- package/js/src/pro/coinbaseprime.js +0 -33
- package/js/src/pro/huobipro.d.ts +0 -4
- package/js/src/pro/huobipro.js +0 -17
- package/js/src/pro/mexc3.d.ts +0 -4
- package/js/src/pro/mexc3.js +0 -17
- package/js/src/pro/okex.d.ts +0 -4
- package/js/src/pro/okex.js +0 -17
|
@@ -242,7 +242,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
242
242
|
* @method
|
|
243
243
|
* @name poloniexfutures#watchTicker
|
|
244
244
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
245
|
-
* @see https://
|
|
245
|
+
* @see https://api-docs.poloniex.com/futures/websocket/public#get-real-time-symbol-ticker
|
|
246
246
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
247
247
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
248
248
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -257,7 +257,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
257
257
|
* @method
|
|
258
258
|
* @name poloniexfutures#watchTrades
|
|
259
259
|
* @description get the list of most recent trades for a particular symbol
|
|
260
|
-
* @see https://
|
|
260
|
+
* @see https://api-docs.poloniex.com/futures/websocket/public#full-matching-engine-datalevel-3
|
|
261
261
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
262
262
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
263
263
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -280,7 +280,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
280
280
|
* @method
|
|
281
281
|
* @name poloniexfutures#watchOrderBook
|
|
282
282
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
283
|
-
* @see https://
|
|
283
|
+
* @see https://api-docs.poloniex.com/futures/websocket/public#level-2-market-data
|
|
284
284
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
285
285
|
* @param {int} [limit] not used by poloniexfutures watchOrderBook
|
|
286
286
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -310,7 +310,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
310
310
|
* @method
|
|
311
311
|
* @name poloniexfutures#watchOrders
|
|
312
312
|
* @description watches information on multiple orders made by the user
|
|
313
|
-
* @see https://
|
|
313
|
+
* @see https://api-docs.poloniex.com/futures/websocket/user-messages#private-messages
|
|
314
314
|
* @param {string} symbol filter by unified market symbol of the market orders were made in
|
|
315
315
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
316
316
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -337,7 +337,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
337
337
|
* @method
|
|
338
338
|
* @name poloniexfutures#watchBalance
|
|
339
339
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
340
|
-
* @see https://
|
|
340
|
+
* @see https://api-docs.poloniex.com/futures/websocket/user-messages#account-balance-events
|
|
341
341
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
342
342
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
343
343
|
*/
|
package/js/src/woo.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/woo.js';
|
|
2
|
-
import type { TransferEntry, Balances, Conversion, Currency, FundingRateHistory, Int, Market, MarginModification, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Dict, Strings, Trade, Transaction, Leverage, Account, Currencies, TradingFees,
|
|
2
|
+
import type { TransferEntry, Balances, Conversion, Currency, FundingRateHistory, Int, Market, MarginModification, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Dict, Strings, Trade, Transaction, Leverage, Account, Currencies, TradingFees, int, FundingHistory } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class woo
|
|
5
5
|
* @augments Exchange
|
|
@@ -87,7 +87,7 @@ export default class woo extends Exchange {
|
|
|
87
87
|
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
88
88
|
parseTransactionStatus(status: Str): string;
|
|
89
89
|
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
|
|
90
|
-
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
90
|
+
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntry[]>;
|
|
91
91
|
parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
|
|
92
92
|
parseTransferStatus(status: Str): Str;
|
|
93
93
|
withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
|
package/package.json
CHANGED
package/js/src/coinbaseprime.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// ----------------------------------------------------------------------------
|
|
2
|
-
|
|
3
|
-
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
-
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
-
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
-
|
|
7
|
-
// ---------------------------------------------------------------------------
|
|
8
|
-
import coinbasepro from './coinbasepro.js';
|
|
9
|
-
// ---------------------------------------------------------------------------
|
|
10
|
-
export default class coinbaseprime extends coinbasepro {
|
|
11
|
-
describe() {
|
|
12
|
-
return this.deepExtend(super.describe(), {
|
|
13
|
-
'id': 'coinbaseprime',
|
|
14
|
-
'name': 'Coinbase Prime',
|
|
15
|
-
'pro': true,
|
|
16
|
-
'hostname': 'exchange.coinbase.com',
|
|
17
|
-
'urls': {
|
|
18
|
-
'test': {
|
|
19
|
-
'public': 'https://public.sandbox.exchange.coinbase.com',
|
|
20
|
-
'private': 'https://public.sandbox.exchange.coinbase.com',
|
|
21
|
-
},
|
|
22
|
-
'logo': 'https://user-images.githubusercontent.com/1294454/44539184-29f26e00-a70c-11e8-868f-e907fc236a7c.jpg',
|
|
23
|
-
'api': {
|
|
24
|
-
'public': 'https://api.{hostname}',
|
|
25
|
-
'private': 'https://api.{hostname}',
|
|
26
|
-
},
|
|
27
|
-
'www': 'https://exchange.coinbase.com',
|
|
28
|
-
'doc': 'https://docs.exchange.coinbase.com',
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// ----------------------------------------------------------------------------
|
|
2
|
-
|
|
3
|
-
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
-
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
-
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
-
|
|
7
|
-
// ---------------------------------------------------------------------------
|
|
8
|
-
import coinbasepro from './coinbasepro.js';
|
|
9
|
-
// ---------------------------------------------------------------------------
|
|
10
|
-
export default class coinbaseprime extends coinbasepro {
|
|
11
|
-
describe() {
|
|
12
|
-
return this.deepExtend(super.describe(), {
|
|
13
|
-
'id': 'coinbaseprime',
|
|
14
|
-
'name': 'Coinbase Prime',
|
|
15
|
-
'has': {
|
|
16
|
-
'ws': true,
|
|
17
|
-
'watchOrderBook': true,
|
|
18
|
-
},
|
|
19
|
-
'urls': {
|
|
20
|
-
'test': {
|
|
21
|
-
'ws': 'wss://ws-feed-public.sandbox.exchange.coinbase.com',
|
|
22
|
-
},
|
|
23
|
-
'logo': 'https://user-images.githubusercontent.com/1294454/44539184-29f26e00-a70c-11e8-868f-e907fc236a7c.jpg',
|
|
24
|
-
'api': {
|
|
25
|
-
'ws': 'wss://ws-feed.exchange.coinbase.com',
|
|
26
|
-
},
|
|
27
|
-
'www': 'https://exchange.coinbase.com',
|
|
28
|
-
'doc': 'https://docs.exchange.coinbase.com/',
|
|
29
|
-
'fees': 'https://pro.coinbase.com/fees',
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
package/js/src/pro/huobipro.d.ts
DELETED
package/js/src/pro/huobipro.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// ----------------------------------------------------------------------------
|
|
2
|
-
|
|
3
|
-
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
-
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
-
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
-
|
|
7
|
-
// ---------------------------------------------------------------------------
|
|
8
|
-
import huobi from './huobi.js';
|
|
9
|
-
// ---------------------------------------------------------------------------
|
|
10
|
-
export default class huobipro extends huobi {
|
|
11
|
-
describe() {
|
|
12
|
-
return this.deepExtend(super.describe(), {
|
|
13
|
-
'alias': true,
|
|
14
|
-
'id': 'huobipro',
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|
package/js/src/pro/mexc3.d.ts
DELETED
package/js/src/pro/mexc3.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// ----------------------------------------------------------------------------
|
|
2
|
-
|
|
3
|
-
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
-
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
-
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
-
|
|
7
|
-
// ---------------------------------------------------------------------------
|
|
8
|
-
import mexc from './mexc.js';
|
|
9
|
-
// ---------------------------------------------------------------------------
|
|
10
|
-
export default class mexc3 extends mexc {
|
|
11
|
-
describe() {
|
|
12
|
-
return this.deepExtend(super.describe(), {
|
|
13
|
-
'id': 'mexc3',
|
|
14
|
-
'alias': true,
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|
package/js/src/pro/okex.d.ts
DELETED
package/js/src/pro/okex.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// ----------------------------------------------------------------------------
|
|
2
|
-
|
|
3
|
-
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
-
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
-
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
-
|
|
7
|
-
// ---------------------------------------------------------------------------
|
|
8
|
-
import okx from './okx.js';
|
|
9
|
-
// ---------------------------------------------------------------------------
|
|
10
|
-
export default class okex extends okx {
|
|
11
|
-
describe() {
|
|
12
|
-
return this.deepExtend(super.describe(), {
|
|
13
|
-
'alias': true,
|
|
14
|
-
'id': 'okex',
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|