ccxt 4.3.22 → 4.3.24
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/cjs/ccxt.js +9 -6
- package/dist/cjs/src/base/Exchange.js +4 -3
- package/dist/cjs/src/binance.js +1 -1
- package/dist/cjs/src/bitrue.js +6 -1
- package/dist/cjs/src/coinbase.js +5 -0
- package/dist/cjs/src/coinbaseadvanced.js +17 -0
- package/dist/cjs/src/{coinbasepro.js → coinbaseexchange.js} +40 -40
- package/dist/cjs/src/coinex.js +198 -257
- package/dist/cjs/src/kucoin.js +1 -0
- package/dist/cjs/src/phemex.js +26 -9
- package/dist/cjs/src/pro/bitget.js +12 -3
- package/dist/cjs/src/pro/{coinbasepro.js → coinbaseexchange.js} +13 -13
- package/dist/cjs/src/pro/poloniexfutures.js +22 -17
- package/dist/cjs/src/probit.js +1 -20
- package/dist/cjs/src/whitebit.js +9 -0
- package/js/ccxt.d.ts +11 -8
- package/js/ccxt.js +8 -6
- package/js/src/abstract/coinbaseadvanced.d.ts +97 -0
- package/js/src/abstract/coinbaseadvanced.js +11 -0
- package/js/src/abstract/whitebit.d.ts +9 -0
- package/js/src/base/Exchange.js +4 -3
- package/js/src/binance.js +1 -1
- package/js/src/bitrue.js +6 -1
- package/js/src/coinbase.js +5 -0
- package/js/src/coinbaseadvanced.d.ts +4 -0
- package/js/src/coinbaseadvanced.js +18 -0
- package/js/src/{coinbasepro.d.ts → coinbaseexchange.d.ts} +3 -3
- package/js/src/{coinbasepro.js → coinbaseexchange.js} +39 -39
- package/js/src/coinex.d.ts +13 -13
- package/js/src/coinex.js +199 -258
- package/js/src/kucoin.js +1 -0
- package/js/src/phemex.d.ts +1 -0
- package/js/src/phemex.js +26 -9
- package/js/src/pro/bitget.js +12 -3
- package/js/src/pro/{coinbasepro.d.ts → coinbaseexchange.d.ts} +2 -2
- package/js/src/pro/{coinbasepro.js → coinbaseexchange.js} +12 -12
- package/js/src/pro/poloniexfutures.js +22 -17
- package/js/src/probit.js +1 -20
- package/js/src/whitebit.js +9 -0
- package/package.json +1 -1
- /package/dist/cjs/src/abstract/{coinbasepro.js → coinbaseexchange.js} +0 -0
- /package/js/src/abstract/{coinbasepro.d.ts → coinbaseexchange.d.ts} +0 -0
- /package/js/src/abstract/{coinbasepro.js → coinbaseexchange.js} +0 -0
package/js/src/base/Exchange.js
CHANGED
|
@@ -230,7 +230,7 @@ export default class Exchange {
|
|
|
230
230
|
// }
|
|
231
231
|
// }
|
|
232
232
|
//
|
|
233
|
-
this.options = this.getDefaultOptions(); // exchange-specific options
|
|
233
|
+
this.options = this.getDefaultOptions(); // exchange-specific options if any
|
|
234
234
|
// fetch implementation options (JS only)
|
|
235
235
|
// http properties
|
|
236
236
|
this.headers = {};
|
|
@@ -5944,8 +5944,9 @@ export default class Exchange {
|
|
|
5944
5944
|
errors = 0;
|
|
5945
5945
|
const responseLength = response.length;
|
|
5946
5946
|
if (this.verbose) {
|
|
5947
|
-
const
|
|
5948
|
-
const
|
|
5947
|
+
const cursorString = (cursorValue === undefined) ? '' : cursorValue;
|
|
5948
|
+
const iteration = (i + 1);
|
|
5949
|
+
const cursorMessage = 'Cursor pagination call ' + iteration.toString() + ' method ' + method + ' response length ' + responseLength.toString() + ' cursor ' + cursorString;
|
|
5949
5950
|
this.log(cursorMessage);
|
|
5950
5951
|
}
|
|
5951
5952
|
if (responseLength === 0) {
|
package/js/src/binance.js
CHANGED
|
@@ -9692,7 +9692,7 @@ export default class binance extends Exchange {
|
|
|
9692
9692
|
await this.loadMarkets();
|
|
9693
9693
|
// by default cache the leverage bracket
|
|
9694
9694
|
// it contains useful stuff like the maintenance margin and initial margin for positions
|
|
9695
|
-
const leverageBrackets = this.safeDict(this.options, 'leverageBrackets'
|
|
9695
|
+
const leverageBrackets = this.safeDict(this.options, 'leverageBrackets');
|
|
9696
9696
|
if ((leverageBrackets === undefined) || (reload)) {
|
|
9697
9697
|
const defaultType = this.safeString(this.options, 'defaultType', 'future');
|
|
9698
9698
|
const type = this.safeString(params, 'type', defaultType);
|
package/js/src/bitrue.js
CHANGED
|
@@ -3145,6 +3145,11 @@ export default class bitrue extends Exchange {
|
|
|
3145
3145
|
signPath = signPath + '/' + version + '/' + path;
|
|
3146
3146
|
let signMessage = timestamp + method + signPath;
|
|
3147
3147
|
if (method === 'GET') {
|
|
3148
|
+
const keys = Object.keys(params);
|
|
3149
|
+
const keysLength = keys.length;
|
|
3150
|
+
if (keysLength > 0) {
|
|
3151
|
+
signMessage += '?' + this.urlencode(params);
|
|
3152
|
+
}
|
|
3148
3153
|
const signature = this.hmac(this.encode(signMessage), this.encode(this.secret), sha256);
|
|
3149
3154
|
headers = {
|
|
3150
3155
|
'X-CH-APIKEY': this.apiKey,
|
|
@@ -3158,7 +3163,7 @@ export default class bitrue extends Exchange {
|
|
|
3158
3163
|
'recvWindow': recvWindow,
|
|
3159
3164
|
}, params);
|
|
3160
3165
|
body = this.json(query);
|
|
3161
|
-
signMessage
|
|
3166
|
+
signMessage += body;
|
|
3162
3167
|
const signature = this.hmac(this.encode(signMessage), this.encode(this.secret), sha256);
|
|
3163
3168
|
headers = {
|
|
3164
3169
|
'Content-Type': 'application/json',
|
package/js/src/coinbase.js
CHANGED
|
@@ -1813,6 +1813,11 @@ export default class coinbase extends Exchange {
|
|
|
1813
1813
|
if (symbols !== undefined) {
|
|
1814
1814
|
request['product_ids'] = this.marketIds(symbols);
|
|
1815
1815
|
}
|
|
1816
|
+
let marketType = undefined;
|
|
1817
|
+
[marketType, params] = this.handleMarketTypeAndParams('fetchTickers', this.getMarketFromSymbols(symbols), params, 'default');
|
|
1818
|
+
if (marketType !== undefined && marketType !== 'default') {
|
|
1819
|
+
request['product_type'] = (marketType === 'swap') ? 'FUTURE' : 'SPOT';
|
|
1820
|
+
}
|
|
1816
1821
|
const response = await this.v3PublicGetBrokerageMarketProducts(this.extend(request, params));
|
|
1817
1822
|
//
|
|
1818
1823
|
// {
|
|
@@ -0,0 +1,18 @@
|
|
|
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 coinbase from './coinbase.js';
|
|
9
|
+
// ---------------------------------------------------------------------------
|
|
10
|
+
export default class coinbaseadvanced extends coinbase {
|
|
11
|
+
describe() {
|
|
12
|
+
return this.deepExtend(super.describe(), {
|
|
13
|
+
'id': 'coinbaseadvanced',
|
|
14
|
+
'name': 'Coinbase Advanced',
|
|
15
|
+
'alias': true,
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import Exchange from './abstract/
|
|
1
|
+
import Exchange from './abstract/coinbaseexchange.js';
|
|
2
2
|
import type { Int, OrderSide, OrderType, Trade, OHLCV, Order, Balances, Str, Transaction, Ticker, OrderBook, Tickers, Strings, Market, Currency, Num, Account, Currencies, TradingFees, Dict } from './base/types.js';
|
|
3
3
|
/**
|
|
4
|
-
* @class
|
|
4
|
+
* @class coinbaseexchange
|
|
5
5
|
* @augments Exchange
|
|
6
6
|
*/
|
|
7
|
-
export default class
|
|
7
|
+
export default class coinbaseexchange extends Exchange {
|
|
8
8
|
describe(): any;
|
|
9
9
|
fetchCurrencies(params?: {}): Promise<Currencies>;
|
|
10
10
|
fetchMarkets(params?: {}): Promise<Market[]>;
|
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
6
|
|
|
7
7
|
// ----------------------------------------------------------------------------
|
|
8
|
-
import Exchange from './abstract/
|
|
8
|
+
import Exchange from './abstract/coinbaseexchange.js';
|
|
9
9
|
import { InsufficientFunds, ArgumentsRequired, ExchangeError, InvalidOrder, InvalidAddress, AuthenticationError, OrderNotFound, OnMaintenance, PermissionDenied, RateLimitExceeded } from './base/errors.js';
|
|
10
10
|
import { Precise } from './base/Precise.js';
|
|
11
11
|
import { TICK_SIZE } from './base/functions/number.js';
|
|
12
12
|
import { sha256 } from './static_dependencies/noble-hashes/sha256.js';
|
|
13
13
|
// ----------------------------------------------------------------------------
|
|
14
14
|
/**
|
|
15
|
-
* @class
|
|
15
|
+
* @class coinbaseexchange
|
|
16
16
|
* @augments Exchange
|
|
17
17
|
*/
|
|
18
|
-
export default class
|
|
18
|
+
export default class coinbaseexchange extends Exchange {
|
|
19
19
|
describe() {
|
|
20
20
|
return this.deepExtend(super.describe(), {
|
|
21
|
-
'id': '
|
|
22
|
-
'name': 'Coinbase
|
|
21
|
+
'id': 'coinbaseexchange',
|
|
22
|
+
'name': 'Coinbase Exchange',
|
|
23
23
|
'countries': ['US'],
|
|
24
24
|
'rateLimit': 100,
|
|
25
25
|
'userAgent': this.userAgents['chrome'],
|
|
@@ -81,19 +81,19 @@ export default class coinbasepro extends Exchange {
|
|
|
81
81
|
'6h': 21600,
|
|
82
82
|
'1d': 86400,
|
|
83
83
|
},
|
|
84
|
-
'hostname': '
|
|
84
|
+
'hostname': 'exchange.coinbase.com',
|
|
85
85
|
'urls': {
|
|
86
86
|
'test': {
|
|
87
|
-
'public': 'https://api-public.sandbox.
|
|
88
|
-
'private': 'https://api-public.sandbox.
|
|
87
|
+
'public': 'https://api-public.sandbox.exchange.coinbase.com',
|
|
88
|
+
'private': 'https://api-public.sandbox.exchange.coinbase.com',
|
|
89
89
|
},
|
|
90
|
-
'logo': 'https://
|
|
90
|
+
'logo': 'https://github.com/ccxt/ccxt/assets/43336371/34a65553-88aa-4a38-a714-064bd228b97e',
|
|
91
91
|
'api': {
|
|
92
92
|
'public': 'https://api.{hostname}',
|
|
93
93
|
'private': 'https://api.{hostname}',
|
|
94
94
|
},
|
|
95
|
-
'www': 'https://
|
|
96
|
-
'doc': 'https://docs.
|
|
95
|
+
'www': 'https://coinbase.com/',
|
|
96
|
+
'doc': 'https://docs.cloud.coinbase.com/exchange/docs/',
|
|
97
97
|
'fees': [
|
|
98
98
|
'https://docs.pro.coinbase.com/#fees',
|
|
99
99
|
'https://support.pro.coinbase.com/customer/en/portal/articles/2945310-fees',
|
|
@@ -240,7 +240,7 @@ export default class coinbasepro extends Exchange {
|
|
|
240
240
|
async fetchCurrencies(params = {}) {
|
|
241
241
|
/**
|
|
242
242
|
* @method
|
|
243
|
-
* @name
|
|
243
|
+
* @name coinbaseexchange#fetchCurrencies
|
|
244
244
|
* @description fetches all available currencies on an exchange
|
|
245
245
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getcurrencies
|
|
246
246
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -311,8 +311,8 @@ export default class coinbasepro extends Exchange {
|
|
|
311
311
|
async fetchMarkets(params = {}) {
|
|
312
312
|
/**
|
|
313
313
|
* @method
|
|
314
|
-
* @name
|
|
315
|
-
* @description retrieves data on all markets for
|
|
314
|
+
* @name coinbaseexchange#fetchMarkets
|
|
315
|
+
* @description retrieves data on all markets for coinbaseexchange
|
|
316
316
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproducts
|
|
317
317
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
318
318
|
* @returns {object[]} an array of objects representing market data
|
|
@@ -432,7 +432,7 @@ export default class coinbasepro extends Exchange {
|
|
|
432
432
|
async fetchAccounts(params = {}) {
|
|
433
433
|
/**
|
|
434
434
|
* @method
|
|
435
|
-
* @name
|
|
435
|
+
* @name coinbaseexchange#fetchAccounts
|
|
436
436
|
* @description fetch all the accounts associated with a profile
|
|
437
437
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccounts
|
|
438
438
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -498,7 +498,7 @@ export default class coinbasepro extends Exchange {
|
|
|
498
498
|
async fetchBalance(params = {}) {
|
|
499
499
|
/**
|
|
500
500
|
* @method
|
|
501
|
-
* @name
|
|
501
|
+
* @name coinbaseexchange#fetchBalance
|
|
502
502
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
503
503
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccounts
|
|
504
504
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -511,7 +511,7 @@ export default class coinbasepro extends Exchange {
|
|
|
511
511
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
512
512
|
/**
|
|
513
513
|
* @method
|
|
514
|
-
* @name
|
|
514
|
+
* @name coinbaseexchange#fetchOrderBook
|
|
515
515
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproductbook
|
|
516
516
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
517
517
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
@@ -631,7 +631,7 @@ export default class coinbasepro extends Exchange {
|
|
|
631
631
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
632
632
|
/**
|
|
633
633
|
* @method
|
|
634
|
-
* @name
|
|
634
|
+
* @name coinbaseexchange#fetchTickers
|
|
635
635
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
636
636
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproduct
|
|
637
637
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
@@ -678,7 +678,7 @@ export default class coinbasepro extends Exchange {
|
|
|
678
678
|
async fetchTicker(symbol, params = {}) {
|
|
679
679
|
/**
|
|
680
680
|
* @method
|
|
681
|
-
* @name
|
|
681
|
+
* @name coinbaseexchange#fetchTicker
|
|
682
682
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproductticker
|
|
683
683
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
684
684
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
@@ -792,7 +792,7 @@ export default class coinbasepro extends Exchange {
|
|
|
792
792
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
793
793
|
/**
|
|
794
794
|
* @method
|
|
795
|
-
* @name
|
|
795
|
+
* @name coinbaseexchange#fetchMyTrades
|
|
796
796
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getfills
|
|
797
797
|
* @description fetch all trades made by the user
|
|
798
798
|
* @param {string} symbol unified market symbol
|
|
@@ -833,7 +833,7 @@ export default class coinbasepro extends Exchange {
|
|
|
833
833
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
834
834
|
/**
|
|
835
835
|
* @method
|
|
836
|
-
* @name
|
|
836
|
+
* @name coinbaseexchange#fetchTrades
|
|
837
837
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproducttrades
|
|
838
838
|
* @description get the list of most recent trades for a particular symbol
|
|
839
839
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
@@ -867,7 +867,7 @@ export default class coinbasepro extends Exchange {
|
|
|
867
867
|
async fetchTradingFees(params = {}) {
|
|
868
868
|
/**
|
|
869
869
|
* @method
|
|
870
|
-
* @name
|
|
870
|
+
* @name coinbaseexchange#fetchTradingFees
|
|
871
871
|
* @description fetch the trading fees for multiple markets
|
|
872
872
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getfees
|
|
873
873
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -921,7 +921,7 @@ export default class coinbasepro extends Exchange {
|
|
|
921
921
|
async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
|
|
922
922
|
/**
|
|
923
923
|
* @method
|
|
924
|
-
* @name
|
|
924
|
+
* @name coinbaseexchange#fetchOHLCV
|
|
925
925
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproductcandles
|
|
926
926
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
927
927
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
@@ -987,7 +987,7 @@ export default class coinbasepro extends Exchange {
|
|
|
987
987
|
async fetchTime(params = {}) {
|
|
988
988
|
/**
|
|
989
989
|
* @method
|
|
990
|
-
* @name
|
|
990
|
+
* @name coinbaseexchange#fetchTime
|
|
991
991
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
992
992
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
993
993
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
@@ -1090,10 +1090,10 @@ export default class coinbasepro extends Exchange {
|
|
|
1090
1090
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1091
1091
|
/**
|
|
1092
1092
|
* @method
|
|
1093
|
-
* @name
|
|
1093
|
+
* @name coinbaseexchange#fetchOrder
|
|
1094
1094
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorder
|
|
1095
1095
|
* @description fetches information on an order made by the user
|
|
1096
|
-
* @param {string} symbol not used by
|
|
1096
|
+
* @param {string} symbol not used by coinbaseexchange fetchOrder
|
|
1097
1097
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1098
1098
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1099
1099
|
*/
|
|
@@ -1116,7 +1116,7 @@ export default class coinbasepro extends Exchange {
|
|
|
1116
1116
|
async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1117
1117
|
/**
|
|
1118
1118
|
* @method
|
|
1119
|
-
* @name
|
|
1119
|
+
* @name coinbaseexchange#fetchOrderTrades
|
|
1120
1120
|
* @description fetch all the trades made from a single order
|
|
1121
1121
|
* @param {string} id order id
|
|
1122
1122
|
* @param {string} symbol unified market symbol
|
|
@@ -1139,7 +1139,7 @@ export default class coinbasepro extends Exchange {
|
|
|
1139
1139
|
async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1140
1140
|
/**
|
|
1141
1141
|
* @method
|
|
1142
|
-
* @name
|
|
1142
|
+
* @name coinbaseexchange#fetchOrders
|
|
1143
1143
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorders
|
|
1144
1144
|
* @description fetches information on multiple orders made by the user
|
|
1145
1145
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
@@ -1157,7 +1157,7 @@ export default class coinbasepro extends Exchange {
|
|
|
1157
1157
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1158
1158
|
/**
|
|
1159
1159
|
* @method
|
|
1160
|
-
* @name
|
|
1160
|
+
* @name coinbaseexchange#fetchOpenOrders
|
|
1161
1161
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorders
|
|
1162
1162
|
* @description fetch all unfilled currently open orders
|
|
1163
1163
|
* @param {string} symbol unified market symbol
|
|
@@ -1197,7 +1197,7 @@ export default class coinbasepro extends Exchange {
|
|
|
1197
1197
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1198
1198
|
/**
|
|
1199
1199
|
* @method
|
|
1200
|
-
* @name
|
|
1200
|
+
* @name coinbaseexchange#fetchClosedOrders
|
|
1201
1201
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorders
|
|
1202
1202
|
* @description fetches information on multiple closed orders made by the user
|
|
1203
1203
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
@@ -1215,7 +1215,7 @@ export default class coinbasepro extends Exchange {
|
|
|
1215
1215
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1216
1216
|
/**
|
|
1217
1217
|
* @method
|
|
1218
|
-
* @name
|
|
1218
|
+
* @name coinbaseexchange#createOrder
|
|
1219
1219
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_postorders
|
|
1220
1220
|
* @description create a trade order
|
|
1221
1221
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
@@ -1311,7 +1311,7 @@ export default class coinbasepro extends Exchange {
|
|
|
1311
1311
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1312
1312
|
/**
|
|
1313
1313
|
* @method
|
|
1314
|
-
* @name
|
|
1314
|
+
* @name coinbaseexchange#cancelOrder
|
|
1315
1315
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_deleteorder
|
|
1316
1316
|
* @description cancels an open order
|
|
1317
1317
|
* @param {string} id order id
|
|
@@ -1344,7 +1344,7 @@ export default class coinbasepro extends Exchange {
|
|
|
1344
1344
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
1345
1345
|
/**
|
|
1346
1346
|
* @method
|
|
1347
|
-
* @name
|
|
1347
|
+
* @name coinbaseexchange#cancelAllOrders
|
|
1348
1348
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_deleteorders
|
|
1349
1349
|
* @description cancel all open orders
|
|
1350
1350
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
@@ -1366,7 +1366,7 @@ export default class coinbasepro extends Exchange {
|
|
|
1366
1366
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
1367
1367
|
/**
|
|
1368
1368
|
* @method
|
|
1369
|
-
* @name
|
|
1369
|
+
* @name coinbaseexchange#withdraw
|
|
1370
1370
|
* @description make a withdrawal
|
|
1371
1371
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_postwithdrawpaymentmethod
|
|
1372
1372
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_postwithdrawcoinbaseaccount
|
|
@@ -1492,7 +1492,7 @@ export default class coinbasepro extends Exchange {
|
|
|
1492
1492
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1493
1493
|
/**
|
|
1494
1494
|
* @method
|
|
1495
|
-
* @name
|
|
1495
|
+
* @name coinbaseexchange#fetchLedger
|
|
1496
1496
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccountledger
|
|
1497
1497
|
* @description fetch the history of changes, actions done by the user or operations that altered balance of the user
|
|
1498
1498
|
* @param {string} code unified currency code, default is undefined
|
|
@@ -1543,7 +1543,7 @@ export default class coinbasepro extends Exchange {
|
|
|
1543
1543
|
async fetchDepositsWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1544
1544
|
/**
|
|
1545
1545
|
* @method
|
|
1546
|
-
* @name
|
|
1546
|
+
* @name coinbaseexchange#fetchDepositsWithdrawals
|
|
1547
1547
|
* @description fetch history of deposits and withdrawals
|
|
1548
1548
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_gettransfers
|
|
1549
1549
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccounttransfers
|
|
@@ -1651,7 +1651,7 @@ export default class coinbasepro extends Exchange {
|
|
|
1651
1651
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1652
1652
|
/**
|
|
1653
1653
|
* @method
|
|
1654
|
-
* @name
|
|
1654
|
+
* @name coinbaseexchange#fetchDeposits
|
|
1655
1655
|
* @description fetch all deposits made to an account
|
|
1656
1656
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_gettransfers
|
|
1657
1657
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccounttransfers
|
|
@@ -1666,7 +1666,7 @@ export default class coinbasepro extends Exchange {
|
|
|
1666
1666
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1667
1667
|
/**
|
|
1668
1668
|
* @method
|
|
1669
|
-
* @name
|
|
1669
|
+
* @name coinbaseexchange#fetchWithdrawals
|
|
1670
1670
|
* @description fetch all withdrawals made from an account
|
|
1671
1671
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_gettransfers
|
|
1672
1672
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getaccounttransfers
|
|
@@ -1778,7 +1778,7 @@ export default class coinbasepro extends Exchange {
|
|
|
1778
1778
|
async createDepositAddress(code, params = {}) {
|
|
1779
1779
|
/**
|
|
1780
1780
|
* @method
|
|
1781
|
-
* @name
|
|
1781
|
+
* @name coinbaseexchange#createDepositAddress
|
|
1782
1782
|
* @description create a currency deposit address
|
|
1783
1783
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_postcoinbaseaccountaddresses
|
|
1784
1784
|
* @param {string} code unified currency code of the currency for the deposit address
|
package/js/src/coinex.d.ts
CHANGED
|
@@ -81,18 +81,18 @@ export default class coinex extends Exchange {
|
|
|
81
81
|
info: any;
|
|
82
82
|
symbol: string;
|
|
83
83
|
markPrice: number;
|
|
84
|
-
indexPrice:
|
|
84
|
+
indexPrice: any;
|
|
85
85
|
interestRate: any;
|
|
86
86
|
estimatedSettlePrice: any;
|
|
87
|
-
timestamp:
|
|
88
|
-
datetime:
|
|
87
|
+
timestamp: any;
|
|
88
|
+
datetime: any;
|
|
89
89
|
fundingRate: number;
|
|
90
90
|
fundingTimestamp: number;
|
|
91
91
|
fundingDatetime: string;
|
|
92
92
|
nextFundingRate: number;
|
|
93
|
-
nextFundingTimestamp:
|
|
94
|
-
nextFundingDatetime:
|
|
95
|
-
previousFundingRate:
|
|
93
|
+
nextFundingTimestamp: number;
|
|
94
|
+
nextFundingDatetime: string;
|
|
95
|
+
previousFundingRate: any;
|
|
96
96
|
previousFundingTimestamp: any;
|
|
97
97
|
previousFundingDatetime: any;
|
|
98
98
|
}>;
|
|
@@ -100,18 +100,18 @@ export default class coinex extends Exchange {
|
|
|
100
100
|
info: any;
|
|
101
101
|
symbol: string;
|
|
102
102
|
markPrice: number;
|
|
103
|
-
indexPrice:
|
|
103
|
+
indexPrice: any;
|
|
104
104
|
interestRate: any;
|
|
105
105
|
estimatedSettlePrice: any;
|
|
106
|
-
timestamp:
|
|
107
|
-
datetime:
|
|
106
|
+
timestamp: any;
|
|
107
|
+
datetime: any;
|
|
108
108
|
fundingRate: number;
|
|
109
109
|
fundingTimestamp: number;
|
|
110
110
|
fundingDatetime: string;
|
|
111
111
|
nextFundingRate: number;
|
|
112
|
-
nextFundingTimestamp:
|
|
113
|
-
nextFundingDatetime:
|
|
114
|
-
previousFundingRate:
|
|
112
|
+
nextFundingTimestamp: number;
|
|
113
|
+
nextFundingDatetime: string;
|
|
114
|
+
previousFundingRate: any;
|
|
115
115
|
previousFundingTimestamp: any;
|
|
116
116
|
previousFundingDatetime: any;
|
|
117
117
|
};
|
|
@@ -121,7 +121,7 @@ export default class coinex extends Exchange {
|
|
|
121
121
|
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
|
|
122
122
|
parseTransaction(transaction: any, currency?: Currency): Transaction;
|
|
123
123
|
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
|
|
124
|
-
parseTransferStatus(status:
|
|
124
|
+
parseTransferStatus(status: any): string;
|
|
125
125
|
parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
|
|
126
126
|
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntries>;
|
|
127
127
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|