ccxt 4.2.45 → 4.2.47
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/CHANGELOG.md +5405 -8414
- package/README.md +4 -4
- package/change.sh +5 -3
- package/dist/ccxt.browser.js +824 -64
- package/dist/ccxt.browser.min.js +7 -7
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/base/ws/Cache.js +13 -5
- package/dist/cjs/src/base/ws/OrderBook.js +2 -2
- package/dist/cjs/src/binance.js +34 -12
- package/dist/cjs/src/bitfinex2.js +1 -0
- package/dist/cjs/src/bithumb.js +5 -0
- package/dist/cjs/src/btcturk.js +11 -0
- package/dist/cjs/src/bybit.js +185 -2
- package/dist/cjs/src/coinbase.js +9 -5
- package/dist/cjs/src/coincheck.js +11 -0
- package/dist/cjs/src/coinmate.js +114 -1
- package/dist/cjs/src/coinsph.js +32 -1
- package/dist/cjs/src/coinspot.js +7 -0
- package/dist/cjs/src/cryptocom.js +2 -2
- package/dist/cjs/src/currencycom.js +22 -0
- package/dist/cjs/src/deribit.js +34 -1
- package/dist/cjs/src/exmo.js +22 -0
- package/dist/cjs/src/gemini.js +15 -0
- package/dist/cjs/src/hitbtc.js +2 -0
- package/dist/cjs/src/hollaex.js +27 -1
- package/dist/cjs/src/idex.js +60 -1
- package/dist/cjs/src/indodax.js +106 -1
- package/dist/cjs/src/latoken.js +3 -0
- package/dist/cjs/src/mercado.js +3 -0
- package/dist/cjs/src/oceanex.js +3 -0
- package/dist/cjs/src/okx.js +1 -0
- package/dist/cjs/src/pro/bitget.js +12 -8
- package/dist/cjs/src/pro/bitmart.js +11 -11
- package/dist/cjs/src/pro/bitmex.js +4 -4
- package/dist/cjs/src/pro/cex.js +2 -2
- package/dist/cjs/src/pro/gemini.js +4 -3
- package/dist/cjs/src/timex.js +65 -0
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bequant.d.ts +2 -0
- package/js/src/abstract/bitcoincom.d.ts +2 -0
- package/js/src/abstract/bithumb.d.ts +5 -0
- package/js/src/abstract/coinmate.d.ts +12 -0
- package/js/src/abstract/fmfwio.d.ts +2 -0
- package/js/src/abstract/hitbtc.d.ts +2 -0
- package/js/src/abstract/hitbtc3.d.ts +2 -0
- package/js/src/abstract/hollaex.d.ts +3 -0
- package/js/src/abstract/okx.d.ts +1 -0
- package/js/src/base/Exchange.d.ts +9 -7
- package/js/src/base/ws/Cache.d.ts +5 -1
- package/js/src/base/ws/Cache.js +13 -5
- package/js/src/base/ws/OrderBook.d.ts +5 -1
- package/js/src/base/ws/OrderBook.js +3 -3
- package/js/src/binance.d.ts +1 -1
- package/js/src/binance.js +34 -12
- package/js/src/bitfinex2.js +1 -0
- package/js/src/bithumb.js +5 -0
- package/js/src/btcturk.js +11 -0
- package/js/src/bybit.d.ts +2 -0
- package/js/src/bybit.js +185 -2
- package/js/src/coinbase.js +9 -5
- package/js/src/coincheck.js +11 -0
- package/js/src/coinmate.d.ts +3 -1
- package/js/src/coinmate.js +114 -1
- package/js/src/coinsph.js +32 -1
- package/js/src/coinspot.js +7 -0
- package/js/src/cryptocom.js +2 -2
- package/js/src/currencycom.js +22 -0
- package/js/src/deribit.js +34 -1
- package/js/src/exmo.js +22 -0
- package/js/src/gemini.js +15 -0
- package/js/src/hitbtc.js +2 -0
- package/js/src/hollaex.js +27 -1
- package/js/src/idex.d.ts +14 -0
- package/js/src/idex.js +60 -1
- package/js/src/indodax.d.ts +3 -0
- package/js/src/indodax.js +106 -1
- package/js/src/latoken.js +3 -0
- package/js/src/mercado.js +3 -0
- package/js/src/oceanex.js +3 -0
- package/js/src/okx.js +1 -0
- package/js/src/pro/bitget.js +12 -8
- package/js/src/pro/bitmart.js +11 -11
- package/js/src/pro/bitmex.js +4 -4
- package/js/src/pro/cex.js +2 -2
- package/js/src/pro/gemini.js +4 -3
- package/js/src/timex.d.ts +14 -0
- package/js/src/timex.js +65 -0
- package/package.json +1 -1
- package/skip-tests.json +4 -0
package/dist/ccxt.browser.js
CHANGED
|
@@ -14674,6 +14674,7 @@ class BaseCache extends Array {
|
|
|
14674
14674
|
class ArrayCache extends BaseCache {
|
|
14675
14675
|
constructor(maxSize = undefined) {
|
|
14676
14676
|
super(maxSize);
|
|
14677
|
+
this.hashmap = {};
|
|
14677
14678
|
Object.defineProperty(this, 'nestedNewUpdatesBySymbol', {
|
|
14678
14679
|
__proto__: null,
|
|
14679
14680
|
value: false,
|
|
@@ -14699,6 +14700,12 @@ class ArrayCache extends BaseCache {
|
|
|
14699
14700
|
value: false,
|
|
14700
14701
|
writable: true,
|
|
14701
14702
|
});
|
|
14703
|
+
Object.defineProperty(this, 'hashmap', {
|
|
14704
|
+
__proto__: null,
|
|
14705
|
+
value: {},
|
|
14706
|
+
writable: true,
|
|
14707
|
+
enumerable: false,
|
|
14708
|
+
});
|
|
14702
14709
|
}
|
|
14703
14710
|
getLimit(symbol, limit) {
|
|
14704
14711
|
let newUpdatesValue = undefined;
|
|
@@ -14778,6 +14785,7 @@ class ArrayCacheByTimestamp extends BaseCache {
|
|
|
14778
14785
|
if (item[0] in this.hashmap) {
|
|
14779
14786
|
const reference = this.hashmap[item[0]];
|
|
14780
14787
|
if (reference !== item) {
|
|
14788
|
+
// eslint-disable-next-line
|
|
14781
14789
|
for (const prop in item) {
|
|
14782
14790
|
reference[prop] = item[prop];
|
|
14783
14791
|
}
|
|
@@ -14803,11 +14811,11 @@ class ArrayCacheBySymbolById extends ArrayCache {
|
|
|
14803
14811
|
constructor(maxSize = undefined) {
|
|
14804
14812
|
super(maxSize);
|
|
14805
14813
|
this.nestedNewUpdatesBySymbol = true;
|
|
14806
|
-
Object.defineProperty(this, 'hashmap', {
|
|
14807
|
-
|
|
14808
|
-
|
|
14809
|
-
|
|
14810
|
-
})
|
|
14814
|
+
// Object.defineProperty (this, 'hashmap', {
|
|
14815
|
+
// __proto__: null, // make it invisible
|
|
14816
|
+
// value: {},
|
|
14817
|
+
// writable: true,
|
|
14818
|
+
// })
|
|
14811
14819
|
}
|
|
14812
14820
|
append(item) {
|
|
14813
14821
|
const byId = this.hashmap[item.symbol] = this.hashmap[item.symbol] || {};
|
|
@@ -15270,18 +15278,18 @@ Future.race = (futures) => wrapFuture(Promise.race(futures));
|
|
|
15270
15278
|
/* harmony import */ var _base_functions_generic_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(927);
|
|
15271
15279
|
/* harmony import */ var _OrderBookSide_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(416);
|
|
15272
15280
|
/* eslint-disable max-classes-per-file */
|
|
15273
|
-
// @ts-nocheck
|
|
15281
|
+
// @ts-nocheck
|
|
15274
15282
|
|
|
15275
15283
|
|
|
15276
15284
|
|
|
15277
|
-
// ----------------------------------------------------------------------------
|
|
15278
|
-
// overwrites absolute volumes at price levels
|
|
15279
15285
|
class OrderBook {
|
|
15280
15286
|
constructor(snapshot = {}, depth = undefined) {
|
|
15287
|
+
this.cache = []; // make prop visible so we use typed OrderBooks
|
|
15281
15288
|
Object.defineProperty(this, 'cache', {
|
|
15282
15289
|
__proto__: null,
|
|
15283
15290
|
value: [],
|
|
15284
15291
|
writable: true,
|
|
15292
|
+
enumerable: false,
|
|
15285
15293
|
});
|
|
15286
15294
|
depth = depth || Number.MAX_SAFE_INTEGER;
|
|
15287
15295
|
const defaults = {
|
|
@@ -21209,25 +21217,38 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
21209
21217
|
account['debt'] = _base_Precise_js__WEBPACK_IMPORTED_MODULE_3__/* .Precise */ .O.stringAdd(debt, interest);
|
|
21210
21218
|
return account;
|
|
21211
21219
|
}
|
|
21212
|
-
parseBalanceCustom(response, type = undefined, marginMode = undefined) {
|
|
21220
|
+
parseBalanceCustom(response, type = undefined, marginMode = undefined, isPortfolioMargin = false) {
|
|
21213
21221
|
const result = {
|
|
21214
21222
|
'info': response,
|
|
21215
21223
|
};
|
|
21216
21224
|
let timestamp = undefined;
|
|
21217
21225
|
const isolated = marginMode === 'isolated';
|
|
21218
21226
|
const cross = (type === 'margin') || (marginMode === 'cross');
|
|
21219
|
-
if (
|
|
21227
|
+
if (isPortfolioMargin) {
|
|
21220
21228
|
for (let i = 0; i < response.length; i++) {
|
|
21221
21229
|
const entry = response[i];
|
|
21222
21230
|
const account = this.account();
|
|
21223
21231
|
const currencyId = this.safeString(entry, 'asset');
|
|
21224
21232
|
const code = this.safeCurrencyCode(currencyId);
|
|
21225
|
-
|
|
21226
|
-
|
|
21227
|
-
|
|
21228
|
-
|
|
21229
|
-
|
|
21230
|
-
|
|
21233
|
+
if (type === 'linear') {
|
|
21234
|
+
account['free'] = this.safeString(entry, 'umWalletBalance');
|
|
21235
|
+
account['used'] = this.safeString(entry, 'umUnrealizedPNL');
|
|
21236
|
+
}
|
|
21237
|
+
else if (type === 'inverse') {
|
|
21238
|
+
account['free'] = this.safeString(entry, 'cmWalletBalance');
|
|
21239
|
+
account['used'] = this.safeString(entry, 'cmUnrealizedPNL');
|
|
21240
|
+
}
|
|
21241
|
+
else if (cross) {
|
|
21242
|
+
const borrowed = this.safeString(entry, 'crossMarginBorrowed');
|
|
21243
|
+
const interest = this.safeString(entry, 'crossMarginInterest');
|
|
21244
|
+
account['debt'] = _base_Precise_js__WEBPACK_IMPORTED_MODULE_3__/* .Precise */ .O.stringAdd(borrowed, interest);
|
|
21245
|
+
account['free'] = this.safeString(entry, 'crossMarginFree');
|
|
21246
|
+
account['used'] = this.safeString(entry, 'crossMarginLocked');
|
|
21247
|
+
account['total'] = this.safeString(entry, 'crossMarginAsset');
|
|
21248
|
+
}
|
|
21249
|
+
else {
|
|
21250
|
+
account['total'] = this.safeString(entry, 'totalWalletBalance');
|
|
21251
|
+
}
|
|
21231
21252
|
result[code] = account;
|
|
21232
21253
|
}
|
|
21233
21254
|
}
|
|
@@ -21347,7 +21368,13 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
21347
21368
|
let response = undefined;
|
|
21348
21369
|
const request = {};
|
|
21349
21370
|
if (isPortfolioMargin || (type === 'papi')) {
|
|
21350
|
-
type
|
|
21371
|
+
if (this.isLinear(type, subType)) {
|
|
21372
|
+
type = 'linear';
|
|
21373
|
+
}
|
|
21374
|
+
else if (this.isInverse(type, subType)) {
|
|
21375
|
+
type = 'inverse';
|
|
21376
|
+
}
|
|
21377
|
+
isPortfolioMargin = true;
|
|
21351
21378
|
response = await this.papiGetBalance(this.extend(request, query));
|
|
21352
21379
|
}
|
|
21353
21380
|
else if (this.isLinear(type, subType)) {
|
|
@@ -21595,7 +21622,7 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
21595
21622
|
// },
|
|
21596
21623
|
// ]
|
|
21597
21624
|
//
|
|
21598
|
-
return this.parseBalanceCustom(response, type, marginMode);
|
|
21625
|
+
return this.parseBalanceCustom(response, type, marginMode, isPortfolioMargin);
|
|
21599
21626
|
}
|
|
21600
21627
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
21601
21628
|
/**
|
|
@@ -27878,12 +27905,12 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
27878
27905
|
/**
|
|
27879
27906
|
* @method
|
|
27880
27907
|
* @name binance#fetchPositions
|
|
27908
|
+
* @description fetch all open positions
|
|
27881
27909
|
* @see https://binance-docs.github.io/apidocs/futures/en/#position-information-v2-user_data
|
|
27882
27910
|
* @see https://binance-docs.github.io/apidocs/delivery/en/#position-information-user_data
|
|
27883
27911
|
* @see https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data
|
|
27884
27912
|
* @see https://binance-docs.github.io/apidocs/delivery/en/#account-information-user_data
|
|
27885
27913
|
* @see https://binance-docs.github.io/apidocs/voptions/en/#option-position-information-user_data
|
|
27886
|
-
* @description fetch all open positions
|
|
27887
27914
|
* @param {string[]} [symbols] list of unified market symbols
|
|
27888
27915
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
27889
27916
|
* @param {string} [method] method name to call, "positionRisk", "account" or "option", default is "positionRisk"
|
|
@@ -28107,7 +28134,10 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
28107
28134
|
const result = [];
|
|
28108
28135
|
for (let i = 0; i < response.length; i++) {
|
|
28109
28136
|
const parsed = this.parsePositionRisk(response[i]);
|
|
28110
|
-
|
|
28137
|
+
const entryPrice = this.safeString(parsed, 'entryPrice');
|
|
28138
|
+
if ((entryPrice !== '0') && (entryPrice !== '0.0') && (entryPrice !== '0.00000000')) {
|
|
28139
|
+
result.push(parsed);
|
|
28140
|
+
}
|
|
28111
28141
|
}
|
|
28112
28142
|
symbols = this.marketSymbols(symbols);
|
|
28113
28143
|
return this.filterByArrayPositions(result, 'symbol', symbols, false);
|
|
@@ -39898,6 +39928,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
39898
39928
|
'EDO': 'PNT',
|
|
39899
39929
|
'EUS': 'EURS',
|
|
39900
39930
|
'EUT': 'EURT',
|
|
39931
|
+
'HTX': 'HT',
|
|
39901
39932
|
'IDX': 'ID',
|
|
39902
39933
|
'IOT': 'IOTA',
|
|
39903
39934
|
'IQX': 'IQ',
|
|
@@ -53568,6 +53599,11 @@ class bithumb extends _abstract_bithumb_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
53568
53599
|
'orderbook/ALL_{quoteId}',
|
|
53569
53600
|
'orderbook/{baseId}_{quoteId}',
|
|
53570
53601
|
'transaction_history/{baseId}_{quoteId}',
|
|
53602
|
+
'network-info',
|
|
53603
|
+
'assetsstatus/multichain/ALL',
|
|
53604
|
+
'assetsstatus/multichain/{currency}',
|
|
53605
|
+
'withdraw/minimum/ALL',
|
|
53606
|
+
'withdraw/minimum/{currency}',
|
|
53571
53607
|
'assetsstatus/ALL',
|
|
53572
53608
|
'assetsstatus/{baseId}',
|
|
53573
53609
|
'candlestick/{baseId}_{quoteId}/{interval}',
|
|
@@ -82095,6 +82131,7 @@ class btcturk extends _abstract_btcturk_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
82095
82131
|
* @method
|
|
82096
82132
|
* @name btcturk#fetchMarkets
|
|
82097
82133
|
* @description retrieves data on all markets for btcturk
|
|
82134
|
+
* @see https://docs.btcturk.com/public-endpoints/exchange-info
|
|
82098
82135
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
82099
82136
|
* @returns {object[]} an array of objects representing market data
|
|
82100
82137
|
*/
|
|
@@ -82244,6 +82281,7 @@ class btcturk extends _abstract_btcturk_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
82244
82281
|
* @method
|
|
82245
82282
|
* @name btcturk#fetchBalance
|
|
82246
82283
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
82284
|
+
* @see https://docs.btcturk.com/private-endpoints/account-balance
|
|
82247
82285
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
82248
82286
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
82249
82287
|
*/
|
|
@@ -82272,6 +82310,7 @@ class btcturk extends _abstract_btcturk_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
82272
82310
|
* @method
|
|
82273
82311
|
* @name btcturk#fetchOrderBook
|
|
82274
82312
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
82313
|
+
* @see https://docs.btcturk.com/public-endpoints/orderbook
|
|
82275
82314
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
82276
82315
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
82277
82316
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -82352,6 +82391,7 @@ class btcturk extends _abstract_btcturk_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
82352
82391
|
* @method
|
|
82353
82392
|
* @name btcturk#fetchTickers
|
|
82354
82393
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
82394
|
+
* @see https://docs.btcturk.com/public-endpoints/ticker
|
|
82355
82395
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
82356
82396
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
82357
82397
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -82366,6 +82406,7 @@ class btcturk extends _abstract_btcturk_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
82366
82406
|
* @method
|
|
82367
82407
|
* @name btcturk#fetchTicker
|
|
82368
82408
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
82409
|
+
* @see https://docs.btcturk.com/public-endpoints/ticker
|
|
82369
82410
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
82370
82411
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
82371
82412
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -82441,6 +82482,7 @@ class btcturk extends _abstract_btcturk_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
82441
82482
|
* @method
|
|
82442
82483
|
* @name btcturk#fetchTrades
|
|
82443
82484
|
* @description get the list of most recent trades for a particular symbol
|
|
82485
|
+
* @see https://docs.btcturk.com/public-endpoints/trades
|
|
82444
82486
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
82445
82487
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
82446
82488
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -82604,6 +82646,7 @@ class btcturk extends _abstract_btcturk_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
82604
82646
|
* @method
|
|
82605
82647
|
* @name btcturk#createOrder
|
|
82606
82648
|
* @description create a trade order
|
|
82649
|
+
* @see https://docs.btcturk.com/private-endpoints/submit-order
|
|
82607
82650
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
82608
82651
|
* @param {string} type 'market' or 'limit'
|
|
82609
82652
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -82638,6 +82681,7 @@ class btcturk extends _abstract_btcturk_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
82638
82681
|
* @method
|
|
82639
82682
|
* @name btcturk#cancelOrder
|
|
82640
82683
|
* @description cancels an open order
|
|
82684
|
+
* @see https://docs.btcturk.com/private-endpoints/cancel-order
|
|
82641
82685
|
* @param {string} id order id
|
|
82642
82686
|
* @param {string} symbol not used by btcturk cancelOrder ()
|
|
82643
82687
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -82653,6 +82697,7 @@ class btcturk extends _abstract_btcturk_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
82653
82697
|
* @method
|
|
82654
82698
|
* @name btcturk#fetchOpenOrders
|
|
82655
82699
|
* @description fetch all unfilled currently open orders
|
|
82700
|
+
* @see https://docs.btcturk.com/private-endpoints/open-orders
|
|
82656
82701
|
* @param {string} symbol unified market symbol
|
|
82657
82702
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
82658
82703
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -82677,6 +82722,7 @@ class btcturk extends _abstract_btcturk_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
82677
82722
|
* @method
|
|
82678
82723
|
* @name btcturk#fetchOrders
|
|
82679
82724
|
* @description fetches information on multiple orders made by the user
|
|
82725
|
+
* @see https://docs.btcturk.com/private-endpoints/all-orders
|
|
82680
82726
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
82681
82727
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
82682
82728
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -82799,6 +82845,7 @@ class btcturk extends _abstract_btcturk_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
82799
82845
|
* @method
|
|
82800
82846
|
* @name btcturk#fetchMyTrades
|
|
82801
82847
|
* @description fetch all trades made by the user
|
|
82848
|
+
* @see https://docs.btcturk.com/private-endpoints/user-transactions
|
|
82802
82849
|
* @param {string} symbol unified market symbol
|
|
82803
82850
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
82804
82851
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -87370,11 +87417,194 @@ class bybit extends _abstract_bybit_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
|
|
|
87370
87417
|
const data = this.safeValue(result, 'dataList', []);
|
|
87371
87418
|
return this.parseOrders(data, market, since, limit);
|
|
87372
87419
|
}
|
|
87420
|
+
async fetchOrderClassic(id, symbol = undefined, params = {}) {
|
|
87421
|
+
/**
|
|
87422
|
+
* @method
|
|
87423
|
+
* @name bybit#fetchOrderClassic
|
|
87424
|
+
* @description fetches information on an order made by the user *classic accounts only*
|
|
87425
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/order-list
|
|
87426
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
87427
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
87428
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
87429
|
+
*/
|
|
87430
|
+
if (symbol === undefined) {
|
|
87431
|
+
throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_1__.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
87432
|
+
}
|
|
87433
|
+
await this.loadMarkets();
|
|
87434
|
+
const market = this.market(symbol);
|
|
87435
|
+
if (market['spot']) {
|
|
87436
|
+
throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_1__.NotSupported(this.id + ' fetchOrder() is not supported for spot markets');
|
|
87437
|
+
}
|
|
87438
|
+
const request = {
|
|
87439
|
+
'orderId': id,
|
|
87440
|
+
};
|
|
87441
|
+
const result = await this.fetchOrders(symbol, undefined, undefined, this.extend(request, params));
|
|
87442
|
+
const length = result.length;
|
|
87443
|
+
if (length === 0) {
|
|
87444
|
+
const isTrigger = this.safeBoolN(params, ['trigger', 'stop'], false);
|
|
87445
|
+
const extra = isTrigger ? '' : 'If you are trying to fetch SL/TP conditional order, you might try setting params["trigger"] = true';
|
|
87446
|
+
throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_1__.OrderNotFound('Order ' + id.toString() + ' was not found.' + extra);
|
|
87447
|
+
}
|
|
87448
|
+
if (length > 1) {
|
|
87449
|
+
throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_1__.InvalidOrder(this.id + ' returned more than one order');
|
|
87450
|
+
}
|
|
87451
|
+
return this.safeValue(result, 0);
|
|
87452
|
+
}
|
|
87373
87453
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
87374
|
-
|
|
87454
|
+
/**
|
|
87455
|
+
* @method
|
|
87456
|
+
* @name bybit#fetchOrderClassic
|
|
87457
|
+
* @description *classic accounts only/ spot not supported* fetches information on an order made by the user *classic accounts only*
|
|
87458
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/order-list
|
|
87459
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
87460
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
87461
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
87462
|
+
*/
|
|
87463
|
+
const res = await this.isUnifiedEnabled();
|
|
87464
|
+
const enableUnifiedAccount = this.safeBool(res, 1);
|
|
87465
|
+
if (enableUnifiedAccount) {
|
|
87466
|
+
throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_1__.NotSupported(this.id + ' fetchOrder() is not supported after the 5/02 update for UTA accounts, please use fetchOpenOrder or fetchClosedOrder');
|
|
87467
|
+
}
|
|
87468
|
+
return await this.fetchOrderClassic(id, symbol, params);
|
|
87375
87469
|
}
|
|
87376
87470
|
async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
87377
|
-
|
|
87471
|
+
const res = await this.isUnifiedEnabled();
|
|
87472
|
+
/**
|
|
87473
|
+
* @method
|
|
87474
|
+
* @name bybit#fetchOrders
|
|
87475
|
+
* @description *classic accounts only/ spot not supported* fetches information on multiple orders made by the user *classic accounts only/ spot not supported*
|
|
87476
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/order-list
|
|
87477
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
87478
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
87479
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
87480
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
87481
|
+
* @param {boolean} [params.stop] true if stop order
|
|
87482
|
+
* @param {string} [params.type] market type, ['swap', 'option']
|
|
87483
|
+
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
87484
|
+
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
87485
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
87486
|
+
* @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)
|
|
87487
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
87488
|
+
*/
|
|
87489
|
+
const enableUnifiedAccount = this.safeBool(res, 1);
|
|
87490
|
+
if (enableUnifiedAccount) {
|
|
87491
|
+
throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_1__.NotSupported(this.id + ' fetchOrders() is not supported after the 5/02 update for UTA accounts, please use fetchOpenOrders, fetchClosedOrders or fetchCanceledOrders');
|
|
87492
|
+
}
|
|
87493
|
+
return await this.fetchOrdersClassic(symbol, since, limit, params);
|
|
87494
|
+
}
|
|
87495
|
+
async fetchOrdersClassic(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
87496
|
+
/**
|
|
87497
|
+
* @method
|
|
87498
|
+
* @name bybit#fetchOrders
|
|
87499
|
+
* @description fetches information on multiple orders made by the user *classic accounts only*
|
|
87500
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/order-list
|
|
87501
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
87502
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
87503
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
87504
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
87505
|
+
* @param {boolean} [params.stop] true if stop order
|
|
87506
|
+
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
87507
|
+
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
87508
|
+
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
87509
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
87510
|
+
* @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)
|
|
87511
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
87512
|
+
*/
|
|
87513
|
+
await this.loadMarkets();
|
|
87514
|
+
let paginate = false;
|
|
87515
|
+
[paginate, params] = this.handleOptionAndParams(params, 'fetchOrders', 'paginate');
|
|
87516
|
+
if (paginate) {
|
|
87517
|
+
return await this.fetchPaginatedCallCursor('fetchOrders', symbol, since, limit, params, 'nextPageCursor', 'nextPageCursor', undefined, 50);
|
|
87518
|
+
}
|
|
87519
|
+
const [enableUnifiedMargin, enableUnifiedAccount] = await this.isUnifiedEnabled();
|
|
87520
|
+
const isUnifiedAccount = (enableUnifiedMargin || enableUnifiedAccount);
|
|
87521
|
+
const request = {};
|
|
87522
|
+
let market = undefined;
|
|
87523
|
+
let isUsdcSettled = false;
|
|
87524
|
+
if (symbol !== undefined) {
|
|
87525
|
+
market = this.market(symbol);
|
|
87526
|
+
isUsdcSettled = market['settle'] === 'USDC';
|
|
87527
|
+
request['symbol'] = market['id'];
|
|
87528
|
+
}
|
|
87529
|
+
let type = undefined;
|
|
87530
|
+
[type, params] = this.getBybitType('fetchOrders', market, params);
|
|
87531
|
+
if (((type === 'option') || isUsdcSettled) && !isUnifiedAccount) {
|
|
87532
|
+
return await this.fetchUsdcOrders(symbol, since, limit, params);
|
|
87533
|
+
}
|
|
87534
|
+
if (type === 'spot') {
|
|
87535
|
+
throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_1__.NotSupported(this.id + ' fetchOrders() is not supported for spot markets');
|
|
87536
|
+
}
|
|
87537
|
+
request['category'] = type;
|
|
87538
|
+
const isStop = this.safeBoolN(params, ['trigger', 'stop'], false);
|
|
87539
|
+
params = this.omit(params, ['trigger', 'stop']);
|
|
87540
|
+
if (isStop) {
|
|
87541
|
+
request['orderFilter'] = 'StopOrder';
|
|
87542
|
+
}
|
|
87543
|
+
if (limit !== undefined) {
|
|
87544
|
+
request['limit'] = limit;
|
|
87545
|
+
}
|
|
87546
|
+
if (since !== undefined) {
|
|
87547
|
+
request['startTime'] = since;
|
|
87548
|
+
}
|
|
87549
|
+
const until = this.safeInteger2(params, 'until', 'till'); // unified in milliseconds
|
|
87550
|
+
const endTime = this.safeInteger(params, 'endTime', until); // exchange-specific in milliseconds
|
|
87551
|
+
params = this.omit(params, ['endTime', 'till', 'until']);
|
|
87552
|
+
if (endTime !== undefined) {
|
|
87553
|
+
request['endTime'] = endTime;
|
|
87554
|
+
}
|
|
87555
|
+
const response = await this.privateGetV5OrderHistory(this.extend(request, params));
|
|
87556
|
+
//
|
|
87557
|
+
// {
|
|
87558
|
+
// "retCode": 0,
|
|
87559
|
+
// "retMsg": "OK",
|
|
87560
|
+
// "result": {
|
|
87561
|
+
// "nextPageCursor": "03234de9-1332-41eb-b805-4a9f42c136a3%3A1672220109387%2C03234de9-1332-41eb-b805-4a9f42c136a3%3A1672220109387",
|
|
87562
|
+
// "category": "linear",
|
|
87563
|
+
// "list": [
|
|
87564
|
+
// {
|
|
87565
|
+
// "symbol": "BTCUSDT",
|
|
87566
|
+
// "orderType": "Limit",
|
|
87567
|
+
// "orderLinkId": "test-001",
|
|
87568
|
+
// "orderId": "03234de9-1332-41eb-b805-4a9f42c136a3",
|
|
87569
|
+
// "cancelType": "CancelByUser",
|
|
87570
|
+
// "avgPrice": "0",
|
|
87571
|
+
// "stopOrderType": "UNKNOWN",
|
|
87572
|
+
// "lastPriceOnCreated": "16656.5",
|
|
87573
|
+
// "orderStatus": "Cancelled",
|
|
87574
|
+
// "takeProfit": "",
|
|
87575
|
+
// "cumExecValue": "0",
|
|
87576
|
+
// "triggerDirection": 0,
|
|
87577
|
+
// "blockTradeId": "",
|
|
87578
|
+
// "rejectReason": "EC_PerCancelRequest",
|
|
87579
|
+
// "isLeverage": "",
|
|
87580
|
+
// "price": "18000",
|
|
87581
|
+
// "orderIv": "",
|
|
87582
|
+
// "createdTime": "1672220109387",
|
|
87583
|
+
// "tpTriggerBy": "UNKNOWN",
|
|
87584
|
+
// "positionIdx": 0,
|
|
87585
|
+
// "timeInForce": "GoodTillCancel",
|
|
87586
|
+
// "leavesValue": "0",
|
|
87587
|
+
// "updatedTime": "1672220114123",
|
|
87588
|
+
// "side": "Sell",
|
|
87589
|
+
// "triggerPrice": "",
|
|
87590
|
+
// "cumExecFee": "0",
|
|
87591
|
+
// "slTriggerBy": "UNKNOWN",
|
|
87592
|
+
// "leavesQty": "0",
|
|
87593
|
+
// "closeOnTrigger": false,
|
|
87594
|
+
// "cumExecQty": "0",
|
|
87595
|
+
// "reduceOnly": false,
|
|
87596
|
+
// "qty": "0.1",
|
|
87597
|
+
// "stopLoss": "",
|
|
87598
|
+
// "triggerBy": "UNKNOWN"
|
|
87599
|
+
// }
|
|
87600
|
+
// ]
|
|
87601
|
+
// },
|
|
87602
|
+
// "retExtInfo": {},
|
|
87603
|
+
// "time": 1672221263862
|
|
87604
|
+
// }
|
|
87605
|
+
//
|
|
87606
|
+
const data = this.addPaginationCursorToResult(response);
|
|
87607
|
+
return this.parseOrders(data, market, since, limit);
|
|
87378
87608
|
}
|
|
87379
87609
|
async fetchClosedOrder(id, symbol = undefined, params = {}) {
|
|
87380
87610
|
/**
|
|
@@ -92394,6 +92624,8 @@ class coinbase extends _abstract_coinbase_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
92394
92624
|
'fetchCrossBorrowRate': false,
|
|
92395
92625
|
'fetchCrossBorrowRates': false,
|
|
92396
92626
|
'fetchCurrencies': true,
|
|
92627
|
+
'fetchDepositAddress': 'emulated',
|
|
92628
|
+
'fetchDepositAddresses': false,
|
|
92397
92629
|
'fetchDepositAddressesByNetwork': true,
|
|
92398
92630
|
'fetchDeposits': true,
|
|
92399
92631
|
'fetchFundingHistory': false,
|
|
@@ -94072,17 +94304,18 @@ class coinbase extends _abstract_coinbase_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
94072
94304
|
* @see https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-accounts#list-accounts
|
|
94073
94305
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
94074
94306
|
* @param {boolean} [params.v3] default false, set true to use v3 api endpoint
|
|
94307
|
+
* @param {object} [params.type] "spot" (default) or "swap"
|
|
94075
94308
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
94076
94309
|
*/
|
|
94077
94310
|
await this.loadMarkets();
|
|
94078
|
-
const request = {
|
|
94079
|
-
'limit': 250,
|
|
94080
|
-
};
|
|
94311
|
+
const request = {};
|
|
94081
94312
|
let response = undefined;
|
|
94082
94313
|
const isV3 = this.safeBool(params, 'v3', false);
|
|
94083
|
-
|
|
94314
|
+
const type = this.safeString(params, 'type');
|
|
94315
|
+
params = this.omit(params, ['v3', 'type']);
|
|
94084
94316
|
const method = this.safeString(this.options, 'fetchBalance', 'v3PrivateGetBrokerageAccounts');
|
|
94085
94317
|
if ((isV3) || (method === 'v3PrivateGetBrokerageAccounts')) {
|
|
94318
|
+
request['limit'] = 250;
|
|
94086
94319
|
response = await this.v3PrivateGetBrokerageAccounts(this.extend(request, params));
|
|
94087
94320
|
}
|
|
94088
94321
|
else {
|
|
@@ -94159,6 +94392,7 @@ class coinbase extends _abstract_coinbase_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
94159
94392
|
// "size": 9
|
|
94160
94393
|
// }
|
|
94161
94394
|
//
|
|
94395
|
+
params['type'] = type;
|
|
94162
94396
|
return this.parseCustomBalance(response, params);
|
|
94163
94397
|
}
|
|
94164
94398
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
@@ -95733,7 +95967,7 @@ class coinbase extends _abstract_coinbase_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
95733
95967
|
async fetchDepositAddressesByNetwork(code, params = {}) {
|
|
95734
95968
|
/**
|
|
95735
95969
|
* @method
|
|
95736
|
-
* @name
|
|
95970
|
+
* @name coinbase#fetchDepositAddress
|
|
95737
95971
|
* @description fetch the deposit address for a currency associated with this account
|
|
95738
95972
|
* @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_postcoinbaseaccountaddresses
|
|
95739
95973
|
* @param {string} code unified currency code
|
|
@@ -98047,6 +98281,7 @@ class coincheck extends _abstract_coincheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
98047
98281
|
* @method
|
|
98048
98282
|
* @name coincheck#fetchBalance
|
|
98049
98283
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
98284
|
+
* @see https://coincheck.com/documents/exchange/api#order-transactions-pagination
|
|
98050
98285
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
98051
98286
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
98052
98287
|
*/
|
|
@@ -98059,6 +98294,7 @@ class coincheck extends _abstract_coincheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
98059
98294
|
* @method
|
|
98060
98295
|
* @name coincheck#fetchOpenOrders
|
|
98061
98296
|
* @description fetch all unfilled currently open orders
|
|
98297
|
+
* @see https://coincheck.com/documents/exchange/api#order-opens
|
|
98062
98298
|
* @param {string} symbol unified market symbol
|
|
98063
98299
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
98064
98300
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -98134,6 +98370,7 @@ class coincheck extends _abstract_coincheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
98134
98370
|
* @method
|
|
98135
98371
|
* @name coincheck#fetchOrderBook
|
|
98136
98372
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
98373
|
+
* @see https://coincheck.com/documents/exchange/api#order-book
|
|
98137
98374
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
98138
98375
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
98139
98376
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -98190,6 +98427,7 @@ class coincheck extends _abstract_coincheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
98190
98427
|
* @method
|
|
98191
98428
|
* @name coincheck#fetchTicker
|
|
98192
98429
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
98430
|
+
* @see https://coincheck.com/documents/exchange/api#ticker
|
|
98193
98431
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
98194
98432
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
98195
98433
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -98303,6 +98541,7 @@ class coincheck extends _abstract_coincheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
98303
98541
|
* @method
|
|
98304
98542
|
* @name coincheck#fetchMyTrades
|
|
98305
98543
|
* @description fetch all trades made by the user
|
|
98544
|
+
* @see https://coincheck.com/documents/exchange/api#order-transactions-pagination
|
|
98306
98545
|
* @param {string} symbol unified market symbol
|
|
98307
98546
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
98308
98547
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -98346,6 +98585,7 @@ class coincheck extends _abstract_coincheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
98346
98585
|
* @method
|
|
98347
98586
|
* @name coincheck#fetchTrades
|
|
98348
98587
|
* @description get the list of most recent trades for a particular symbol
|
|
98588
|
+
* @see https://coincheck.com/documents/exchange/api#public-trades
|
|
98349
98589
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
98350
98590
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
98351
98591
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -98379,6 +98619,7 @@ class coincheck extends _abstract_coincheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
98379
98619
|
* @method
|
|
98380
98620
|
* @name coincheck#fetchTradingFees
|
|
98381
98621
|
* @description fetch the trading fees for multiple markets
|
|
98622
|
+
* @see https://coincheck.com/documents/exchange/api#account-info
|
|
98382
98623
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
98383
98624
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
98384
98625
|
*/
|
|
@@ -98425,6 +98666,7 @@ class coincheck extends _abstract_coincheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
98425
98666
|
* @method
|
|
98426
98667
|
* @name coincheck#createOrder
|
|
98427
98668
|
* @description create a trade order
|
|
98669
|
+
* @see https://coincheck.com/documents/exchange/api#order-new
|
|
98428
98670
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
98429
98671
|
* @param {string} type 'market' or 'limit'
|
|
98430
98672
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -98461,6 +98703,7 @@ class coincheck extends _abstract_coincheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
98461
98703
|
* @method
|
|
98462
98704
|
* @name coincheck#cancelOrder
|
|
98463
98705
|
* @description cancels an open order
|
|
98706
|
+
* @see https://coincheck.com/documents/exchange/api#order-cancel
|
|
98464
98707
|
* @param {string} id order id
|
|
98465
98708
|
* @param {string} symbol not used by coincheck cancelOrder ()
|
|
98466
98709
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -98476,6 +98719,7 @@ class coincheck extends _abstract_coincheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
98476
98719
|
* @method
|
|
98477
98720
|
* @name coincheck#fetchDeposits
|
|
98478
98721
|
* @description fetch all deposits made to an account
|
|
98722
|
+
* @see https://coincheck.com/documents/exchange/api#account-deposits
|
|
98479
98723
|
* @param {string} code unified currency code
|
|
98480
98724
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
98481
98725
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
@@ -98524,6 +98768,7 @@ class coincheck extends _abstract_coincheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
98524
98768
|
* @method
|
|
98525
98769
|
* @name coincheck#fetchWithdrawals
|
|
98526
98770
|
* @description fetch all withdrawals made from an account
|
|
98771
|
+
* @see https://coincheck.com/documents/exchange/api#withdraws
|
|
98527
98772
|
* @param {string} code unified currency code
|
|
98528
98773
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
98529
98774
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -106597,6 +106842,7 @@ class coinmate extends _abstract_coinmate_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
106597
106842
|
'fetchPositionsRisk': false,
|
|
106598
106843
|
'fetchPremiumIndexOHLCV': false,
|
|
106599
106844
|
'fetchTicker': true,
|
|
106845
|
+
'fetchTickers': true,
|
|
106600
106846
|
'fetchTrades': true,
|
|
106601
106847
|
'fetchTradingFee': true,
|
|
106602
106848
|
'fetchTradingFees': false,
|
|
@@ -106631,6 +106877,8 @@ class coinmate extends _abstract_coinmate_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
106631
106877
|
'get': [
|
|
106632
106878
|
'orderBook',
|
|
106633
106879
|
'ticker',
|
|
106880
|
+
'tickerAll',
|
|
106881
|
+
'products',
|
|
106634
106882
|
'transactions',
|
|
106635
106883
|
'tradingPairs',
|
|
106636
106884
|
],
|
|
@@ -106679,6 +106927,16 @@ class coinmate extends _abstract_coinmate_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
106679
106927
|
'unconfirmedEthereumDeposits',
|
|
106680
106928
|
'unconfirmedLitecoinDeposits',
|
|
106681
106929
|
'unconfirmedRippleDeposits',
|
|
106930
|
+
'cancelAllOpenOrders',
|
|
106931
|
+
'withdrawVirtualCurrency',
|
|
106932
|
+
'virtualCurrencyDepositAddresses',
|
|
106933
|
+
'unconfirmedVirtualCurrencyDeposits',
|
|
106934
|
+
'adaWithdrawal',
|
|
106935
|
+
'adaDepositAddresses',
|
|
106936
|
+
'unconfirmedAdaDeposits',
|
|
106937
|
+
'solWithdrawal',
|
|
106938
|
+
'solDepositAddresses',
|
|
106939
|
+
'unconfirmedSolDeposits',
|
|
106682
106940
|
],
|
|
106683
106941
|
},
|
|
106684
106942
|
},
|
|
@@ -106723,6 +106981,8 @@ class coinmate extends _abstract_coinmate_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
106723
106981
|
'XRP': 'privatePostRippleWithdrawal',
|
|
106724
106982
|
'DASH': 'privatePostDashWithdrawal',
|
|
106725
106983
|
'DAI': 'privatePostDaiWithdrawal',
|
|
106984
|
+
'ADA': 'privatePostAdaWithdrawal',
|
|
106985
|
+
'SOL': 'privatePostSolWithdrawal',
|
|
106726
106986
|
},
|
|
106727
106987
|
},
|
|
106728
106988
|
},
|
|
@@ -106747,6 +107007,7 @@ class coinmate extends _abstract_coinmate_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
106747
107007
|
* @method
|
|
106748
107008
|
* @name coinmate#fetchMarkets
|
|
106749
107009
|
* @description retrieves data on all markets for coinmate
|
|
107010
|
+
* @see https://coinmate.docs.apiary.io/#reference/trading-pairs/get-trading-pairs/get
|
|
106750
107011
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
106751
107012
|
* @returns {object[]} an array of objects representing market data
|
|
106752
107013
|
*/
|
|
@@ -106853,6 +107114,7 @@ class coinmate extends _abstract_coinmate_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
106853
107114
|
* @method
|
|
106854
107115
|
* @name coinmate#fetchBalance
|
|
106855
107116
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
107117
|
+
* @see https://coinmate.docs.apiary.io/#reference/balance/get-balances/post
|
|
106856
107118
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
106857
107119
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
106858
107120
|
*/
|
|
@@ -106865,6 +107127,7 @@ class coinmate extends _abstract_coinmate_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
106865
107127
|
* @method
|
|
106866
107128
|
* @name coinmate#fetchOrderBook
|
|
106867
107129
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
107130
|
+
* @see https://coinmate.docs.apiary.io/#reference/order-book/get-order-book/get
|
|
106868
107131
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
106869
107132
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
106870
107133
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -106886,6 +107149,7 @@ class coinmate extends _abstract_coinmate_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
106886
107149
|
* @method
|
|
106887
107150
|
* @name coinmate#fetchTicker
|
|
106888
107151
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
107152
|
+
* @see https://coinmate.docs.apiary.io/#reference/ticker/get-ticker/get
|
|
106889
107153
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
106890
107154
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
106891
107155
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -106896,7 +107160,82 @@ class coinmate extends _abstract_coinmate_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
106896
107160
|
'currencyPair': market['id'],
|
|
106897
107161
|
};
|
|
106898
107162
|
const response = await this.publicGetTicker(this.extend(request, params));
|
|
106899
|
-
|
|
107163
|
+
//
|
|
107164
|
+
// {
|
|
107165
|
+
// "error": false,
|
|
107166
|
+
// "errorMessage": null,
|
|
107167
|
+
// "data": {
|
|
107168
|
+
// "last": 0.55105,
|
|
107169
|
+
// "high": 0.56439,
|
|
107170
|
+
// "low": 0.54358,
|
|
107171
|
+
// "amount": 37038.993381,
|
|
107172
|
+
// "bid": 0.54595,
|
|
107173
|
+
// "ask": 0.55324,
|
|
107174
|
+
// "change": 3.03659243,
|
|
107175
|
+
// "open": 0.53481,
|
|
107176
|
+
// "timestamp": 1708074779
|
|
107177
|
+
// }
|
|
107178
|
+
// }
|
|
107179
|
+
//
|
|
107180
|
+
const data = this.safeValue(response, 'data');
|
|
107181
|
+
return this.parseTicker(data, market);
|
|
107182
|
+
}
|
|
107183
|
+
async fetchTickers(symbols = undefined, params = {}) {
|
|
107184
|
+
/**
|
|
107185
|
+
* @method
|
|
107186
|
+
* @name coinmate#fetchTickers
|
|
107187
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
107188
|
+
* @see https://coinmate.docs.apiary.io/#reference/ticker/get-ticker-all/get
|
|
107189
|
+
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
107190
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
107191
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
107192
|
+
*/
|
|
107193
|
+
await this.loadMarkets();
|
|
107194
|
+
symbols = this.marketSymbols(symbols);
|
|
107195
|
+
const response = await this.publicGetTickerAll(params);
|
|
107196
|
+
//
|
|
107197
|
+
// {
|
|
107198
|
+
// "error": false,
|
|
107199
|
+
// "errorMessage": null,
|
|
107200
|
+
// "data": {
|
|
107201
|
+
// "LTC_BTC": {
|
|
107202
|
+
// "last": "0.001337",
|
|
107203
|
+
// "high": "0.001348",
|
|
107204
|
+
// "low": "0.001332",
|
|
107205
|
+
// "amount": "34.75472959",
|
|
107206
|
+
// "bid": "0.001348",
|
|
107207
|
+
// "ask": "0.001356",
|
|
107208
|
+
// "change": "-0.74239050",
|
|
107209
|
+
// "open": "0.001347",
|
|
107210
|
+
// "timestamp": "1708074485"
|
|
107211
|
+
// }
|
|
107212
|
+
// }
|
|
107213
|
+
// }
|
|
107214
|
+
//
|
|
107215
|
+
const data = this.safeValue(response, 'data', {});
|
|
107216
|
+
const keys = Object.keys(data);
|
|
107217
|
+
const result = {};
|
|
107218
|
+
for (let i = 0; i < keys.length; i++) {
|
|
107219
|
+
const market = this.market(keys[i]);
|
|
107220
|
+
const ticker = this.parseTicker(this.safeValue(data, keys[i]), market);
|
|
107221
|
+
result[market['symbol']] = ticker;
|
|
107222
|
+
}
|
|
107223
|
+
return this.filterByArrayTickers(result, 'symbol', symbols);
|
|
107224
|
+
}
|
|
107225
|
+
parseTicker(ticker, market = undefined) {
|
|
107226
|
+
//
|
|
107227
|
+
// {
|
|
107228
|
+
// "last": "0.001337",
|
|
107229
|
+
// "high": "0.001348",
|
|
107230
|
+
// "low": "0.001332",
|
|
107231
|
+
// "amount": "34.75472959",
|
|
107232
|
+
// "bid": "0.001348",
|
|
107233
|
+
// "ask": "0.001356",
|
|
107234
|
+
// "change": "-0.74239050",
|
|
107235
|
+
// "open": "0.001347",
|
|
107236
|
+
// "timestamp": "1708074485"
|
|
107237
|
+
// }
|
|
107238
|
+
//
|
|
106900
107239
|
const timestamp = this.safeTimestamp(ticker, 'timestamp');
|
|
106901
107240
|
const last = this.safeNumber(ticker, 'last');
|
|
106902
107241
|
return this.safeTicker({
|
|
@@ -106927,6 +107266,7 @@ class coinmate extends _abstract_coinmate_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
106927
107266
|
* @method
|
|
106928
107267
|
* @name coinmate#fetchDepositsWithdrawals
|
|
106929
107268
|
* @description fetch history of deposits and withdrawals
|
|
107269
|
+
* @see https://coinmate.docs.apiary.io/#reference/transfers/get-transfer-history/post
|
|
106930
107270
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
106931
107271
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
106932
107272
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
@@ -107039,6 +107379,12 @@ class coinmate extends _abstract_coinmate_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
107039
107379
|
* @method
|
|
107040
107380
|
* @name coinmate#withdraw
|
|
107041
107381
|
* @description make a withdrawal
|
|
107382
|
+
* @see https://coinmate.docs.apiary.io/#reference/bitcoin-withdrawal-and-deposit/withdraw-bitcoins/post
|
|
107383
|
+
* @see https://coinmate.docs.apiary.io/#reference/litecoin-withdrawal-and-deposit/withdraw-litecoins/post
|
|
107384
|
+
* @see https://coinmate.docs.apiary.io/#reference/ethereum-withdrawal-and-deposit/withdraw-ethereum/post
|
|
107385
|
+
* @see https://coinmate.docs.apiary.io/#reference/ripple-withdrawal-and-deposit/withdraw-ripple/post
|
|
107386
|
+
* @see https://coinmate.docs.apiary.io/#reference/cardano-withdrawal-and-deposit/withdraw-cardano/post
|
|
107387
|
+
* @see https://coinmate.docs.apiary.io/#reference/solana-withdrawal-and-deposit/withdraw-solana/post
|
|
107042
107388
|
* @param {string} code unified currency code
|
|
107043
107389
|
* @param {float} amount the amount to withdraw
|
|
107044
107390
|
* @param {string} address the address to withdraw to
|
|
@@ -107092,6 +107438,7 @@ class coinmate extends _abstract_coinmate_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
107092
107438
|
* @method
|
|
107093
107439
|
* @name coinmate#fetchMyTrades
|
|
107094
107440
|
* @description fetch all trades made by the user
|
|
107441
|
+
* @see https://coinmate.docs.apiary.io/#reference/trade-history/get-trade-history/post
|
|
107095
107442
|
* @param {string} symbol unified market symbol
|
|
107096
107443
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
107097
107444
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -107184,6 +107531,7 @@ class coinmate extends _abstract_coinmate_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
107184
107531
|
* @method
|
|
107185
107532
|
* @name coinmate#fetchTrades
|
|
107186
107533
|
* @description get the list of most recent trades for a particular symbol
|
|
107534
|
+
* @see https://coinmate.docs.apiary.io/#reference/transactions/transactions/get
|
|
107187
107535
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
107188
107536
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
107189
107537
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -107221,6 +107569,7 @@ class coinmate extends _abstract_coinmate_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
107221
107569
|
* @method
|
|
107222
107570
|
* @name coinmate#fetchTradingFee
|
|
107223
107571
|
* @description fetch the trading fees for a market
|
|
107572
|
+
* @see https://coinmate.docs.apiary.io/#reference/trader-fees/get-trading-fees/post
|
|
107224
107573
|
* @param {string} symbol unified market symbol
|
|
107225
107574
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
107226
107575
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
@@ -107257,6 +107606,7 @@ class coinmate extends _abstract_coinmate_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
107257
107606
|
* @method
|
|
107258
107607
|
* @name coinmate#fetchOpenOrders
|
|
107259
107608
|
* @description fetch all unfilled currently open orders
|
|
107609
|
+
* @see https://coinmate.docs.apiary.io/#reference/order/get-open-orders/post
|
|
107260
107610
|
* @param {string} symbol unified market symbol
|
|
107261
107611
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
107262
107612
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -107272,6 +107622,7 @@ class coinmate extends _abstract_coinmate_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
107272
107622
|
* @method
|
|
107273
107623
|
* @name coinmate#fetchOrders
|
|
107274
107624
|
* @description fetches information on multiple orders made by the user
|
|
107625
|
+
* @see https://coinmate.docs.apiary.io/#reference/order/order-history/post
|
|
107275
107626
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
107276
107627
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
107277
107628
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -107395,6 +107746,10 @@ class coinmate extends _abstract_coinmate_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
107395
107746
|
* @method
|
|
107396
107747
|
* @name coinmate#createOrder
|
|
107397
107748
|
* @description create a trade order
|
|
107749
|
+
* @see https://coinmate.docs.apiary.io/#reference/order/buy-limit-order/post
|
|
107750
|
+
* @see https://coinmate.docs.apiary.io/#reference/order/sell-limit-order/post
|
|
107751
|
+
* @see https://coinmate.docs.apiary.io/#reference/order/buy-instant-order/post
|
|
107752
|
+
* @see https://coinmate.docs.apiary.io/#reference/order/sell-instant-order/post
|
|
107398
107753
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
107399
107754
|
* @param {string} type 'market' or 'limit'
|
|
107400
107755
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -107435,6 +107790,8 @@ class coinmate extends _abstract_coinmate_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
107435
107790
|
* @method
|
|
107436
107791
|
* @name coinmate#fetchOrder
|
|
107437
107792
|
* @description fetches information on an order made by the user
|
|
107793
|
+
* @see https://coinmate.docs.apiary.io/#reference/order/get-order-by-orderid/post
|
|
107794
|
+
* @see https://coinmate.docs.apiary.io/#reference/order/get-order-by-clientorderid/post
|
|
107438
107795
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
107439
107796
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
107440
107797
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -107456,6 +107813,7 @@ class coinmate extends _abstract_coinmate_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
107456
107813
|
* @method
|
|
107457
107814
|
* @name coinmate#cancelOrder
|
|
107458
107815
|
* @description cancels an open order
|
|
107816
|
+
* @see https://coinmate.docs.apiary.io/#reference/order/cancel-order/post
|
|
107459
107817
|
* @param {string} id order id
|
|
107460
107818
|
* @param {string} symbol not used by coinmate cancelOrder ()
|
|
107461
107819
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -111097,6 +111455,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
111097
111455
|
* @method
|
|
111098
111456
|
* @name coinsph#fetchStatus
|
|
111099
111457
|
* @description the latest known information on the availability of the exchange API
|
|
111458
|
+
* @see https://coins-docs.github.io/rest-api/#test-connectivity
|
|
111100
111459
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
111101
111460
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
111102
111461
|
*/
|
|
@@ -111114,6 +111473,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
111114
111473
|
* @method
|
|
111115
111474
|
* @name coinsph#fetchTime
|
|
111116
111475
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
111476
|
+
* @see https://coins-docs.github.io/rest-api/#check-server-time
|
|
111117
111477
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
111118
111478
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
111119
111479
|
*/
|
|
@@ -111128,6 +111488,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
111128
111488
|
* @method
|
|
111129
111489
|
* @name coinsph#fetchMarkets
|
|
111130
111490
|
* @description retrieves data on all markets for coinsph
|
|
111491
|
+
* @see https://coins-docs.github.io/rest-api/#exchange-information
|
|
111131
111492
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
111132
111493
|
* @returns {object[]} an array of objects representing market data
|
|
111133
111494
|
*/
|
|
@@ -111264,6 +111625,9 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
111264
111625
|
* @method
|
|
111265
111626
|
* @name coinsph#fetchTickers
|
|
111266
111627
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
111628
|
+
* @see https://coins-docs.github.io/rest-api/#24hr-ticker-price-change-statistics
|
|
111629
|
+
* @see https://coins-docs.github.io/rest-api/#symbol-price-ticker
|
|
111630
|
+
* @see https://coins-docs.github.io/rest-api/#symbol-order-book-ticker
|
|
111267
111631
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
111268
111632
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
111269
111633
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -111299,6 +111663,9 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
111299
111663
|
* @method
|
|
111300
111664
|
* @name coinsph#fetchTicker
|
|
111301
111665
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
111666
|
+
* @see https://coins-docs.github.io/rest-api/#24hr-ticker-price-change-statistics
|
|
111667
|
+
* @see https://coins-docs.github.io/rest-api/#symbol-price-ticker
|
|
111668
|
+
* @see https://coins-docs.github.io/rest-api/#symbol-order-book-ticker
|
|
111302
111669
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
111303
111670
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
111304
111671
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -111406,6 +111773,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
111406
111773
|
* @method
|
|
111407
111774
|
* @name coinsph#fetchOrderBook
|
|
111408
111775
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
111776
|
+
* @see https://coins-docs.github.io/rest-api/#order-book
|
|
111409
111777
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
111410
111778
|
* @param {int} [limit] the maximum amount of order book entries to return (default 100, max 200)
|
|
111411
111779
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -111442,6 +111810,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
111442
111810
|
* @method
|
|
111443
111811
|
* @name coinsph#fetchOHLCV
|
|
111444
111812
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
111813
|
+
* @see https://coins-docs.github.io/rest-api/#klinecandlestick-data
|
|
111445
111814
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
111446
111815
|
* @param {string} timeframe the length of time each candle represents
|
|
111447
111816
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -111508,6 +111877,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
111508
111877
|
* @method
|
|
111509
111878
|
* @name coinsph#fetchTrades
|
|
111510
111879
|
* @description get the list of most recent trades for a particular symbol
|
|
111880
|
+
* @see https://coins-docs.github.io/rest-api/#recent-trades-list
|
|
111511
111881
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
111512
111882
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
111513
111883
|
* @param {int} [limit] the maximum amount of trades to fetch (default 500, max 1000)
|
|
@@ -111549,6 +111919,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
111549
111919
|
* @method
|
|
111550
111920
|
* @name coinsph#fetchMyTrades
|
|
111551
111921
|
* @description fetch all trades made by the user
|
|
111922
|
+
* @see https://coins-docs.github.io/rest-api/#account-trade-list-user_data
|
|
111552
111923
|
* @param {string} symbol unified market symbol
|
|
111553
111924
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
111554
111925
|
* @param {int} [limit] the maximum number of trades structures to retrieve (default 500, max 1000)
|
|
@@ -111579,6 +111950,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
111579
111950
|
* @method
|
|
111580
111951
|
* @name coinsph#fetchOrderTrades
|
|
111581
111952
|
* @description fetch all the trades made from a single order
|
|
111953
|
+
* @see https://coins-docs.github.io/rest-api/#account-trade-list-user_data
|
|
111582
111954
|
* @param {string} id order id
|
|
111583
111955
|
* @param {string} symbol unified market symbol
|
|
111584
111956
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
@@ -111685,6 +112057,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
111685
112057
|
* @method
|
|
111686
112058
|
* @name coinsph#fetchBalance
|
|
111687
112059
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
112060
|
+
* @see https://coins-docs.github.io/rest-api/#accept-the-quote
|
|
111688
112061
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
111689
112062
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
111690
112063
|
*/
|
|
@@ -111744,11 +112117,14 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
111744
112117
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
111745
112118
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
111746
112119
|
* @param {float} [params.cost] the quote quantity that can be used as an alternative for the amount for market buy orders
|
|
112120
|
+
* @param {bool} [params.test] set to true to test an order, no order will be created but the request will be validated
|
|
111747
112121
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
111748
112122
|
*/
|
|
111749
112123
|
// todo: add test order low priority
|
|
111750
112124
|
await this.loadMarkets();
|
|
111751
112125
|
const market = this.market(symbol);
|
|
112126
|
+
const testOrder = this.safeBool(params, 'test', false);
|
|
112127
|
+
params = this.omit(params, 'test');
|
|
111752
112128
|
let orderType = this.safeString(params, 'type', type);
|
|
111753
112129
|
orderType = this.encodeOrderType(orderType);
|
|
111754
112130
|
params = this.omit(params, 'type');
|
|
@@ -111813,7 +112189,13 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
111813
112189
|
}
|
|
111814
112190
|
request['newOrderRespType'] = newOrderRespType;
|
|
111815
112191
|
params = this.omit(params, 'price', 'stopPrice', 'triggerPrice', 'quantity', 'quoteOrderQty');
|
|
111816
|
-
|
|
112192
|
+
let response = undefined;
|
|
112193
|
+
if (testOrder) {
|
|
112194
|
+
response = await this.privatePostOpenapiV1OrderTest(this.extend(request, params));
|
|
112195
|
+
}
|
|
112196
|
+
else {
|
|
112197
|
+
response = await this.privatePostOpenapiV1Order(this.extend(request, params));
|
|
112198
|
+
}
|
|
111817
112199
|
//
|
|
111818
112200
|
// {
|
|
111819
112201
|
// "symbol": "ETHUSDT",
|
|
@@ -111848,6 +112230,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
111848
112230
|
* @method
|
|
111849
112231
|
* @name coinsph#fetchOrder
|
|
111850
112232
|
* @description fetches information on an order made by the user
|
|
112233
|
+
* @see https://coins-docs.github.io/rest-api/#query-order-user_data
|
|
111851
112234
|
* @param {int|string} id order id
|
|
111852
112235
|
* @param {string} symbol not used by coinsph fetchOrder ()
|
|
111853
112236
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -111871,6 +112254,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
111871
112254
|
* @method
|
|
111872
112255
|
* @name coinsph#fetchOpenOrders
|
|
111873
112256
|
* @description fetch all unfilled currently open orders
|
|
112257
|
+
* @see https://coins-docs.github.io/rest-api/#query-order-user_data
|
|
111874
112258
|
* @param {string} symbol unified market symbol
|
|
111875
112259
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
111876
112260
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -111892,6 +112276,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
111892
112276
|
* @method
|
|
111893
112277
|
* @name coinsph#fetchClosedOrders
|
|
111894
112278
|
* @description fetches information on multiple closed orders made by the user
|
|
112279
|
+
* @see https://coins-docs.github.io/rest-api/#history-orders-user_data
|
|
111895
112280
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
111896
112281
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
111897
112282
|
* @param {int} [limit] the maximum number of order structures to retrieve (default 500, max 1000)
|
|
@@ -111922,6 +112307,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
111922
112307
|
* @method
|
|
111923
112308
|
* @name coinsph#cancelOrder
|
|
111924
112309
|
* @description cancels an open order
|
|
112310
|
+
* @see https://coins-docs.github.io/rest-api/#cancel-order-trade
|
|
111925
112311
|
* @param {string} id order id
|
|
111926
112312
|
* @param {string} symbol not used by coinsph cancelOrder ()
|
|
111927
112313
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -111945,6 +112331,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
111945
112331
|
* @method
|
|
111946
112332
|
* @name coinsph#cancelAllOrders
|
|
111947
112333
|
* @description cancel open orders of market
|
|
112334
|
+
* @see https://coins-docs.github.io/rest-api/#cancel-all-open-orders-on-a-symbol-trade
|
|
111948
112335
|
* @param {string} symbol unified market symbol
|
|
111949
112336
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
111950
112337
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -112127,6 +112514,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
112127
112514
|
* @method
|
|
112128
112515
|
* @name coinsph#fetchTradingFee
|
|
112129
112516
|
* @description fetch the trading fees for a market
|
|
112517
|
+
* @see https://coins-docs.github.io/rest-api/#trade-fee-user_data
|
|
112130
112518
|
* @param {string} symbol unified market symbol
|
|
112131
112519
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
112132
112520
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
@@ -112154,6 +112542,7 @@ class coinsph extends _abstract_coinsph_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
112154
112542
|
* @method
|
|
112155
112543
|
* @name coinsph#fetchTradingFees
|
|
112156
112544
|
* @description fetch the trading fees for multiple markets
|
|
112545
|
+
* @see https://coins-docs.github.io/rest-api/#trade-fee-user_data
|
|
112157
112546
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
112158
112547
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
112159
112548
|
*/
|
|
@@ -112772,6 +113161,7 @@ class coinspot extends _abstract_coinspot_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
112772
113161
|
* @method
|
|
112773
113162
|
* @name coinspot#fetchBalance
|
|
112774
113163
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
113164
|
+
* @see https://www.coinspot.com.au/api#listmybalance
|
|
112775
113165
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
112776
113166
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
112777
113167
|
*/
|
|
@@ -112801,6 +113191,7 @@ class coinspot extends _abstract_coinspot_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
112801
113191
|
* @method
|
|
112802
113192
|
* @name coinspot#fetchOrderBook
|
|
112803
113193
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
113194
|
+
* @see https://www.coinspot.com.au/api#listopenorders
|
|
112804
113195
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
112805
113196
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
112806
113197
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -112854,6 +113245,7 @@ class coinspot extends _abstract_coinspot_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
112854
113245
|
* @method
|
|
112855
113246
|
* @name coinspot#fetchTicker
|
|
112856
113247
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
113248
|
+
* @see https://www.coinspot.com.au/api#latestprices
|
|
112857
113249
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
112858
113250
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
112859
113251
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -112927,6 +113319,7 @@ class coinspot extends _abstract_coinspot_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
112927
113319
|
* @method
|
|
112928
113320
|
* @name coinspot#fetchTrades
|
|
112929
113321
|
* @description get the list of most recent trades for a particular symbol
|
|
113322
|
+
* @see https://www.coinspot.com.au/api#orderhistory
|
|
112930
113323
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
112931
113324
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
112932
113325
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -112955,6 +113348,7 @@ class coinspot extends _abstract_coinspot_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
112955
113348
|
* @method
|
|
112956
113349
|
* @name coinspot#fetchMyTrades
|
|
112957
113350
|
* @description fetch all trades made by the user
|
|
113351
|
+
* @see https://www.coinspot.com.au/api#rotransaction
|
|
112958
113352
|
* @param {string} symbol unified market symbol
|
|
112959
113353
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
112960
113354
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -113110,6 +113504,8 @@ class coinspot extends _abstract_coinspot_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
|
|
|
113110
113504
|
* @method
|
|
113111
113505
|
* @name coinspot#cancelOrder
|
|
113112
113506
|
* @description cancels an open order
|
|
113507
|
+
* @see https://www.coinspot.com.au/api#cancelbuyorder
|
|
113508
|
+
* @see https://www.coinspot.com.au/api#cancelsellorder
|
|
113113
113509
|
* @param {string} id order id
|
|
113114
113510
|
* @param {string} symbol not used by coinspot cancelOrder ()
|
|
113115
113511
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -115471,13 +115867,13 @@ class cryptocom extends _abstract_cryptocom_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
115471
115867
|
* @method
|
|
115472
115868
|
* @name cryptocom#fetchDepositWithdrawFees
|
|
115473
115869
|
* @description fetch deposit and withdraw fees
|
|
115474
|
-
* @see https://exchange-docs.crypto.com/
|
|
115870
|
+
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-currency-networks
|
|
115475
115871
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
115476
115872
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
115477
115873
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
115478
115874
|
*/
|
|
115479
115875
|
await this.loadMarkets();
|
|
115480
|
-
const response = await this.
|
|
115876
|
+
const response = await this.v1PrivatePostPrivateGetCurrencyNetworks(params);
|
|
115481
115877
|
const data = this.safeValue(response, 'result');
|
|
115482
115878
|
const currencyMap = this.safeValue(data, 'currency_map');
|
|
115483
115879
|
return this.parseDepositWithdrawFees(currencyMap, codes, 'full_name');
|
|
@@ -116475,6 +116871,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
116475
116871
|
* @method
|
|
116476
116872
|
* @name currencycom#fetchTime
|
|
116477
116873
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
116874
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/timeUsingGET
|
|
116478
116875
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
116479
116876
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
116480
116877
|
*/
|
|
@@ -116491,6 +116888,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
116491
116888
|
* @method
|
|
116492
116889
|
* @name currencycom#fetchCurrencies
|
|
116493
116890
|
* @description fetches all available currencies on an exchange
|
|
116891
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getCurrenciesUsingGET
|
|
116494
116892
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
116495
116893
|
* @returns {object} an associative dictionary of currencies
|
|
116496
116894
|
*/
|
|
@@ -116563,6 +116961,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
116563
116961
|
* @method
|
|
116564
116962
|
* @name currencycom#fetchMarkets
|
|
116565
116963
|
* @description retrieves data on all markets for currencycom
|
|
116964
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/exchangeInfoUsingGET
|
|
116566
116965
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
116567
116966
|
* @returns {object[]} an array of objects representing market data
|
|
116568
116967
|
*/
|
|
@@ -116751,6 +117150,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
116751
117150
|
* @method
|
|
116752
117151
|
* @name currencycom#fetchAccounts
|
|
116753
117152
|
* @description fetch all the accounts associated with a profile
|
|
117153
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/accountUsingGET
|
|
116754
117154
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
116755
117155
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
116756
117156
|
*/
|
|
@@ -116807,6 +117207,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
116807
117207
|
* @method
|
|
116808
117208
|
* @name currencycom#fetchTradingFees
|
|
116809
117209
|
* @description fetch the trading fees for multiple markets
|
|
117210
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/accountUsingGET
|
|
116810
117211
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
116811
117212
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
116812
117213
|
*/
|
|
@@ -116883,6 +117284,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
116883
117284
|
* @method
|
|
116884
117285
|
* @name currencycom#fetchBalance
|
|
116885
117286
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
117287
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/accountUsingGET
|
|
116886
117288
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
116887
117289
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
116888
117290
|
*/
|
|
@@ -116926,6 +117328,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
116926
117328
|
* @method
|
|
116927
117329
|
* @name currencycom#fetchOrderBook
|
|
116928
117330
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
117331
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/depthUsingGET
|
|
116929
117332
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
116930
117333
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
116931
117334
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -117042,6 +117445,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
117042
117445
|
* @method
|
|
117043
117446
|
* @name currencycom#fetchTicker
|
|
117044
117447
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
117448
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/ticker_24hrUsingGET
|
|
117045
117449
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
117046
117450
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
117047
117451
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -117079,6 +117483,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
117079
117483
|
* @method
|
|
117080
117484
|
* @name currencycom#fetchTickers
|
|
117081
117485
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
117486
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/ticker_24hrUsingGET
|
|
117082
117487
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
117083
117488
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
117084
117489
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -117130,6 +117535,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
117130
117535
|
* @method
|
|
117131
117536
|
* @name currencycom#fetchOHLCV
|
|
117132
117537
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
117538
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/klinesUsingGET
|
|
117133
117539
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
117134
117540
|
* @param {string} timeframe the length of time each candle represents
|
|
117135
117541
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -117242,6 +117648,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
117242
117648
|
* @method
|
|
117243
117649
|
* @name currencycom#fetchTrades
|
|
117244
117650
|
* @description get the list of most recent trades for a particular symbol
|
|
117651
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/aggTradesUsingGET
|
|
117245
117652
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
117246
117653
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
117247
117654
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -117426,6 +117833,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
117426
117833
|
* @method
|
|
117427
117834
|
* @name currencycom#createOrder
|
|
117428
117835
|
* @description create a trade order
|
|
117836
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/orderUsingPOST
|
|
117429
117837
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
117430
117838
|
* @param {string} type 'market' or 'limit'
|
|
117431
117839
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -117566,6 +117974,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
117566
117974
|
* @method
|
|
117567
117975
|
* @name currencycom#fetchOpenOrders
|
|
117568
117976
|
* @description fetch all unfilled currently open orders
|
|
117977
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/openOrdersUsingGET
|
|
117569
117978
|
* @param {string} symbol unified market symbol
|
|
117570
117979
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
117571
117980
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -117612,6 +118021,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
117612
118021
|
* @method
|
|
117613
118022
|
* @name currencycom#cancelOrder
|
|
117614
118023
|
* @description cancels an open order
|
|
118024
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/cancelOrderUsingDELETE
|
|
117615
118025
|
* @param {string} id order id
|
|
117616
118026
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
117617
118027
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -117655,6 +118065,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
117655
118065
|
* @method
|
|
117656
118066
|
* @name currencycom#fetchMyTrades
|
|
117657
118067
|
* @description fetch all trades made by the user
|
|
118068
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/myTradesUsingGET
|
|
117658
118069
|
* @param {string} symbol unified market symbol
|
|
117659
118070
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
117660
118071
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -117698,6 +118109,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
117698
118109
|
* @method
|
|
117699
118110
|
* @name currencycom#fetchDeposits
|
|
117700
118111
|
* @description fetch all deposits made to an account
|
|
118112
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getDepositsUsingGET
|
|
117701
118113
|
* @param {string} code unified currency code
|
|
117702
118114
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
117703
118115
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
@@ -117711,6 +118123,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
117711
118123
|
* @method
|
|
117712
118124
|
* @name currencycom#fetchWithdrawals
|
|
117713
118125
|
* @description fetch all withdrawals made from an account
|
|
118126
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getWithdrawalsUsingGET
|
|
117714
118127
|
* @param {string} code unified currency code
|
|
117715
118128
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
117716
118129
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -117724,6 +118137,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
117724
118137
|
* @method
|
|
117725
118138
|
* @name currencycom#fetchDepositsWithdrawals
|
|
117726
118139
|
* @description fetch history of deposits and withdrawals
|
|
118140
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getTransactionsUsingGET
|
|
117727
118141
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
117728
118142
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
117729
118143
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
@@ -117846,6 +118260,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
117846
118260
|
* @method
|
|
117847
118261
|
* @name currencycom#fetchLedger
|
|
117848
118262
|
* @description fetch the history of changes, actions done by the user or operations that altered balance of the user
|
|
118263
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getLedgerUsingGET
|
|
117849
118264
|
* @param {string} code unified currency code, default is undefined
|
|
117850
118265
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
117851
118266
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
@@ -117947,6 +118362,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
117947
118362
|
* @method
|
|
117948
118363
|
* @name currencycom#fetchLeverage
|
|
117949
118364
|
* @description fetch the set leverage for a market
|
|
118365
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/leverageSettingsUsingGET
|
|
117950
118366
|
* @param {string} symbol unified market symbol
|
|
117951
118367
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
117952
118368
|
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
|
|
@@ -117970,6 +118386,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
117970
118386
|
* @method
|
|
117971
118387
|
* @name currencycom#fetchDepositAddress
|
|
117972
118388
|
* @description fetch the deposit address for a currency associated with this account
|
|
118389
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/getDepositAddressUsingGET
|
|
117973
118390
|
* @param {string} code unified currency code
|
|
117974
118391
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
117975
118392
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
@@ -118036,6 +118453,7 @@ class currencycom extends _abstract_currencycom_js__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
118036
118453
|
* @method
|
|
118037
118454
|
* @name currencycom#fetchPositions
|
|
118038
118455
|
* @description fetch all open positions
|
|
118456
|
+
* @see https://apitradedoc.currency.com/swagger-ui.html#/rest-api/tradingPositionsUsingGET
|
|
118039
118457
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
118040
118458
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
118041
118459
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
@@ -122023,6 +122441,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
122023
122441
|
* @method
|
|
122024
122442
|
* @name deribit#fetchTime
|
|
122025
122443
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
122444
|
+
* @see https://docs.deribit.com/#public-get_time
|
|
122026
122445
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
122027
122446
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
122028
122447
|
*/
|
|
@@ -122118,6 +122537,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
122118
122537
|
* @method
|
|
122119
122538
|
* @name deribit#fetchStatus
|
|
122120
122539
|
* @description the latest known information on the availability of the exchange API
|
|
122540
|
+
* @see https://docs.deribit.com/#public-status
|
|
122121
122541
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
122122
122542
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
122123
122543
|
*/
|
|
@@ -122150,6 +122570,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
122150
122570
|
* @method
|
|
122151
122571
|
* @name deribit#fetchAccounts
|
|
122152
122572
|
* @description fetch all the accounts associated with a profile
|
|
122573
|
+
* @see https://docs.deribit.com/#private-get_subaccounts
|
|
122153
122574
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
122154
122575
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
122155
122576
|
*/
|
|
@@ -122219,6 +122640,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
122219
122640
|
* @method
|
|
122220
122641
|
* @name deribit#fetchMarkets
|
|
122221
122642
|
* @description retrieves data on all markets for deribit
|
|
122643
|
+
* @see https://docs.deribit.com/#public-get_currencies
|
|
122222
122644
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
122223
122645
|
* @returns {object[]} an array of objects representing market data
|
|
122224
122646
|
*/
|
|
@@ -122455,6 +122877,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
122455
122877
|
* @method
|
|
122456
122878
|
* @name deribit#fetchBalance
|
|
122457
122879
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
122880
|
+
* @see https://docs.deribit.com/#private-get_account_summary
|
|
122458
122881
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
122459
122882
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
122460
122883
|
*/
|
|
@@ -122515,6 +122938,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
122515
122938
|
* @method
|
|
122516
122939
|
* @name deribit#createDepositAddress
|
|
122517
122940
|
* @description create a currency deposit address
|
|
122941
|
+
* @see https://docs.deribit.com/#private-create_deposit_address
|
|
122518
122942
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
122519
122943
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
122520
122944
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
@@ -122552,6 +122976,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
122552
122976
|
* @method
|
|
122553
122977
|
* @name deribit#fetchDepositAddress
|
|
122554
122978
|
* @description fetch the deposit address for a currency associated with this account
|
|
122979
|
+
* @see https://docs.deribit.com/#private-get_current_deposit_address
|
|
122555
122980
|
* @param {string} code unified currency code
|
|
122556
122981
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
122557
122982
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
@@ -122670,6 +123095,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
122670
123095
|
* @method
|
|
122671
123096
|
* @name deribit#fetchTicker
|
|
122672
123097
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
123098
|
+
* @see https://docs.deribit.com/#public-ticker
|
|
122673
123099
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
122674
123100
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
122675
123101
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -122716,6 +123142,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
122716
123142
|
* @method
|
|
122717
123143
|
* @name deribit#fetchTickers
|
|
122718
123144
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
123145
|
+
* @see https://docs.deribit.com/#public-get_book_summary_by_currency
|
|
122719
123146
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
122720
123147
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
122721
123148
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -122772,6 +123199,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
122772
123199
|
* @method
|
|
122773
123200
|
* @name deribit#fetchOHLCV
|
|
122774
123201
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
123202
|
+
* @see https://docs.deribit.com/#public-get_tradingview_chart_data
|
|
122775
123203
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
122776
123204
|
* @param {string} timeframe the length of time each candle represents
|
|
122777
123205
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -122921,7 +123349,8 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
122921
123349
|
/**
|
|
122922
123350
|
* @method
|
|
122923
123351
|
* @name deribit#fetchTrades
|
|
122924
|
-
* @see https://docs.deribit.com/#
|
|
123352
|
+
* @see https://docs.deribit.com/#public-get_last_trades_by_instrument
|
|
123353
|
+
* @see https://docs.deribit.com/#public-get_last_trades_by_instrument_and_time
|
|
122925
123354
|
* @description get the list of most recent trades for a particular symbol.
|
|
122926
123355
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
122927
123356
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
@@ -122982,6 +123411,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
122982
123411
|
* @method
|
|
122983
123412
|
* @name deribit#fetchTradingFees
|
|
122984
123413
|
* @description fetch the trading fees for multiple markets
|
|
123414
|
+
* @see https://docs.deribit.com/#private-get_account_summary
|
|
122985
123415
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
122986
123416
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
122987
123417
|
*/
|
|
@@ -123102,6 +123532,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
123102
123532
|
* @method
|
|
123103
123533
|
* @name deribit#fetchOrderBook
|
|
123104
123534
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
123535
|
+
* @see https://docs.deribit.com/#public-get_order_book
|
|
123105
123536
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
123106
123537
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
123107
123538
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -123292,6 +123723,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
123292
123723
|
* @method
|
|
123293
123724
|
* @name deribit#fetchOrder
|
|
123294
123725
|
* @description fetches information on an order made by the user
|
|
123726
|
+
* @see https://docs.deribit.com/#private-get_order_state
|
|
123295
123727
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
123296
123728
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
123297
123729
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -123342,6 +123774,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
123342
123774
|
* @name deribit#createOrder
|
|
123343
123775
|
* @description create a trade order
|
|
123344
123776
|
* @see https://docs.deribit.com/#private-buy
|
|
123777
|
+
* @see https://docs.deribit.com/#private-sell
|
|
123345
123778
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
123346
123779
|
* @param {string} type 'market' or 'limit'
|
|
123347
123780
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -123563,6 +123996,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
123563
123996
|
* @method
|
|
123564
123997
|
* @name deribit#cancelOrder
|
|
123565
123998
|
* @description cancels an open order
|
|
123999
|
+
* @see https://docs.deribit.com/#private-cancel
|
|
123566
124000
|
* @param {string} id order id
|
|
123567
124001
|
* @param {string} symbol not used by deribit cancelOrder ()
|
|
123568
124002
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -123581,6 +124015,8 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
123581
124015
|
* @method
|
|
123582
124016
|
* @name deribit#cancelAllOrders
|
|
123583
124017
|
* @description cancel all open orders
|
|
124018
|
+
* @see https://docs.deribit.com/#private-cancel_all
|
|
124019
|
+
* @see https://docs.deribit.com/#private-cancel_all_by_instrument
|
|
123584
124020
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
123585
124021
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
123586
124022
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -123603,6 +124039,8 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
123603
124039
|
* @method
|
|
123604
124040
|
* @name deribit#fetchOpenOrders
|
|
123605
124041
|
* @description fetch all unfilled currently open orders
|
|
124042
|
+
* @see https://docs.deribit.com/#private-get_open_orders_by_currency
|
|
124043
|
+
* @see https://docs.deribit.com/#private-get_open_orders_by_instrument
|
|
123606
124044
|
* @param {string} symbol unified market symbol
|
|
123607
124045
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
123608
124046
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -123632,6 +124070,8 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
123632
124070
|
* @method
|
|
123633
124071
|
* @name deribit#fetchClosedOrders
|
|
123634
124072
|
* @description fetches information on multiple closed orders made by the user
|
|
124073
|
+
* @see https://docs.deribit.com/#private-get_order_history_by_currency
|
|
124074
|
+
* @see https://docs.deribit.com/#private-get_order_history_by_instrument
|
|
123635
124075
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
123636
124076
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
123637
124077
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -123661,6 +124101,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
123661
124101
|
* @method
|
|
123662
124102
|
* @name deribit#fetchOrderTrades
|
|
123663
124103
|
* @description fetch all the trades made from a single order
|
|
124104
|
+
* @see https://docs.deribit.com/#private-get_user_trades_by_order
|
|
123664
124105
|
* @param {string} id order id
|
|
123665
124106
|
* @param {string} symbol unified market symbol
|
|
123666
124107
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
@@ -123714,6 +124155,10 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
123714
124155
|
* @method
|
|
123715
124156
|
* @name deribit#fetchMyTrades
|
|
123716
124157
|
* @description fetch all trades made by the user
|
|
124158
|
+
* @see https://docs.deribit.com/#private-get_user_trades_by_currency
|
|
124159
|
+
* @see https://docs.deribit.com/#private-get_user_trades_by_currency_and_time
|
|
124160
|
+
* @see https://docs.deribit.com/#private-get_user_trades_by_instrument
|
|
124161
|
+
* @see https://docs.deribit.com/#private-get_user_trades_by_instrument_and_time
|
|
123717
124162
|
* @param {string} symbol unified market symbol
|
|
123718
124163
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
123719
124164
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -123794,6 +124239,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
123794
124239
|
* @method
|
|
123795
124240
|
* @name deribit#fetchDeposits
|
|
123796
124241
|
* @description fetch all deposits made to an account
|
|
124242
|
+
* @see https://docs.deribit.com/#private-get_deposits
|
|
123797
124243
|
* @param {string} code unified currency code
|
|
123798
124244
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
123799
124245
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
@@ -123841,6 +124287,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
123841
124287
|
* @method
|
|
123842
124288
|
* @name deribit#fetchWithdrawals
|
|
123843
124289
|
* @description fetch all withdrawals made from an account
|
|
124290
|
+
* @see https://docs.deribit.com/#private-get_withdrawals
|
|
123844
124291
|
* @param {string} code unified currency code
|
|
123845
124292
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
123846
124293
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -124213,6 +124660,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
124213
124660
|
* @method
|
|
124214
124661
|
* @name deribit#fetchTransfers
|
|
124215
124662
|
* @description fetch a history of internal transfers made on an account
|
|
124663
|
+
* @see https://docs.deribit.com/#private-get_transfers
|
|
124216
124664
|
* @param {string} code unified currency code of the currency transferred
|
|
124217
124665
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
124218
124666
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
@@ -124273,6 +124721,8 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
124273
124721
|
* @method
|
|
124274
124722
|
* @name deribit#transfer
|
|
124275
124723
|
* @description transfer currency internally between wallets on the same account
|
|
124724
|
+
* @see https://docs.deribit.com/#private-submit_transfer_to_user
|
|
124725
|
+
* @see https://docs.deribit.com/#private-submit_transfer_to_subaccount
|
|
124276
124726
|
* @param {string} code unified currency code
|
|
124277
124727
|
* @param {float} amount amount to transfer
|
|
124278
124728
|
* @param {string} fromAccount account to transfer from
|
|
@@ -124365,6 +124815,7 @@ class deribit extends _abstract_deribit_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
124365
124815
|
* @method
|
|
124366
124816
|
* @name deribit#withdraw
|
|
124367
124817
|
* @description make a withdrawal
|
|
124818
|
+
* @see https://docs.deribit.com/#private-withdraw
|
|
124368
124819
|
* @param {string} code unified currency code
|
|
124369
124820
|
* @param {float} amount the amount to withdraw
|
|
124370
124821
|
* @param {string} address the address to withdraw to
|
|
@@ -129569,6 +130020,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
129569
130020
|
* @method
|
|
129570
130021
|
* @name exmo#reduceMargin
|
|
129571
130022
|
* @description remove margin from a position
|
|
130023
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#eebf9f25-0289-4946-9482-89872c738449
|
|
129572
130024
|
* @param {string} symbol unified market symbol
|
|
129573
130025
|
* @param {float} amount the amount of margin to remove
|
|
129574
130026
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -129581,6 +130033,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
129581
130033
|
* @method
|
|
129582
130034
|
* @name exmo#addMargin
|
|
129583
130035
|
* @description add margin
|
|
130036
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#143ef808-79ca-4e49-9e79-a60ea4d8c0e3
|
|
129584
130037
|
* @param {string} symbol unified market symbol
|
|
129585
130038
|
* @param {float} amount amount of margin to add
|
|
129586
130039
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -129593,6 +130046,8 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
129593
130046
|
* @method
|
|
129594
130047
|
* @name exmo#fetchTradingFees
|
|
129595
130048
|
* @description fetch the trading fees for multiple markets
|
|
130049
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#90927062-256c-4b03-900f-2b99131f9a54
|
|
130050
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7de7e75c-5833-45a8-b937-c2276d235aaa
|
|
129596
130051
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
129597
130052
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
129598
130053
|
*/
|
|
@@ -129880,6 +130335,8 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
129880
130335
|
* @method
|
|
129881
130336
|
* @name exmo#fetchCurrencies
|
|
129882
130337
|
* @description fetches all available currencies on an exchange
|
|
130338
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7cdf0ca8-9ff6-4cf3-aa33-bcec83155c49
|
|
130339
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4190035d-24b1-453d-833b-37e0a52f88e2
|
|
129883
130340
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
129884
130341
|
* @returns {object} an associative dictionary of currencies
|
|
129885
130342
|
*/
|
|
@@ -130006,6 +130463,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
130006
130463
|
* @method
|
|
130007
130464
|
* @name exmo#fetchMarkets
|
|
130008
130465
|
* @description retrieves data on all markets for exmo
|
|
130466
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7de7e75c-5833-45a8-b937-c2276d235aaa
|
|
130009
130467
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
130010
130468
|
* @returns {object[]} an array of objects representing market data
|
|
130011
130469
|
*/
|
|
@@ -130133,6 +130591,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
130133
130591
|
* @method
|
|
130134
130592
|
* @name exmo#fetchOHLCV
|
|
130135
130593
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
130594
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#65eeb949-74e5-4631-9184-c38387fe53e8
|
|
130136
130595
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
130137
130596
|
* @param {string} timeframe the length of time each candle represents
|
|
130138
130597
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -130246,6 +130705,8 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
130246
130705
|
* @method
|
|
130247
130706
|
* @name exmo#fetchBalance
|
|
130248
130707
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
130708
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#59c5160f-27a1-4d9a-8cfb-7979c7ffaac6
|
|
130709
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c8388df7-1f9f-4d41-81c4-5a387d171dc6
|
|
130249
130710
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
130250
130711
|
* @param {string} [params.marginMode] *isolated* fetches the isolated margin balance
|
|
130251
130712
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
@@ -130293,6 +130754,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
130293
130754
|
* @method
|
|
130294
130755
|
* @name exmo#fetchOrderBook
|
|
130295
130756
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
130757
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c60c51a8-e683-4f45-a000-820723d37871
|
|
130296
130758
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
130297
130759
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
130298
130760
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -130315,6 +130777,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
130315
130777
|
* @method
|
|
130316
130778
|
* @name exmo#fetchOrderBooks
|
|
130317
130779
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
|
|
130780
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c60c51a8-e683-4f45-a000-820723d37871
|
|
130318
130781
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
130319
130782
|
* @param {int} [limit] max number of entries per orderbook to return, default is undefined
|
|
130320
130783
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -130395,6 +130858,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
130395
130858
|
* @method
|
|
130396
130859
|
* @name exmo#fetchTickers
|
|
130397
130860
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
130861
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4c8e6459-3503-4361-b012-c34bb9f7e385
|
|
130398
130862
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
130399
130863
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
130400
130864
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -130433,6 +130897,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
130433
130897
|
* @method
|
|
130434
130898
|
* @name exmo#fetchTicker
|
|
130435
130899
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
130900
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4c8e6459-3503-4361-b012-c34bb9f7e385
|
|
130436
130901
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
130437
130902
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
130438
130903
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -130537,6 +131002,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
130537
131002
|
* @method
|
|
130538
131003
|
* @name exmo#fetchTrades
|
|
130539
131004
|
* @description get the list of most recent trades for a particular symbol
|
|
131005
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#5a5a9c0d-cf17-47f6-9d62-6d4404ebd5ac
|
|
130540
131006
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
130541
131007
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
130542
131008
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -131377,6 +131843,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
131377
131843
|
* @method
|
|
131378
131844
|
* @name exmo#fetchDepositAddress
|
|
131379
131845
|
* @description fetch the deposit address for a currency associated with this account
|
|
131846
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c8f9ced9-7ab6-4383-a6a4-bc54469ba60e
|
|
131380
131847
|
* @param {string} code unified currency code
|
|
131381
131848
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
131382
131849
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
@@ -131423,6 +131890,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
131423
131890
|
* @method
|
|
131424
131891
|
* @name exmo#withdraw
|
|
131425
131892
|
* @description make a withdrawal
|
|
131893
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#3ab9c34d-ad58-4f87-9c57-2e2ea88a8325
|
|
131426
131894
|
* @param {string} code unified currency code
|
|
131427
131895
|
* @param {float} amount the amount to withdraw
|
|
131428
131896
|
* @param {string} address the address to withdraw to
|
|
@@ -131602,6 +132070,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
131602
132070
|
* @method
|
|
131603
132071
|
* @name exmo#fetchDepositsWithdrawals
|
|
131604
132072
|
* @description fetch history of deposits and withdrawals
|
|
132073
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#31e69a33-4849-4e6a-b4b4-6d574238f6a7
|
|
131605
132074
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
131606
132075
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
131607
132076
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
@@ -131655,6 +132124,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
131655
132124
|
* @method
|
|
131656
132125
|
* @name exmo#fetchWithdrawals
|
|
131657
132126
|
* @description fetch all withdrawals made from an account
|
|
132127
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
|
|
131658
132128
|
* @param {string} code unified currency code
|
|
131659
132129
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
131660
132130
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -131708,6 +132178,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
131708
132178
|
* @method
|
|
131709
132179
|
* @name exmo#fetchWithdrawal
|
|
131710
132180
|
* @description fetch data on a currency withdrawal via the withdrawal id
|
|
132181
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
|
|
131711
132182
|
* @param {string} id withdrawal id
|
|
131712
132183
|
* @param {string} code unified currency code of the currency withdrawn, default is undefined
|
|
131713
132184
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -131759,6 +132230,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
131759
132230
|
* @method
|
|
131760
132231
|
* @name exmo#fetchDeposit
|
|
131761
132232
|
* @description fetch information on a deposit
|
|
132233
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
|
|
131762
132234
|
* @param {string} id deposit id
|
|
131763
132235
|
* @param {string} code unified currency code, default is undefined
|
|
131764
132236
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -131810,6 +132282,7 @@ class exmo extends _abstract_exmo_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
131810
132282
|
* @method
|
|
131811
132283
|
* @name exmo#fetchDeposits
|
|
131812
132284
|
* @description fetch all deposits made to an account
|
|
132285
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
|
|
131813
132286
|
* @param {string} code unified currency code
|
|
131814
132287
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
131815
132288
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
@@ -139452,6 +139925,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
139452
139925
|
* @method
|
|
139453
139926
|
* @name gemini#fetchMarkets
|
|
139454
139927
|
* @description retrieves data on all markets for gemini
|
|
139928
|
+
* @see https://docs.gemini.com/rest-api/#symbols
|
|
139455
139929
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
139456
139930
|
* @returns {object[]} an array of objects representing market data
|
|
139457
139931
|
*/
|
|
@@ -139712,6 +140186,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
139712
140186
|
* @method
|
|
139713
140187
|
* @name gemini#fetchOrderBook
|
|
139714
140188
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
140189
|
+
* @see https://docs.gemini.com/rest-api/#current-order-book
|
|
139715
140190
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
139716
140191
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
139717
140192
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -139790,6 +140265,8 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
139790
140265
|
* @method
|
|
139791
140266
|
* @name gemini#fetchTicker
|
|
139792
140267
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
140268
|
+
* @see https://docs.gemini.com/rest-api/#ticker
|
|
140269
|
+
* @see https://docs.gemini.com/rest-api/#ticker-v2
|
|
139793
140270
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
139794
140271
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
139795
140272
|
* @param {object} [params.fetchTickerMethod] 'fetchTickerV2', 'fetchTickerV1' or 'fetchTickerV1AndV2' - 'fetchTickerV1' for original ccxt.gemini.fetchTicker - 'fetchTickerV1AndV2' for 2 api calls to get the result of both fetchTicker methods - default = 'fetchTickerV1'
|
|
@@ -139903,6 +140380,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
139903
140380
|
* @method
|
|
139904
140381
|
* @name gemini#fetchTickers
|
|
139905
140382
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
140383
|
+
* @see https://docs.gemini.com/rest-api/#price-feed
|
|
139906
140384
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
139907
140385
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
139908
140386
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -140045,6 +140523,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
140045
140523
|
* @method
|
|
140046
140524
|
* @name gemini#fetchTradingFees
|
|
140047
140525
|
* @description fetch the trading fees for multiple markets
|
|
140526
|
+
* @see https://docs.gemini.com/rest-api/#get-notional-volume
|
|
140048
140527
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
140049
140528
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
140050
140529
|
*/
|
|
@@ -140103,6 +140582,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
140103
140582
|
* @method
|
|
140104
140583
|
* @name gemini#fetchBalance
|
|
140105
140584
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
140585
|
+
* @see https://docs.gemini.com/rest-api/#get-available-balances
|
|
140106
140586
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
140107
140587
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
140108
140588
|
*/
|
|
@@ -140284,6 +140764,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
140284
140764
|
* @method
|
|
140285
140765
|
* @name gemini#fetchOrder
|
|
140286
140766
|
* @description fetches information on an order made by the user
|
|
140767
|
+
* @see https://docs.gemini.com/rest-api/#order-status
|
|
140287
140768
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
140288
140769
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
140289
140770
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -140323,6 +140804,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
140323
140804
|
* @method
|
|
140324
140805
|
* @name gemini#fetchOpenOrders
|
|
140325
140806
|
* @description fetch all unfilled currently open orders
|
|
140807
|
+
* @see https://docs.gemini.com/rest-api/#get-active-orders
|
|
140326
140808
|
* @param {string} symbol unified market symbol
|
|
140327
140809
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
140328
140810
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -140465,6 +140947,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
140465
140947
|
* @method
|
|
140466
140948
|
* @name gemini#cancelOrder
|
|
140467
140949
|
* @description cancels an open order
|
|
140950
|
+
* @see https://docs.gemini.com/rest-api/#cancel-order
|
|
140468
140951
|
* @param {string} id order id
|
|
140469
140952
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
140470
140953
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -140506,6 +140989,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
140506
140989
|
* @method
|
|
140507
140990
|
* @name gemini#fetchMyTrades
|
|
140508
140991
|
* @description fetch all trades made by the user
|
|
140992
|
+
* @see https://docs.gemini.com/rest-api/#get-past-trades
|
|
140509
140993
|
* @param {string} symbol unified market symbol
|
|
140510
140994
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
140511
140995
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -140534,6 +141018,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
140534
141018
|
* @method
|
|
140535
141019
|
* @name gemini#withdraw
|
|
140536
141020
|
* @description make a withdrawal
|
|
141021
|
+
* @see https://docs.gemini.com/rest-api/#withdraw-crypto-funds
|
|
140537
141022
|
* @param {string} code unified currency code
|
|
140538
141023
|
* @param {float} amount the amount to withdraw
|
|
140539
141024
|
* @param {string} address the address to withdraw to
|
|
@@ -140592,6 +141077,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
140592
141077
|
* @method
|
|
140593
141078
|
* @name gemini#fetchDepositsWithdrawals
|
|
140594
141079
|
* @description fetch history of deposits and withdrawals
|
|
141080
|
+
* @see https://docs.gemini.com/rest-api/#transfers
|
|
140595
141081
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
140596
141082
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
140597
141083
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
@@ -140803,6 +141289,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
140803
141289
|
* @method
|
|
140804
141290
|
* @name gemini#createDepositAddress
|
|
140805
141291
|
* @description create a currency deposit address
|
|
141292
|
+
* @see https://docs.gemini.com/rest-api/#new-deposit-address
|
|
140806
141293
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
140807
141294
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
140808
141295
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
@@ -140827,6 +141314,7 @@ class gemini extends _abstract_gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
140827
141314
|
* @method
|
|
140828
141315
|
* @name gemini#fetchOHLCV
|
|
140829
141316
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
141317
|
+
* @see https://docs.gemini.com/rest-api/#candles
|
|
140830
141318
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
140831
141319
|
* @param {string} timeframe the length of time each candle represents
|
|
140832
141320
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -141004,6 +141492,8 @@ class hitbtc extends _abstract_hitbtc_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
|
|
|
141004
141492
|
'public/orderbook/{symbol}': 10,
|
|
141005
141493
|
'public/candles': 10,
|
|
141006
141494
|
'public/candles/{symbol}': 10,
|
|
141495
|
+
'public/converted/candles': 10,
|
|
141496
|
+
'public/converted/candles/{symbol}': 10,
|
|
141007
141497
|
'public/futures/info': 10,
|
|
141008
141498
|
'public/futures/info/{symbol}': 10,
|
|
141009
141499
|
'public/futures/history/funding': 10,
|
|
@@ -144689,6 +145179,9 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
144689
145179
|
'trades': 1,
|
|
144690
145180
|
'chart': 1,
|
|
144691
145181
|
'charts': 1,
|
|
145182
|
+
'minicharts': 1,
|
|
145183
|
+
'oracle/prices': 1,
|
|
145184
|
+
'quick-trade': 1,
|
|
144692
145185
|
// TradingView
|
|
144693
145186
|
'udf/config': 1,
|
|
144694
145187
|
'udf/history': 1,
|
|
@@ -144764,6 +145257,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
144764
145257
|
* @method
|
|
144765
145258
|
* @name hollaex#fetchMarkets
|
|
144766
145259
|
* @description retrieves data on all markets for hollaex
|
|
145260
|
+
* @see https://apidocs.hollaex.com/#constants
|
|
144767
145261
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
144768
145262
|
* @returns {object[]} an array of objects representing market data
|
|
144769
145263
|
*/
|
|
@@ -144966,6 +145460,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
144966
145460
|
* @method
|
|
144967
145461
|
* @name hollaex#fetchOrderBooks
|
|
144968
145462
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
|
|
145463
|
+
* @see https://apidocs.hollaex.com/#orderbooks
|
|
144969
145464
|
* @param {string[]|undefined} symbols not used by hollaex fetchOrderBooks ()
|
|
144970
145465
|
* @param {int} [limit] not used by hollaex fetchOrderBooks ()
|
|
144971
145466
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -144989,6 +145484,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
144989
145484
|
* @method
|
|
144990
145485
|
* @name hollaex#fetchOrderBook
|
|
144991
145486
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
145487
|
+
* @see https://apidocs.hollaex.com/#orderbook
|
|
144992
145488
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
144993
145489
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
144994
145490
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -144999,7 +145495,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
144999
145495
|
const request = {
|
|
145000
145496
|
'symbol': market['id'],
|
|
145001
145497
|
};
|
|
145002
|
-
const response = await this.
|
|
145498
|
+
const response = await this.publicGetOrderbook(this.extend(request, params));
|
|
145003
145499
|
//
|
|
145004
145500
|
// {
|
|
145005
145501
|
// "btc-usdt": {
|
|
@@ -145028,6 +145524,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
145028
145524
|
* @method
|
|
145029
145525
|
* @name hollaex#fetchTicker
|
|
145030
145526
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
145527
|
+
* @see https://apidocs.hollaex.com/#ticker
|
|
145031
145528
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
145032
145529
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
145033
145530
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -145056,6 +145553,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
145056
145553
|
* @method
|
|
145057
145554
|
* @name hollaex#fetchTickers
|
|
145058
145555
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
145556
|
+
* @see https://apidocs.hollaex.com/#tickers
|
|
145059
145557
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
145060
145558
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
145061
145559
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -145153,6 +145651,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
145153
145651
|
* @method
|
|
145154
145652
|
* @name hollaex#fetchTrades
|
|
145155
145653
|
* @description get the list of most recent trades for a particular symbol
|
|
145654
|
+
* @see https://apidocs.hollaex.com/#trades
|
|
145156
145655
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
145157
145656
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
145158
145657
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -145241,6 +145740,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
145241
145740
|
* @method
|
|
145242
145741
|
* @name hollaex#fetchTradingFees
|
|
145243
145742
|
* @description fetch the trading fees for multiple markets
|
|
145743
|
+
* @see https://apidocs.hollaex.com/#tiers
|
|
145244
145744
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
145245
145745
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
145246
145746
|
*/
|
|
@@ -145300,6 +145800,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
145300
145800
|
* @method
|
|
145301
145801
|
* @name hollaex#fetchOHLCV
|
|
145302
145802
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
145803
|
+
* @see https://apidocs.hollaex.com/#chart
|
|
145303
145804
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
145304
145805
|
* @param {string} timeframe the length of time each candle represents
|
|
145305
145806
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -145394,6 +145895,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
145394
145895
|
* @method
|
|
145395
145896
|
* @name hollaex#fetchBalance
|
|
145396
145897
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
145898
|
+
* @see https://apidocs.hollaex.com/#get-balance
|
|
145397
145899
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
145398
145900
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
145399
145901
|
*/
|
|
@@ -145418,6 +145920,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
145418
145920
|
* @method
|
|
145419
145921
|
* @name hollaex#fetchOpenOrder
|
|
145420
145922
|
* @description fetch an open order by it's id
|
|
145923
|
+
* @see https://apidocs.hollaex.com/#get-order
|
|
145421
145924
|
* @param {string} id order id
|
|
145422
145925
|
* @param {string} symbol not used by hollaex fetchOpenOrder ()
|
|
145423
145926
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -145459,6 +145962,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
145459
145962
|
* @method
|
|
145460
145963
|
* @name hollaex#fetchOpenOrders
|
|
145461
145964
|
* @description fetch all unfilled currently open orders
|
|
145965
|
+
* @see https://apidocs.hollaex.com/#get-all-orders
|
|
145462
145966
|
* @param {string} symbol unified market symbol
|
|
145463
145967
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
145464
145968
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -145475,6 +145979,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
145475
145979
|
* @method
|
|
145476
145980
|
* @name hollaex#fetchClosedOrders
|
|
145477
145981
|
* @description fetches information on multiple closed orders made by the user
|
|
145982
|
+
* @see https://apidocs.hollaex.com/#get-all-orders
|
|
145478
145983
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
145479
145984
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
145480
145985
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -145491,6 +145996,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
145491
145996
|
* @method
|
|
145492
145997
|
* @name hollaex#fetchOrder
|
|
145493
145998
|
* @description fetches information on an order made by the user
|
|
145999
|
+
* @see https://apidocs.hollaex.com/#get-order
|
|
145494
146000
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
145495
146001
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
145496
146002
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -145533,6 +146039,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
145533
146039
|
* @method
|
|
145534
146040
|
* @name hollaex#fetchOrders
|
|
145535
146041
|
* @description fetches information on multiple orders made by the user
|
|
146042
|
+
* @see https://apidocs.hollaex.com/#get-all-orders
|
|
145536
146043
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
145537
146044
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
145538
146045
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -145677,6 +146184,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
145677
146184
|
* @method
|
|
145678
146185
|
* @name hollaex#createOrder
|
|
145679
146186
|
* @description create a trade order
|
|
146187
|
+
* @see https://apidocs.hollaex.com/#create-order
|
|
145680
146188
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
145681
146189
|
* @param {string} type 'market' or 'limit'
|
|
145682
146190
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -145745,6 +146253,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
145745
146253
|
* @method
|
|
145746
146254
|
* @name hollaex#cancelOrder
|
|
145747
146255
|
* @description cancels an open order
|
|
146256
|
+
* @see https://apidocs.hollaex.com/#cancel-order
|
|
145748
146257
|
* @param {string} id order id
|
|
145749
146258
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
145750
146259
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -145775,6 +146284,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
145775
146284
|
* @method
|
|
145776
146285
|
* @name hollaex#cancelAllOrders
|
|
145777
146286
|
* @description cancel all open orders in a market
|
|
146287
|
+
* @see https://apidocs.hollaex.com/#cancel-all-orders
|
|
145778
146288
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
145779
146289
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
145780
146290
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -145810,6 +146320,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
145810
146320
|
* @method
|
|
145811
146321
|
* @name hollaex#fetchMyTrades
|
|
145812
146322
|
* @description fetch all trades made by the user
|
|
146323
|
+
* @see https://apidocs.hollaex.com/#get-trades
|
|
145813
146324
|
* @param {string} symbol unified market symbol
|
|
145814
146325
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
145815
146326
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -145891,6 +146402,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
145891
146402
|
* @method
|
|
145892
146403
|
* @name hollaex#fetchDepositAddresses
|
|
145893
146404
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
146405
|
+
* @see https://apidocs.hollaex.com/#get-user
|
|
145894
146406
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
145895
146407
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
145896
146408
|
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
@@ -145953,6 +146465,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
145953
146465
|
* @method
|
|
145954
146466
|
* @name hollaex#fetchDeposits
|
|
145955
146467
|
* @description fetch all deposits made to an account
|
|
146468
|
+
* @see https://apidocs.hollaex.com/#get-deposits
|
|
145956
146469
|
* @param {string} code unified currency code
|
|
145957
146470
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
145958
146471
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
@@ -146012,6 +146525,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
146012
146525
|
* @method
|
|
146013
146526
|
* @name hollaex#fetchWithdrawal
|
|
146014
146527
|
* @description fetch data on a currency withdrawal via the withdrawal id
|
|
146528
|
+
* @see https://apidocs.hollaex.com/#get-withdrawals
|
|
146015
146529
|
* @param {string} id withdrawal id
|
|
146016
146530
|
* @param {string} code unified currency code of the currency withdrawn, default is undefined
|
|
146017
146531
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -146059,6 +146573,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
146059
146573
|
* @method
|
|
146060
146574
|
* @name hollaex#fetchWithdrawals
|
|
146061
146575
|
* @description fetch all withdrawals made from an account
|
|
146576
|
+
* @see https://apidocs.hollaex.com/#get-withdrawals
|
|
146062
146577
|
* @param {string} code unified currency code
|
|
146063
146578
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
146064
146579
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -146219,6 +146734,7 @@ class hollaex extends _abstract_hollaex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
146219
146734
|
* @method
|
|
146220
146735
|
* @name hollaex#withdraw
|
|
146221
146736
|
* @description make a withdrawal
|
|
146737
|
+
* @see https://apidocs.hollaex.com/#withdrawal
|
|
146222
146738
|
* @param {string} code unified currency code
|
|
146223
146739
|
* @param {float} amount the amount to withdraw
|
|
146224
146740
|
* @param {string} address the address to withdraw to
|
|
@@ -157640,6 +158156,9 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
157640
158156
|
'fetchCrossBorrowRates': false,
|
|
157641
158157
|
'fetchCurrencies': true,
|
|
157642
158158
|
'fetchDeposit': true,
|
|
158159
|
+
'fetchDepositAddress': true,
|
|
158160
|
+
'fetchDepositAddresses': false,
|
|
158161
|
+
'fetchDepositAddressesByNetwork': false,
|
|
157643
158162
|
'fetchDeposits': true,
|
|
157644
158163
|
'fetchFundingHistory': false,
|
|
157645
158164
|
'fetchFundingRate': false,
|
|
@@ -157699,7 +158218,7 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
157699
158218
|
},
|
|
157700
158219
|
'www': 'https://idex.io',
|
|
157701
158220
|
'doc': [
|
|
157702
|
-
'https://docs.idex.io/',
|
|
158221
|
+
'https://api-docs-v3.idex.io/',
|
|
157703
158222
|
],
|
|
157704
158223
|
},
|
|
157705
158224
|
'api': {
|
|
@@ -159287,6 +159806,62 @@ class idex extends _abstract_idex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
159287
159806
|
const authenticated = hasApiKey && hasSecret && hasWalletAddress && hasPrivateKey;
|
|
159288
159807
|
return authenticated ? (defaultCost / 2) : defaultCost;
|
|
159289
159808
|
}
|
|
159809
|
+
async fetchDepositAddress(code = undefined, params = {}) {
|
|
159810
|
+
/**
|
|
159811
|
+
* @method
|
|
159812
|
+
* @name idex#fetchDepositAddress
|
|
159813
|
+
* @description fetch the Polygon address of the wallet
|
|
159814
|
+
* @see https://api-docs-v3.idex.io/#get-wallets
|
|
159815
|
+
* @param {string} code not used by idex
|
|
159816
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
159817
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
159818
|
+
*/
|
|
159819
|
+
const request = {};
|
|
159820
|
+
request['nonce'] = this.uuidv1();
|
|
159821
|
+
const response = await this.privateGetWallets(this.extend(request, params));
|
|
159822
|
+
//
|
|
159823
|
+
// [
|
|
159824
|
+
// {
|
|
159825
|
+
// address: "0x37A1827CA64C94A26028bDCb43FBDCB0bf6DAf5B",
|
|
159826
|
+
// totalPortfolioValueUsd: "0.00",
|
|
159827
|
+
// time: "1678342148086"
|
|
159828
|
+
// },
|
|
159829
|
+
// {
|
|
159830
|
+
// address: "0x0Ef3456E616552238B0c562d409507Ed6051A7b3",
|
|
159831
|
+
// totalPortfolioValueUsd: "15.90",
|
|
159832
|
+
// time: "1691697811659"
|
|
159833
|
+
// }
|
|
159834
|
+
// ]
|
|
159835
|
+
//
|
|
159836
|
+
return this.parseDepositAddress(response);
|
|
159837
|
+
}
|
|
159838
|
+
parseDepositAddress(depositAddress, currency = undefined) {
|
|
159839
|
+
//
|
|
159840
|
+
// [
|
|
159841
|
+
// {
|
|
159842
|
+
// address: "0x37A1827CA64C94A26028bDCb43FBDCB0bf6DAf5B",
|
|
159843
|
+
// totalPortfolioValueUsd: "0.00",
|
|
159844
|
+
// time: "1678342148086"
|
|
159845
|
+
// },
|
|
159846
|
+
// {
|
|
159847
|
+
// address: "0x0Ef3456E616552238B0c562d409507Ed6051A7b3",
|
|
159848
|
+
// totalPortfolioValueUsd: "15.90",
|
|
159849
|
+
// time: "1691697811659"
|
|
159850
|
+
// }
|
|
159851
|
+
// ]
|
|
159852
|
+
//
|
|
159853
|
+
const length = depositAddress.length;
|
|
159854
|
+
const entry = this.safeDict(depositAddress, length - 1);
|
|
159855
|
+
const address = this.safeString(entry, 'address');
|
|
159856
|
+
this.checkAddress(address);
|
|
159857
|
+
return {
|
|
159858
|
+
'info': depositAddress,
|
|
159859
|
+
'currency': undefined,
|
|
159860
|
+
'address': address,
|
|
159861
|
+
'tag': undefined,
|
|
159862
|
+
'network': 'MATIC',
|
|
159863
|
+
};
|
|
159864
|
+
}
|
|
159290
159865
|
sign(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
|
|
159291
159866
|
const network = this.safeString(this.options, 'network', 'ETH');
|
|
159292
159867
|
const version = this.safeString(this.options, 'version', 'v1');
|
|
@@ -160182,6 +160757,9 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
160182
160757
|
'fetchCrossBorrowRate': false,
|
|
160183
160758
|
'fetchCrossBorrowRates': false,
|
|
160184
160759
|
'fetchDeposit': false,
|
|
160760
|
+
'fetchDepositAddress': 'emulated',
|
|
160761
|
+
'fetchDepositAddresses': true,
|
|
160762
|
+
'fetchDepositAddressesByNetwork': false,
|
|
160185
160763
|
'fetchDeposits': false,
|
|
160186
160764
|
'fetchDepositsWithdrawals': true,
|
|
160187
160765
|
'fetchFundingHistory': false,
|
|
@@ -160293,7 +160871,25 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
160293
160871
|
'options': {
|
|
160294
160872
|
'recvWindow': 5 * 1000,
|
|
160295
160873
|
'timeDifference': 0,
|
|
160296
|
-
'adjustForTimeDifference': false,
|
|
160874
|
+
'adjustForTimeDifference': false,
|
|
160875
|
+
'networks': {
|
|
160876
|
+
'XLM': 'Stellar Token',
|
|
160877
|
+
'BSC': 'bep20',
|
|
160878
|
+
'TRC20': 'trc20',
|
|
160879
|
+
'MATIC': 'polygon',
|
|
160880
|
+
// 'BEP2': 'bep2',
|
|
160881
|
+
// 'ARB': 'arb',
|
|
160882
|
+
// 'ERC20': 'erc20',
|
|
160883
|
+
// 'KIP7': 'kip7',
|
|
160884
|
+
// 'MAINNET': 'mainnet', // TODO: does mainnet just mean the default?
|
|
160885
|
+
// 'OEP4': 'oep4',
|
|
160886
|
+
// 'OP': 'op',
|
|
160887
|
+
// 'SPL': 'spl',
|
|
160888
|
+
// 'TRC10': 'trc10',
|
|
160889
|
+
// 'ZRC2': 'zrc2'
|
|
160890
|
+
// 'ETH': 'eth'
|
|
160891
|
+
// 'BASE': 'base'
|
|
160892
|
+
},
|
|
160297
160893
|
},
|
|
160298
160894
|
'commonCurrencies': {
|
|
160299
160895
|
'STR': 'XLM',
|
|
@@ -161152,6 +161748,90 @@ class indodax extends _abstract_indodax_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
161152
161748
|
};
|
|
161153
161749
|
return this.safeString(statuses, status, status);
|
|
161154
161750
|
}
|
|
161751
|
+
async fetchDepositAddresses(codes = undefined, params = {}) {
|
|
161752
|
+
/**
|
|
161753
|
+
* @method
|
|
161754
|
+
* @name indodax#fetchDepositAddresses
|
|
161755
|
+
* @description fetch deposit addresses for multiple currencies and chain types
|
|
161756
|
+
* @param {string[]} [codes] list of unified currency codes, default is undefined
|
|
161757
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
161758
|
+
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
161759
|
+
*/
|
|
161760
|
+
await this.loadMarkets();
|
|
161761
|
+
const response = await this.privatePostGetInfo(params);
|
|
161762
|
+
//
|
|
161763
|
+
// {
|
|
161764
|
+
// success: '1',
|
|
161765
|
+
// return: {
|
|
161766
|
+
// server_time: '1708031570',
|
|
161767
|
+
// balance: {
|
|
161768
|
+
// idr: '29952',
|
|
161769
|
+
// ...
|
|
161770
|
+
// },
|
|
161771
|
+
// balance_hold: {
|
|
161772
|
+
// idr: '0',
|
|
161773
|
+
// ...
|
|
161774
|
+
// },
|
|
161775
|
+
// address: {
|
|
161776
|
+
// btc: '1KMntgzvU7iTSgMBWc11nVuJjAyfW3qJyk',
|
|
161777
|
+
// ...
|
|
161778
|
+
// },
|
|
161779
|
+
// memo_is_required: {
|
|
161780
|
+
// btc: { mainnet: false },
|
|
161781
|
+
// ...
|
|
161782
|
+
// },
|
|
161783
|
+
// network: {
|
|
161784
|
+
// btc: 'mainnet',
|
|
161785
|
+
// ...
|
|
161786
|
+
// },
|
|
161787
|
+
// user_id: '276011',
|
|
161788
|
+
// name: '',
|
|
161789
|
+
// email: 'testbitcoincoid@mailforspam.com',
|
|
161790
|
+
// profile_picture: null,
|
|
161791
|
+
// verification_status: 'unverified',
|
|
161792
|
+
// gauth_enable: true,
|
|
161793
|
+
// withdraw_status: '0'
|
|
161794
|
+
// }
|
|
161795
|
+
// }
|
|
161796
|
+
//
|
|
161797
|
+
const data = this.safeDict(response, 'return');
|
|
161798
|
+
const addresses = this.safeDict(data, 'address', {});
|
|
161799
|
+
const networks = this.safeDict(data, 'network', {});
|
|
161800
|
+
const addressKeys = Object.keys(addresses);
|
|
161801
|
+
const result = {
|
|
161802
|
+
'info': data,
|
|
161803
|
+
};
|
|
161804
|
+
for (let i = 0; i < addressKeys.length; i++) {
|
|
161805
|
+
const marketId = addressKeys[i];
|
|
161806
|
+
const code = this.safeCurrencyCode(marketId);
|
|
161807
|
+
const address = this.safeString(addresses, marketId);
|
|
161808
|
+
if ((address !== undefined) && ((codes === undefined) || (this.inArray(code, codes)))) {
|
|
161809
|
+
this.checkAddress(address);
|
|
161810
|
+
let network = undefined;
|
|
161811
|
+
if (marketId in networks) {
|
|
161812
|
+
const networkId = this.safeString(networks, marketId);
|
|
161813
|
+
if (networkId.indexOf(',') >= 0) {
|
|
161814
|
+
network = [];
|
|
161815
|
+
const networkIds = networkId.split(',');
|
|
161816
|
+
for (let j = 0; j < networkIds.length; j++) {
|
|
161817
|
+
network.push(this.networkIdToCode(networkIds[j]).toUpperCase());
|
|
161818
|
+
}
|
|
161819
|
+
}
|
|
161820
|
+
else {
|
|
161821
|
+
network = this.networkIdToCode(networkId).toUpperCase();
|
|
161822
|
+
}
|
|
161823
|
+
}
|
|
161824
|
+
result[code] = {
|
|
161825
|
+
'info': {},
|
|
161826
|
+
'currency': code,
|
|
161827
|
+
'address': address,
|
|
161828
|
+
'network': network,
|
|
161829
|
+
'tag': undefined,
|
|
161830
|
+
};
|
|
161831
|
+
}
|
|
161832
|
+
}
|
|
161833
|
+
return result;
|
|
161834
|
+
}
|
|
161155
161835
|
sign(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
|
|
161156
161836
|
let url = this.urls['api'][api];
|
|
161157
161837
|
if (api === 'public') {
|
|
@@ -175770,6 +176450,9 @@ class latoken extends _abstract_latoken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
175770
176450
|
'fetchCrossBorrowRate': false,
|
|
175771
176451
|
'fetchCrossBorrowRates': false,
|
|
175772
176452
|
'fetchCurrencies': true,
|
|
176453
|
+
'fetchDepositAddress': false,
|
|
176454
|
+
'fetchDepositAddresses': false,
|
|
176455
|
+
'fetchDepositAddressesByNetwork': false,
|
|
175773
176456
|
'fetchDepositsWithdrawals': true,
|
|
175774
176457
|
'fetchDepositWithdrawFees': false,
|
|
175775
176458
|
'fetchIsolatedBorrowRate': false,
|
|
@@ -182819,6 +183502,9 @@ class mercado extends _abstract_mercado_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
182819
183502
|
'fetchBorrowRateHistory': false,
|
|
182820
183503
|
'fetchCrossBorrowRate': false,
|
|
182821
183504
|
'fetchCrossBorrowRates': false,
|
|
183505
|
+
'fetchDepositAddress': false,
|
|
183506
|
+
'fetchDepositAddresses': false,
|
|
183507
|
+
'fetchDepositAddressesByNetwork': false,
|
|
182822
183508
|
'fetchFundingHistory': false,
|
|
182823
183509
|
'fetchFundingRate': false,
|
|
182824
183510
|
'fetchFundingRateHistory': false,
|
|
@@ -193268,6 +193954,9 @@ class oceanex extends _abstract_oceanex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
193268
193954
|
'fetchClosedOrders': true,
|
|
193269
193955
|
'fetchCrossBorrowRate': false,
|
|
193270
193956
|
'fetchCrossBorrowRates': false,
|
|
193957
|
+
'fetchDepositAddress': false,
|
|
193958
|
+
'fetchDepositAddresses': false,
|
|
193959
|
+
'fetchDepositAddressesByNetwork': false,
|
|
193271
193960
|
'fetchIsolatedBorrowRate': false,
|
|
193272
193961
|
'fetchIsolatedBorrowRates': false,
|
|
193273
193962
|
'fetchMarkets': true,
|
|
@@ -197767,6 +198456,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
197767
198456
|
'account/quick-margin-borrow-repay': 4,
|
|
197768
198457
|
'account/borrow-repay': 5 / 3,
|
|
197769
198458
|
'account/simulated_margin': 10,
|
|
198459
|
+
'account/position-builder': 10,
|
|
197770
198460
|
'account/set-riskOffset-type': 2,
|
|
197771
198461
|
'account/activate-option': 4,
|
|
197772
198462
|
'account/set-auto-loan': 4,
|
|
@@ -225730,13 +226420,15 @@ class bitget extends _bitget_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z
|
|
|
225730
226420
|
const rawOrderBook = this.safeValue(data, 0);
|
|
225731
226421
|
const timestamp = this.safeInteger(rawOrderBook, 'ts');
|
|
225732
226422
|
const incrementalBook = channel === 'books';
|
|
225733
|
-
let storedOrderBook = undefined;
|
|
225734
226423
|
if (incrementalBook) {
|
|
225735
|
-
storedOrderBook = this.safeValue(this.orderbooks, symbol);
|
|
225736
|
-
if (
|
|
225737
|
-
|
|
225738
|
-
|
|
226424
|
+
// storedOrderBook = this.safeValue (this.orderbooks, symbol);
|
|
226425
|
+
if (!(symbol in this.orderbooks)) {
|
|
226426
|
+
// const ob = this.orderBook ({});
|
|
226427
|
+
const ob = this.countedOrderBook({});
|
|
226428
|
+
ob['symbol'] = symbol;
|
|
226429
|
+
this.orderbooks[symbol] = ob;
|
|
225739
226430
|
}
|
|
226431
|
+
const storedOrderBook = this.orderbooks[symbol];
|
|
225740
226432
|
const asks = this.safeValue(rawOrderBook, 'asks', []);
|
|
225741
226433
|
const bids = this.safeValue(rawOrderBook, 'bids', []);
|
|
225742
226434
|
this.handleDeltas(storedOrderBook['asks'], asks);
|
|
@@ -225771,10 +226463,12 @@ class bitget extends _bitget_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z
|
|
|
225771
226463
|
}
|
|
225772
226464
|
}
|
|
225773
226465
|
else {
|
|
225774
|
-
|
|
226466
|
+
const orderbook = this.orderBook({});
|
|
226467
|
+
const parsedOrderbook = this.parseOrderBook(rawOrderBook, symbol, timestamp);
|
|
226468
|
+
orderbook.reset(parsedOrderbook);
|
|
226469
|
+
this.orderbooks[symbol] = orderbook;
|
|
225775
226470
|
}
|
|
225776
|
-
this.orderbooks[symbol]
|
|
225777
|
-
client.resolve(storedOrderBook, messageHash);
|
|
226471
|
+
client.resolve(this.orderbooks[symbol], messageHash);
|
|
225778
226472
|
}
|
|
225779
226473
|
handleDelta(bookside, delta) {
|
|
225780
226474
|
const bidAsk = this.parseBidAsk(delta, 0, 1);
|
|
@@ -228274,13 +228968,13 @@ class bitmart extends _bitmart_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
228274
228968
|
const update = datas[i];
|
|
228275
228969
|
const marketId = this.safeString(update, 'symbol');
|
|
228276
228970
|
const symbol = this.safeSymbol(marketId);
|
|
228277
|
-
|
|
228278
|
-
|
|
228279
|
-
|
|
228280
|
-
|
|
228281
|
-
this.orderbooks[symbol] = orderbook;
|
|
228971
|
+
if (!(symbol in this.orderbooks)) {
|
|
228972
|
+
const ob = this.orderBook({}, limit);
|
|
228973
|
+
ob['symbol'] = symbol;
|
|
228974
|
+
this.orderbooks[symbol] = ob;
|
|
228282
228975
|
}
|
|
228283
|
-
const
|
|
228976
|
+
const orderbook = this.orderbooks[symbol];
|
|
228977
|
+
const type = this.safeString(update, 'type');
|
|
228284
228978
|
if ((type === 'snapshot') || (!(channelName.indexOf('increase') >= 0))) {
|
|
228285
228979
|
orderbook.reset({});
|
|
228286
228980
|
}
|
|
@@ -228304,12 +228998,12 @@ class bitmart extends _bitmart_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
228304
228998
|
const depths = data['depths'];
|
|
228305
228999
|
const marketId = this.safeString(data, 'symbol');
|
|
228306
229000
|
const symbol = this.safeSymbol(marketId);
|
|
228307
|
-
|
|
228308
|
-
|
|
228309
|
-
|
|
228310
|
-
|
|
228311
|
-
this.orderbooks[symbol] = orderbook;
|
|
229001
|
+
if (!(symbol in this.orderbooks)) {
|
|
229002
|
+
const ob = this.orderBook({}, limit);
|
|
229003
|
+
ob['symbol'] = symbol;
|
|
229004
|
+
this.orderbooks[symbol] = ob;
|
|
228312
229005
|
}
|
|
229006
|
+
const orderbook = this.orderbooks[symbol];
|
|
228313
229007
|
const way = this.safeNumber(data, 'way');
|
|
228314
229008
|
const side = (way === 1) ? 'bids' : 'asks';
|
|
228315
229009
|
if (way === 1) {
|
|
@@ -228888,11 +229582,11 @@ class bitmex extends _bitmex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z
|
|
|
228888
229582
|
const market = this.safeMarket(marketId);
|
|
228889
229583
|
const symbol = market['symbol'];
|
|
228890
229584
|
const messageHash = table + ':' + marketId;
|
|
228891
|
-
|
|
229585
|
+
const ticker = this.safeDict(this.tickers, symbol, {});
|
|
228892
229586
|
const info = this.safeDict(ticker, 'info', {});
|
|
228893
|
-
|
|
228894
|
-
tickers[symbol] =
|
|
228895
|
-
this.tickers[symbol] =
|
|
229587
|
+
const parsedTicker = this.parseTicker(this.extend(info, update), market);
|
|
229588
|
+
tickers[symbol] = parsedTicker;
|
|
229589
|
+
this.tickers[symbol] = parsedTicker;
|
|
228896
229590
|
client.resolve(ticker, messageHash);
|
|
228897
229591
|
}
|
|
228898
229592
|
client.resolve(tickers, 'instrument');
|
|
@@ -235888,7 +236582,7 @@ class cex extends _cex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z {
|
|
|
235888
236582
|
stored.append(parsed);
|
|
235889
236583
|
}
|
|
235890
236584
|
const messageHash = 'trades';
|
|
235891
|
-
this.trades = stored;
|
|
236585
|
+
this.trades = stored; // trades don't have symbol
|
|
235892
236586
|
client.resolve(this.trades, messageHash);
|
|
235893
236587
|
}
|
|
235894
236588
|
parseWsOldTrade(trade, market = undefined) {
|
|
@@ -235932,7 +236626,7 @@ class cex extends _cex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z {
|
|
|
235932
236626
|
// }
|
|
235933
236627
|
//
|
|
235934
236628
|
const data = this.safeValue(message, 'data', []);
|
|
235935
|
-
const stored = this.trades;
|
|
236629
|
+
const stored = this.trades; // to do fix this, this.trades is not meant to be used like this
|
|
235936
236630
|
for (let i = 0; i < data.length; i++) {
|
|
235937
236631
|
const rawTrade = data[i];
|
|
235938
236632
|
const parsed = this.parseWsOldTrade(rawTrade);
|
|
@@ -245472,10 +246166,11 @@ class gemini extends _gemini_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z
|
|
|
245472
246166
|
const market = this.safeMarket(marketId.toLowerCase());
|
|
245473
246167
|
const symbol = market['symbol'];
|
|
245474
246168
|
const messageHash = 'orderbook:' + symbol;
|
|
245475
|
-
|
|
245476
|
-
|
|
245477
|
-
|
|
246169
|
+
if (!(symbol in this.orderbooks)) {
|
|
246170
|
+
const ob = this.orderBook();
|
|
246171
|
+
this.orderbooks[symbol] = ob;
|
|
245478
246172
|
}
|
|
246173
|
+
const orderbook = this.orderbooks[symbol];
|
|
245479
246174
|
const bids = orderbook['bids'];
|
|
245480
246175
|
const asks = orderbook['asks'];
|
|
245481
246176
|
for (let i = 0; i < rawOrderBookChanges.length; i++) {
|
|
@@ -282094,6 +282789,9 @@ class timex extends _abstract_timex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
|
|
|
282094
282789
|
'fetchCrossBorrowRates': false,
|
|
282095
282790
|
'fetchCurrencies': true,
|
|
282096
282791
|
'fetchDeposit': false,
|
|
282792
|
+
'fetchDepositAddress': true,
|
|
282793
|
+
'fetchDepositAddresses': false,
|
|
282794
|
+
'fetchDepositAddressesByNetwork': false,
|
|
282097
282795
|
'fetchDeposits': true,
|
|
282098
282796
|
'fetchFundingHistory': false,
|
|
282099
282797
|
'fetchFundingRate': false,
|
|
@@ -283574,7 +284272,69 @@ class timex extends _abstract_timex_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
|
|
|
283574
284272
|
'trades': rawTrades,
|
|
283575
284273
|
}, market);
|
|
283576
284274
|
}
|
|
284275
|
+
async fetchDepositAddress(code, params = {}) {
|
|
284276
|
+
/**
|
|
284277
|
+
* @method
|
|
284278
|
+
* @name timex#fetchDepositAddress
|
|
284279
|
+
* @description fetch the deposit address for a currency associated with this account, does not accept params["network"]
|
|
284280
|
+
* @param {string} code unified currency code
|
|
284281
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
284282
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
284283
|
+
*/
|
|
284284
|
+
await this.loadMarkets();
|
|
284285
|
+
const currency = this.currency(code);
|
|
284286
|
+
const request = {
|
|
284287
|
+
'symbol': currency['code'],
|
|
284288
|
+
};
|
|
284289
|
+
const response = await this.currenciesGetSSymbol(this.extend(request, params));
|
|
284290
|
+
//
|
|
284291
|
+
// {
|
|
284292
|
+
// id: '1',
|
|
284293
|
+
// currency: {
|
|
284294
|
+
// symbol: 'BTC',
|
|
284295
|
+
// name: 'Bitcoin',
|
|
284296
|
+
// address: '0x8370fbc6ddec1e18b4e41e72ed943e238458487c',
|
|
284297
|
+
// decimals: '8',
|
|
284298
|
+
// tradeDecimals: '20',
|
|
284299
|
+
// fiatSymbol: 'BTC',
|
|
284300
|
+
// depositEnabled: true,
|
|
284301
|
+
// withdrawalEnabled: true,
|
|
284302
|
+
// transferEnabled: true,
|
|
284303
|
+
// active: true
|
|
284304
|
+
// }
|
|
284305
|
+
// }
|
|
284306
|
+
//
|
|
284307
|
+
const data = this.safeDict(response, 'currency', {});
|
|
284308
|
+
return this.parseDepositAddress(data, currency);
|
|
284309
|
+
}
|
|
284310
|
+
parseDepositAddress(depositAddress, currency = undefined) {
|
|
284311
|
+
//
|
|
284312
|
+
// {
|
|
284313
|
+
// symbol: 'BTC',
|
|
284314
|
+
// name: 'Bitcoin',
|
|
284315
|
+
// address: '0x8370fbc6ddec1e18b4e41e72ed943e238458487c',
|
|
284316
|
+
// decimals: '8',
|
|
284317
|
+
// tradeDecimals: '20',
|
|
284318
|
+
// fiatSymbol: 'BTC',
|
|
284319
|
+
// depositEnabled: true,
|
|
284320
|
+
// withdrawalEnabled: true,
|
|
284321
|
+
// transferEnabled: true,
|
|
284322
|
+
// active: true
|
|
284323
|
+
// }
|
|
284324
|
+
//
|
|
284325
|
+
const currencyId = this.safeString(depositAddress, 'symbol');
|
|
284326
|
+
return {
|
|
284327
|
+
'info': depositAddress,
|
|
284328
|
+
'currency': this.safeCurrencyCode(currencyId, currency),
|
|
284329
|
+
'address': this.safeString(depositAddress, 'address'),
|
|
284330
|
+
'tag': undefined,
|
|
284331
|
+
'network': undefined,
|
|
284332
|
+
};
|
|
284333
|
+
}
|
|
283577
284334
|
sign(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
|
|
284335
|
+
const paramsToExtract = this.extractParams(path);
|
|
284336
|
+
path = this.implodeParams(path, params);
|
|
284337
|
+
params = this.omit(params, paramsToExtract);
|
|
283578
284338
|
let url = this.urls['api']['rest'] + '/' + api + '/' + path;
|
|
283579
284339
|
if (Object.keys(params).length) {
|
|
283580
284340
|
url += '?' + this.urlencodeWithArrayRepeat(params);
|
|
@@ -306308,7 +307068,7 @@ SOFTWARE.
|
|
|
306308
307068
|
|
|
306309
307069
|
//-----------------------------------------------------------------------------
|
|
306310
307070
|
// this is updated by vss.js when building
|
|
306311
|
-
const version = '4.2.
|
|
307071
|
+
const version = '4.2.47';
|
|
306312
307072
|
_src_base_Exchange_js__WEBPACK_IMPORTED_MODULE_0__/* .Exchange */ .e.ccxtVersion = version;
|
|
306313
307073
|
//-----------------------------------------------------------------------------
|
|
306314
307074
|
|