ccxt 4.3.68 → 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 +359 -353
- package/dist/cjs/src/bingx.js +134 -75
- 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/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 +359 -353
- package/js/src/base/types.d.ts +0 -2
- package/js/src/binance.d.ts +2 -2
- package/js/src/bingx.d.ts +2 -2
- package/js/src/bingx.js +134 -75
- package/js/src/bitget.d.ts +2 -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/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/latoken.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/latoken.js';
|
|
2
|
-
import type { TransferEntry, Balances, Currency, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, Num, TradingFeeInterface, Currencies, Dict,
|
|
2
|
+
import type { TransferEntry, Balances, Currency, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, Num, TradingFeeInterface, Currencies, Dict, int } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class latoken
|
|
5
5
|
* @augments Exchange
|
|
@@ -50,7 +50,7 @@ export default class latoken extends Exchange {
|
|
|
50
50
|
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
51
51
|
parseTransactionStatus(status: Str): string;
|
|
52
52
|
parseTransactionType(type: any): string;
|
|
53
|
-
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
53
|
+
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntry[]>;
|
|
54
54
|
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
|
|
55
55
|
parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
|
|
56
56
|
parseTransferStatus(status: Str): Str;
|
package/js/src/mexc.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/mexc.js';
|
|
2
|
-
import type { TransferEntry, IndexType, Int, OrderSide, Balances, OrderType, OHLCV, FundingRateHistory, Position, OrderBook, OrderRequest, FundingHistory, Order, Str, Trade, Transaction, Ticker, Tickers, Strings, Market, Currency, Leverage, Num, Account, MarginModification, Currencies, TradingFees, Dict,
|
|
2
|
+
import type { TransferEntry, IndexType, Int, OrderSide, Balances, OrderType, OHLCV, FundingRateHistory, Position, OrderBook, OrderRequest, FundingHistory, Order, Str, Trade, Transaction, Ticker, Tickers, Strings, Market, Currency, Leverage, Num, Account, MarginModification, Currencies, TradingFees, Dict, LeverageTier, LeverageTiers, int } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class mexc
|
|
5
5
|
* @augments Exchange
|
|
@@ -128,7 +128,7 @@ export default class mexc extends Exchange {
|
|
|
128
128
|
fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
|
|
129
129
|
parsePosition(position: Dict, market?: Market): Position;
|
|
130
130
|
fetchTransfer(id: string, code?: Str, params?: {}): Promise<TransferEntry>;
|
|
131
|
-
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
131
|
+
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntry[]>;
|
|
132
132
|
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
|
|
133
133
|
parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
|
|
134
134
|
parseAccountId(status: any): string;
|
package/js/src/okx.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/okx.js';
|
|
2
|
-
import type { TransferEntry, Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderRequest, FundingHistory, Str, Transaction, Ticker, OrderBook, Balances, Tickers, Market, Greeks, Strings, MarketInterface, Currency, Leverage, Num, Account, OptionChain, Option, MarginModification, TradingFeeInterface, Currencies, Conversion, CancellationRequest, Dict, Position, CrossBorrowRate, CrossBorrowRates,
|
|
2
|
+
import type { TransferEntry, Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderRequest, FundingHistory, Str, Transaction, Ticker, OrderBook, Balances, Tickers, Market, Greeks, Strings, MarketInterface, Currency, Leverage, Num, Account, OptionChain, Option, MarginModification, TradingFeeInterface, Currencies, Conversion, CancellationRequest, Dict, Position, CrossBorrowRate, CrossBorrowRates, LeverageTier, int } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class okx
|
|
5
5
|
* @augments Exchange
|
|
@@ -98,7 +98,7 @@ export default class okx extends Exchange {
|
|
|
98
98
|
parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
|
|
99
99
|
parseTransferStatus(status: Str): Str;
|
|
100
100
|
fetchTransfer(id: string, code?: Str, params?: {}): Promise<TransferEntry>;
|
|
101
|
-
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
101
|
+
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntry[]>;
|
|
102
102
|
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
|
103
103
|
url: string;
|
|
104
104
|
method: string;
|
package/js/src/oxfun.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ export default class oxfun extends Exchange {
|
|
|
70
70
|
info: any;
|
|
71
71
|
};
|
|
72
72
|
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
|
|
73
|
-
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
73
|
+
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntry[]>;
|
|
74
74
|
parseTransfer(transfer: any, currency?: Currency): {
|
|
75
75
|
id: string;
|
|
76
76
|
timestamp: number;
|
package/js/src/oxfun.js
CHANGED
|
@@ -2047,9 +2047,9 @@ export default class oxfun extends Exchange {
|
|
|
2047
2047
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
2048
2048
|
/**
|
|
2049
2049
|
* @method
|
|
2050
|
-
* @name
|
|
2050
|
+
* @name oxfun#withdraw
|
|
2051
2051
|
* @description make a withdrawal
|
|
2052
|
-
* @see https://docs.
|
|
2052
|
+
* @see https://docs.ox.fun/?json#post-v3-withdrawal
|
|
2053
2053
|
* @param {string} code unified currency code
|
|
2054
2054
|
* @param {float} amount the amount to withdraw
|
|
2055
2055
|
* @param {string} address the address to withdraw to
|
package/js/src/phemex.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/phemex.js';
|
|
2
|
-
import type { TransferEntry, Balances, Currency, FundingHistory, FundingRateHistory, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, MarginModification, Currencies, Dict,
|
|
2
|
+
import type { TransferEntry, Balances, Currency, FundingHistory, FundingRateHistory, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, MarginModification, Currencies, Dict, LeverageTier, LeverageTiers, int } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class phemex
|
|
5
5
|
* @augments Exchange
|
|
@@ -115,7 +115,7 @@ export default class phemex extends Exchange {
|
|
|
115
115
|
};
|
|
116
116
|
setLeverage(leverage: Int, symbol?: Str, params?: {}): Promise<any>;
|
|
117
117
|
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
|
|
118
|
-
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
118
|
+
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntry[]>;
|
|
119
119
|
parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
|
|
120
120
|
parseTransferStatus(status: Str): Str;
|
|
121
121
|
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
|
package/js/src/poloniex.js
CHANGED
|
@@ -101,7 +101,7 @@ export default class poloniex extends Exchange {
|
|
|
101
101
|
'rest': 'https://sand-spot-api-gateway.poloniex.com',
|
|
102
102
|
},
|
|
103
103
|
'www': 'https://www.poloniex.com',
|
|
104
|
-
'doc': 'https://docs.poloniex.com',
|
|
104
|
+
'doc': 'https://api-docs.poloniex.com/spot/',
|
|
105
105
|
'fees': 'https://poloniex.com/fees',
|
|
106
106
|
'referral': 'https://poloniex.com/signup?c=UBFZJRPJ',
|
|
107
107
|
},
|
|
@@ -414,7 +414,7 @@ export default class poloniex extends Exchange {
|
|
|
414
414
|
* @method
|
|
415
415
|
* @name poloniex#fetchOHLCV
|
|
416
416
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
417
|
-
* @see https://docs.poloniex.com
|
|
417
|
+
* @see https://api-docs.poloniex.com/spot/api/public/market-data#candles
|
|
418
418
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
419
419
|
* @param {string} timeframe the length of time each candle represents
|
|
420
420
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -479,7 +479,7 @@ export default class poloniex extends Exchange {
|
|
|
479
479
|
* @method
|
|
480
480
|
* @name poloniex#fetchMarkets
|
|
481
481
|
* @description retrieves data on all markets for poloniex
|
|
482
|
-
* @see https://docs.poloniex.com
|
|
482
|
+
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#symbol-information
|
|
483
483
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
484
484
|
* @returns {object[]} an array of objects representing market data
|
|
485
485
|
*/
|
|
@@ -570,7 +570,7 @@ export default class poloniex extends Exchange {
|
|
|
570
570
|
* @method
|
|
571
571
|
* @name poloniex#fetchTime
|
|
572
572
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
573
|
-
* @see https://docs.poloniex.com
|
|
573
|
+
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#system-timestamp
|
|
574
574
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
575
575
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
576
576
|
*/
|
|
@@ -637,7 +637,7 @@ export default class poloniex extends Exchange {
|
|
|
637
637
|
* @method
|
|
638
638
|
* @name poloniex#fetchTickers
|
|
639
639
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
640
|
-
* @see https://docs.poloniex.com
|
|
640
|
+
* @see https://api-docs.poloniex.com/spot/api/public/market-data#ticker
|
|
641
641
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
642
642
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
643
643
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -676,7 +676,7 @@ export default class poloniex extends Exchange {
|
|
|
676
676
|
* @method
|
|
677
677
|
* @name poloniex#fetchCurrencies
|
|
678
678
|
* @description fetches all available currencies on an exchange
|
|
679
|
-
* @see https://docs.poloniex.com
|
|
679
|
+
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
|
|
680
680
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
681
681
|
* @returns {object} an associative dictionary of currencies
|
|
682
682
|
*/
|
|
@@ -814,7 +814,7 @@ export default class poloniex extends Exchange {
|
|
|
814
814
|
* @method
|
|
815
815
|
* @name poloniex#fetchTicker
|
|
816
816
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
817
|
-
* @see https://docs.poloniex.com
|
|
817
|
+
* @see https://api-docs.poloniex.com/spot/api/public/market-data#ticker
|
|
818
818
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
819
819
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
820
820
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -945,7 +945,7 @@ export default class poloniex extends Exchange {
|
|
|
945
945
|
* @method
|
|
946
946
|
* @name poloniex#fetchTrades
|
|
947
947
|
* @description get the list of most recent trades for a particular symbol
|
|
948
|
-
* @see https://docs.poloniex.com
|
|
948
|
+
* @see https://api-docs.poloniex.com/spot/api/public/market-data#trades
|
|
949
949
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
950
950
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
951
951
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -981,7 +981,7 @@ export default class poloniex extends Exchange {
|
|
|
981
981
|
* @method
|
|
982
982
|
* @name poloniex#fetchMyTrades
|
|
983
983
|
* @description fetch all trades made by the user
|
|
984
|
-
* @see https://docs.poloniex.com
|
|
984
|
+
* @see https://api-docs.poloniex.com/spot/api/private/trade#trade-history
|
|
985
985
|
* @param {string} symbol unified market symbol
|
|
986
986
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
987
987
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -1192,8 +1192,8 @@ export default class poloniex extends Exchange {
|
|
|
1192
1192
|
* @method
|
|
1193
1193
|
* @name poloniex#fetchOpenOrders
|
|
1194
1194
|
* @description fetch all unfilled currently open orders
|
|
1195
|
-
* @see https://docs.poloniex.com
|
|
1196
|
-
* @see https://docs.poloniex.com
|
|
1195
|
+
* @see https://api-docs.poloniex.com/spot/api/private/order#open-orders
|
|
1196
|
+
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders // trigger orders
|
|
1197
1197
|
* @param {string} symbol unified market symbol
|
|
1198
1198
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1199
1199
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -1251,8 +1251,8 @@ export default class poloniex extends Exchange {
|
|
|
1251
1251
|
* @method
|
|
1252
1252
|
* @name poloniex#createOrder
|
|
1253
1253
|
* @description create a trade order
|
|
1254
|
-
* @see https://docs.poloniex.com
|
|
1255
|
-
* @see https://docs.poloniex.com
|
|
1254
|
+
* @see https://api-docs.poloniex.com/spot/api/private/order#create-order
|
|
1255
|
+
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#create-order // trigger orders
|
|
1256
1256
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
1257
1257
|
* @param {string} type 'market' or 'limit'
|
|
1258
1258
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -1357,8 +1357,8 @@ export default class poloniex extends Exchange {
|
|
|
1357
1357
|
* @method
|
|
1358
1358
|
* @name poloniex#editOrder
|
|
1359
1359
|
* @description edit a trade order
|
|
1360
|
-
* @see https://docs.poloniex.com
|
|
1361
|
-
* @see https://docs.poloniex.com
|
|
1360
|
+
* @see https://api-docs.poloniex.com/spot/api/private/order#cancel-replace-order
|
|
1361
|
+
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-replace-order
|
|
1362
1362
|
* @param {string} id order id
|
|
1363
1363
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
1364
1364
|
* @param {string} type 'market' or 'limit'
|
|
@@ -1404,8 +1404,8 @@ export default class poloniex extends Exchange {
|
|
|
1404
1404
|
// @method
|
|
1405
1405
|
// @name poloniex#cancelOrder
|
|
1406
1406
|
// @description cancels an open order
|
|
1407
|
-
// @see https://docs.poloniex.com
|
|
1408
|
-
// @see https://docs.poloniex.com
|
|
1407
|
+
// @see https://api-docs.poloniex.com/spot/api/private/order#cancel-order-by-id
|
|
1408
|
+
// @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-order-by-id // trigger orders
|
|
1409
1409
|
// @param {string} id order id
|
|
1410
1410
|
// @param {string} symbol unified symbol of the market the order was made in
|
|
1411
1411
|
// @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1444,8 +1444,8 @@ export default class poloniex extends Exchange {
|
|
|
1444
1444
|
* @method
|
|
1445
1445
|
* @name poloniex#cancelAllOrders
|
|
1446
1446
|
* @description cancel all open orders
|
|
1447
|
-
* @see https://docs.poloniex.com
|
|
1448
|
-
* @see https://docs.poloniex.com
|
|
1447
|
+
* @see https://api-docs.poloniex.com/spot/api/private/order#cancel-all-orders
|
|
1448
|
+
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-all-orders // trigger orders
|
|
1449
1449
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1450
1450
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1451
1451
|
* @param {boolean} [params.trigger] true if canceling trigger orders
|
|
@@ -1496,8 +1496,8 @@ export default class poloniex extends Exchange {
|
|
|
1496
1496
|
* @method
|
|
1497
1497
|
* @name poloniex#fetchOrder
|
|
1498
1498
|
* @description fetch an order by it's id
|
|
1499
|
-
* @see https://docs.poloniex.com
|
|
1500
|
-
* @see https://docs.poloniex.com
|
|
1499
|
+
* @see https://api-docs.poloniex.com/spot/api/private/order#order-details
|
|
1500
|
+
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders // trigger orders
|
|
1501
1501
|
* @param {string} id order id
|
|
1502
1502
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1503
1503
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1555,7 +1555,7 @@ export default class poloniex extends Exchange {
|
|
|
1555
1555
|
* @method
|
|
1556
1556
|
* @name poloniex#fetchOrderTrades
|
|
1557
1557
|
* @description fetch all the trades made from a single order
|
|
1558
|
-
* @see https://docs.poloniex.com
|
|
1558
|
+
* @see https://api-docs.poloniex.com/spot/api/private/trade#trades-by-order-id
|
|
1559
1559
|
* @param {string} id order id
|
|
1560
1560
|
* @param {string} symbol unified market symbol
|
|
1561
1561
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
@@ -1617,7 +1617,7 @@ export default class poloniex extends Exchange {
|
|
|
1617
1617
|
* @method
|
|
1618
1618
|
* @name poloniex#fetchBalance
|
|
1619
1619
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1620
|
-
* @see https://docs.poloniex.com
|
|
1620
|
+
* @see https://api-docs.poloniex.com/spot/api/private/account#all-account-balances
|
|
1621
1621
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1622
1622
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1623
1623
|
*/
|
|
@@ -1649,7 +1649,7 @@ export default class poloniex extends Exchange {
|
|
|
1649
1649
|
* @method
|
|
1650
1650
|
* @name poloniex#fetchTradingFees
|
|
1651
1651
|
* @description fetch the trading fees for multiple markets
|
|
1652
|
-
* @see https://docs.poloniex.com
|
|
1652
|
+
* @see https://api-docs.poloniex.com/spot/api/private/account#fee-info
|
|
1653
1653
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1654
1654
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1655
1655
|
*/
|
|
@@ -1682,7 +1682,7 @@ export default class poloniex extends Exchange {
|
|
|
1682
1682
|
* @method
|
|
1683
1683
|
* @name poloniex#fetchOrderBook
|
|
1684
1684
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1685
|
-
* @see https://docs.poloniex.com
|
|
1685
|
+
* @see https://api-docs.poloniex.com/spot/api/public/market-data#order-book
|
|
1686
1686
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1687
1687
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1688
1688
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1739,7 +1739,7 @@ export default class poloniex extends Exchange {
|
|
|
1739
1739
|
* @method
|
|
1740
1740
|
* @name poloniex#createDepositAddress
|
|
1741
1741
|
* @description create a currency deposit address
|
|
1742
|
-
* @see https://docs.poloniex.com
|
|
1742
|
+
* @see https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
|
|
1743
1743
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1744
1744
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1745
1745
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
@@ -1790,7 +1790,7 @@ export default class poloniex extends Exchange {
|
|
|
1790
1790
|
* @method
|
|
1791
1791
|
* @name poloniex#fetchDepositAddress
|
|
1792
1792
|
* @description fetch the deposit address for a currency associated with this account
|
|
1793
|
-
* @see https://docs.poloniex.com
|
|
1793
|
+
* @see https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
|
|
1794
1794
|
* @param {string} code unified currency code
|
|
1795
1795
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1796
1796
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
@@ -1841,7 +1841,7 @@ export default class poloniex extends Exchange {
|
|
|
1841
1841
|
* @method
|
|
1842
1842
|
* @name poloniex#transfer
|
|
1843
1843
|
* @description transfer currency internally between wallets on the same account
|
|
1844
|
-
* @see https://docs.poloniex.com
|
|
1844
|
+
* @see https://api-docs.poloniex.com/spot/api/private/account#accounts-transfer
|
|
1845
1845
|
* @param {string} code unified currency code
|
|
1846
1846
|
* @param {float} amount amount to transfer
|
|
1847
1847
|
* @param {string} fromAccount account to transfer from
|
|
@@ -1891,7 +1891,7 @@ export default class poloniex extends Exchange {
|
|
|
1891
1891
|
* @method
|
|
1892
1892
|
* @name poloniex#withdraw
|
|
1893
1893
|
* @description make a withdrawal
|
|
1894
|
-
* @see https://docs.poloniex.com
|
|
1894
|
+
* @see https://api-docs.poloniex.com/spot/api/private/wallet#withdraw-currency
|
|
1895
1895
|
* @param {string} code unified currency code
|
|
1896
1896
|
* @param {float} amount the amount to withdraw
|
|
1897
1897
|
* @param {string} address the address to withdraw to
|
|
@@ -2016,7 +2016,7 @@ export default class poloniex extends Exchange {
|
|
|
2016
2016
|
* @method
|
|
2017
2017
|
* @name poloniex#fetchDepositsWithdrawals
|
|
2018
2018
|
* @description fetch history of deposits and withdrawals
|
|
2019
|
-
* @see https://docs.poloniex.com
|
|
2019
|
+
* @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
|
|
2020
2020
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
2021
2021
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2022
2022
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
@@ -2041,7 +2041,7 @@ export default class poloniex extends Exchange {
|
|
|
2041
2041
|
* @method
|
|
2042
2042
|
* @name poloniex#fetchWithdrawals
|
|
2043
2043
|
* @description fetch all withdrawals made from an account
|
|
2044
|
-
* @see https://docs.poloniex.com
|
|
2044
|
+
* @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
|
|
2045
2045
|
* @param {string} code unified currency code
|
|
2046
2046
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2047
2047
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -2062,7 +2062,7 @@ export default class poloniex extends Exchange {
|
|
|
2062
2062
|
* @method
|
|
2063
2063
|
* @name poloniex#fetchDepositWithdrawFees
|
|
2064
2064
|
* @description fetch deposit and withdraw fees
|
|
2065
|
-
* @see https://docs.poloniex.com
|
|
2065
|
+
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
|
|
2066
2066
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2067
2067
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2068
2068
|
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
@@ -2187,7 +2187,7 @@ export default class poloniex extends Exchange {
|
|
|
2187
2187
|
* @method
|
|
2188
2188
|
* @name poloniex#fetchDeposits
|
|
2189
2189
|
* @description fetch all deposits made to an account
|
|
2190
|
-
* @see https://docs.poloniex.com
|
|
2190
|
+
* @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
|
|
2191
2191
|
* @param {string} code unified currency code
|
|
2192
2192
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2193
2193
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
@@ -76,7 +76,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
76
76
|
'private': 'https://futures-api.poloniex.com',
|
|
77
77
|
},
|
|
78
78
|
'www': 'https://www.poloniex.com',
|
|
79
|
-
'doc': 'https://
|
|
79
|
+
'doc': 'https://api-docs.poloniex.com/futures/',
|
|
80
80
|
'fees': 'https://poloniex.com/fee-schedule',
|
|
81
81
|
'referral': 'https://poloniex.com/signup?c=UBFZJRPJ',
|
|
82
82
|
},
|
|
@@ -211,7 +211,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
211
211
|
* @method
|
|
212
212
|
* @name poloniexfutures#fetchMarkets
|
|
213
213
|
* @description retrieves data on all markets for poloniexfutures
|
|
214
|
-
* @see https://
|
|
214
|
+
* @see https://api-docs.poloniex.com/futures/api/symbol
|
|
215
215
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
216
216
|
* @returns {object[]} an array of objects representing market data
|
|
217
217
|
*/
|
|
@@ -423,7 +423,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
423
423
|
* @method
|
|
424
424
|
* @name poloniexfutures#fetchTicker
|
|
425
425
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
426
|
-
* @see https://
|
|
426
|
+
* @see https://api-docs.poloniex.com/futures/api/ticker#get-real-time-ticker-20
|
|
427
427
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
428
428
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
429
429
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -459,7 +459,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
459
459
|
* @method
|
|
460
460
|
* @name poloniexfutures#fetchTickers
|
|
461
461
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
462
|
-
* @see https://
|
|
462
|
+
* @see https://api-docs.poloniex.com/futures/api/ticker#get-real-time-ticker-of-all-symbols
|
|
463
463
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
464
464
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
465
465
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -474,8 +474,8 @@ export default class poloniexfutures extends Exchange {
|
|
|
474
474
|
* @method
|
|
475
475
|
* @name poloniexfuturesfutures#fetchOrderBook
|
|
476
476
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
477
|
-
* @see https://
|
|
478
|
-
* @see https://
|
|
477
|
+
* @see https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book---level-2
|
|
478
|
+
* @see https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book--level-3
|
|
479
479
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
480
480
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
481
481
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -561,7 +561,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
561
561
|
* @method
|
|
562
562
|
* @name poloniexfutures#fetchL3OrderBook
|
|
563
563
|
* @description fetches level 3 information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
564
|
-
* @see https://
|
|
564
|
+
* @see https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book--level-3
|
|
565
565
|
* @param {string} symbol unified market symbol
|
|
566
566
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
567
567
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -668,7 +668,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
668
668
|
* @method
|
|
669
669
|
* @name poloniexfutures#fetchTrades
|
|
670
670
|
* @description get the list of most recent trades for a particular symbol
|
|
671
|
-
* @see https://
|
|
671
|
+
* @see https://api-docs.poloniex.com/futures/api/historical#transaction-history
|
|
672
672
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
673
673
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
674
674
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -705,7 +705,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
705
705
|
* @method
|
|
706
706
|
* @name poloniexfutures#fetchTime
|
|
707
707
|
* @description fetches the current integer timestamp in milliseconds from the poloniexfutures server
|
|
708
|
-
* @see https://
|
|
708
|
+
* @see https://api-docs.poloniex.com/futures/api/time#server-time
|
|
709
709
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
710
710
|
* @returns {int} the current integer timestamp in milliseconds from the poloniexfutures server
|
|
711
711
|
*/
|
|
@@ -724,7 +724,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
724
724
|
* @method
|
|
725
725
|
* @name poloniexfutures#fetchOHLCV
|
|
726
726
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
727
|
-
* @see https://
|
|
727
|
+
* @see https://api-docs.poloniex.com/futures/api/kline#get-k-line-data-of-contract
|
|
728
728
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
729
729
|
* @param {string} timeframe the length of time each candle represents
|
|
730
730
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -793,7 +793,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
793
793
|
* @method
|
|
794
794
|
* @name poloniexfutures#fetchBalance
|
|
795
795
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
796
|
-
* @see https://
|
|
796
|
+
* @see https://api-docs.poloniex.com/futures/api/account#get-account-overview
|
|
797
797
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
798
798
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
799
799
|
*/
|
|
@@ -829,7 +829,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
829
829
|
* @method
|
|
830
830
|
* @name poloniexfutures#createOrder
|
|
831
831
|
* @description Create an order on the exchange
|
|
832
|
-
* @see https://
|
|
832
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#place-an-order
|
|
833
833
|
* @param {string} symbol Unified CCXT market symbol
|
|
834
834
|
* @param {string} type 'limit' or 'market'
|
|
835
835
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -937,7 +937,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
937
937
|
* @method
|
|
938
938
|
* @name poloniexfutures#cancelOrder
|
|
939
939
|
* @description cancels an open order
|
|
940
|
-
* @see https://
|
|
940
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#cancel-an-order
|
|
941
941
|
* @param {string} id order id
|
|
942
942
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
943
943
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -977,7 +977,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
977
977
|
* @method
|
|
978
978
|
* @name poloniexfutures#fetchPositions
|
|
979
979
|
* @description fetch all open positions
|
|
980
|
-
* @see https://
|
|
980
|
+
* @see https://api-docs.poloniex.com/futures/api/positions#get-position-list
|
|
981
981
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
982
982
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
983
983
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
@@ -1131,7 +1131,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1131
1131
|
* @method
|
|
1132
1132
|
* @name poloniexfutures#fetchFundingHistory
|
|
1133
1133
|
* @description fetch the history of funding payments paid and received on this account
|
|
1134
|
-
* @see https://
|
|
1134
|
+
* @see https://api-docs.poloniex.com/futures/api/funding-fees#get-funding-history
|
|
1135
1135
|
* @param {string} symbol unified market symbol
|
|
1136
1136
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
1137
1137
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
@@ -1270,8 +1270,8 @@ export default class poloniexfutures extends Exchange {
|
|
|
1270
1270
|
* @method
|
|
1271
1271
|
* @name poloniexfutures#fetchOrdersByStatus
|
|
1272
1272
|
* @description fetches a list of orders placed on the exchange
|
|
1273
|
-
* @see https://
|
|
1274
|
-
* @see https://
|
|
1273
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
|
|
1274
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
|
|
1275
1275
|
* @param {string} status 'active' or 'closed', only 'active' is valid for stop orders
|
|
1276
1276
|
* @param {string} symbol unified symbol for the market to retrieve orders from
|
|
1277
1277
|
* @param {int} [since] timestamp in ms of the earliest order to retrieve
|
|
@@ -1380,8 +1380,8 @@ export default class poloniexfutures extends Exchange {
|
|
|
1380
1380
|
* @method
|
|
1381
1381
|
* @name poloniexfutures#fetchOpenOrders
|
|
1382
1382
|
* @description fetch all unfilled currently open orders
|
|
1383
|
-
* @see https://
|
|
1384
|
-
* @see https://
|
|
1383
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
|
|
1384
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
|
|
1385
1385
|
* @param {string} symbol unified market symbol
|
|
1386
1386
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1387
1387
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -1398,8 +1398,8 @@ export default class poloniexfutures extends Exchange {
|
|
|
1398
1398
|
* @method
|
|
1399
1399
|
* @name poloniexfutures#fetchClosedOrders
|
|
1400
1400
|
* @description fetches information on multiple closed orders made by the user
|
|
1401
|
-
* @see https://
|
|
1402
|
-
* @see https://
|
|
1401
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
|
|
1402
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
|
|
1403
1403
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1404
1404
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1405
1405
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -1416,8 +1416,8 @@ export default class poloniexfutures extends Exchange {
|
|
|
1416
1416
|
* @method
|
|
1417
1417
|
* @name poloniexfutures#fetchOrder
|
|
1418
1418
|
* @description fetches information on an order made by the user
|
|
1419
|
-
* @see https://
|
|
1420
|
-
* @see https://
|
|
1419
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#get-details-of-a-single-order
|
|
1420
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#get-single-order-by-clientoid
|
|
1421
1421
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1422
1422
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1423
1423
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1616,7 +1616,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1616
1616
|
* @method
|
|
1617
1617
|
* @name poloniexfutures#fetchFundingRate
|
|
1618
1618
|
* @description fetch the current funding rate
|
|
1619
|
-
* @see https://
|
|
1619
|
+
* @see https://api-docs.poloniex.com/futures/api/futures-index#get-premium-index
|
|
1620
1620
|
* @param {string} symbol unified market symbol
|
|
1621
1621
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1622
1622
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
@@ -1664,7 +1664,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1664
1664
|
* @method
|
|
1665
1665
|
* @name poloniexfutures#fetchMyTrades
|
|
1666
1666
|
* @description fetch all trades made by the user
|
|
1667
|
-
* @see https://
|
|
1667
|
+
* @see https://api-docs.poloniex.com/futures/api/fills#get-fillsdeprecated
|
|
1668
1668
|
* @param {string} symbol unified market symbol
|
|
1669
1669
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1670
1670
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -1728,7 +1728,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1728
1728
|
* @method
|
|
1729
1729
|
* @name poloniexfutures#setMarginMode
|
|
1730
1730
|
* @description set margin mode to 'cross' or 'isolated'
|
|
1731
|
-
* @see https://
|
|
1731
|
+
* @see https://api-docs.poloniex.com/futures/api/margin-mode#change-margin-mode
|
|
1732
1732
|
* @param {string} marginMode "0" (isolated) or "1" (cross)
|
|
1733
1733
|
* @param {string} symbol unified market symbol
|
|
1734
1734
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|