ccxt-ir 4.9.27 → 4.9.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +4 -1
- package/dist/cjs/src/abstract/raastin.js +11 -0
- package/dist/cjs/src/bit24.js +380 -380
- package/dist/cjs/src/bitpin.js +478 -478
- package/dist/cjs/src/kifpoolme.js +4 -4
- package/dist/cjs/src/raastin.js +367 -0
- package/js/ccxt.d.ts +5 -2
- package/js/ccxt.js +4 -2
- package/js/src/abstract/bitpin.d.ts +11 -11
- package/js/src/abstract/raastin.d.ts +10 -0
- package/js/src/abstract/raastin.js +11 -0
- package/js/src/base/Exchange.d.ts +926 -926
- package/js/src/bit24.js +383 -383
- package/js/src/bitpin.js +481 -481
- package/js/src/coinbaseexchange.d.ts +334 -334
- package/js/src/kifpoolme.js +4 -4
- package/js/src/protobuf/mexc/compiled.d.cts +2 -2
- package/js/src/raastin.d.ts +22 -0
- package/js/src/raastin.js +366 -0
- package/js/src/static_dependencies/fflake/browser.d.ts +222 -222
- package/js/src/static_dependencies/qs/formats.d.cts +8 -8
- package/js/src/static_dependencies/qs/index.d.cts +4 -4
- package/js/src/static_dependencies/qs/parse.d.cts +2 -2
- package/js/src/static_dependencies/qs/stringify.d.cts +2 -2
- package/js/src/static_dependencies/qs/utils.d.cts +9 -9
- package/package.json +1 -1
|
@@ -23,7 +23,7 @@ class kifpoolme extends kifpoolme$1["default"] {
|
|
|
23
23
|
'pro': false,
|
|
24
24
|
'has': {
|
|
25
25
|
'CORS': undefined,
|
|
26
|
-
'spot':
|
|
26
|
+
'spot': false,
|
|
27
27
|
'margin': false,
|
|
28
28
|
'swap': false,
|
|
29
29
|
'future': false,
|
|
@@ -152,8 +152,8 @@ class kifpoolme extends kifpoolme$1["default"] {
|
|
|
152
152
|
'baseId': baseId,
|
|
153
153
|
'quoteId': quoteId,
|
|
154
154
|
'settleId': undefined,
|
|
155
|
-
'type': '
|
|
156
|
-
'spot':
|
|
155
|
+
'type': 'otc',
|
|
156
|
+
'spot': false,
|
|
157
157
|
'margin': false,
|
|
158
158
|
'swap': false,
|
|
159
159
|
'future': false,
|
|
@@ -300,7 +300,7 @@ class kifpoolme extends kifpoolme$1["default"] {
|
|
|
300
300
|
// "slug": "bitcoin-BTC",
|
|
301
301
|
// "quoteId": "USDT" or "IRT"
|
|
302
302
|
// }
|
|
303
|
-
const marketType = '
|
|
303
|
+
const marketType = 'otc';
|
|
304
304
|
const marketId = this.safeString(ticker, 'marketId');
|
|
305
305
|
const symbol = this.safeSymbol(marketId, market, undefined, marketType);
|
|
306
306
|
const quoteId = this.safeString(ticker, 'quoteId', 'USDT');
|
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var raastin$1 = require('./abstract/raastin.js');
|
|
6
|
+
|
|
7
|
+
// ----------------------------------------------------------------------------
|
|
8
|
+
// ---------------------------------------------------------------------------
|
|
9
|
+
/**
|
|
10
|
+
* @class raastin
|
|
11
|
+
* @augments Exchange
|
|
12
|
+
* @description Set rateLimit to 1000 if fully verified
|
|
13
|
+
*/
|
|
14
|
+
class raastin extends raastin$1["default"] {
|
|
15
|
+
describe() {
|
|
16
|
+
return this.deepExtend(super.describe(), {
|
|
17
|
+
'id': 'raastin',
|
|
18
|
+
'name': 'Raastin',
|
|
19
|
+
'countries': ['IR'],
|
|
20
|
+
'rateLimit': 1000,
|
|
21
|
+
'version': '1',
|
|
22
|
+
'certified': false,
|
|
23
|
+
'pro': false,
|
|
24
|
+
'has': {
|
|
25
|
+
'CORS': undefined,
|
|
26
|
+
'spot': true,
|
|
27
|
+
'margin': false,
|
|
28
|
+
'swap': false,
|
|
29
|
+
'future': false,
|
|
30
|
+
'option': false,
|
|
31
|
+
'addMargin': false,
|
|
32
|
+
'cancelAllOrders': false,
|
|
33
|
+
'cancelOrder': false,
|
|
34
|
+
'cancelOrders': false,
|
|
35
|
+
'createDepositAddress': false,
|
|
36
|
+
'createOrder': false,
|
|
37
|
+
'createStopLimitOrder': false,
|
|
38
|
+
'createStopMarketOrder': false,
|
|
39
|
+
'createStopOrder': false,
|
|
40
|
+
'editOrder': false,
|
|
41
|
+
'fetchBalance': false,
|
|
42
|
+
'fetchBorrowInterest': false,
|
|
43
|
+
'fetchBorrowRateHistories': false,
|
|
44
|
+
'fetchBorrowRateHistory': false,
|
|
45
|
+
'fetchClosedOrders': false,
|
|
46
|
+
'fetchCrossBorrowRate': false,
|
|
47
|
+
'fetchCrossBorrowRates': false,
|
|
48
|
+
'fetchCurrencies': false,
|
|
49
|
+
'fetchDepositAddress': false,
|
|
50
|
+
'fetchDeposits': false,
|
|
51
|
+
'fetchFundingHistory': false,
|
|
52
|
+
'fetchFundingRate': false,
|
|
53
|
+
'fetchFundingRateHistory': false,
|
|
54
|
+
'fetchFundingRates': false,
|
|
55
|
+
'fetchIndexOHLCV': false,
|
|
56
|
+
'fetchIsolatedBorrowRate': false,
|
|
57
|
+
'fetchIsolatedBorrowRates': false,
|
|
58
|
+
'fetchL2OrderBook': false,
|
|
59
|
+
'fetchL3OrderBook': false,
|
|
60
|
+
'fetchLedger': false,
|
|
61
|
+
'fetchLedgerEntry': false,
|
|
62
|
+
'fetchLeverageTiers': false,
|
|
63
|
+
'fetchMarkets': true,
|
|
64
|
+
'fetchMarkOHLCV': false,
|
|
65
|
+
'fetchMyTrades': false,
|
|
66
|
+
'fetchOHLCV': false,
|
|
67
|
+
'fetchOpenInterestHistory': false,
|
|
68
|
+
'fetchOpenOrders': false,
|
|
69
|
+
'fetchOrder': false,
|
|
70
|
+
'fetchOrderBook': true,
|
|
71
|
+
'fetchOrders': false,
|
|
72
|
+
'fetchOrderTrades': 'emulated',
|
|
73
|
+
'fetchPositions': false,
|
|
74
|
+
'fetchPremiumIndexOHLCV': false,
|
|
75
|
+
'fetchTicker': true,
|
|
76
|
+
'fetchTickers': true,
|
|
77
|
+
'fetchTime': false,
|
|
78
|
+
'fetchTrades': false,
|
|
79
|
+
'fetchTradingFee': false,
|
|
80
|
+
'fetchTradingFees': false,
|
|
81
|
+
'fetchWithdrawals': false,
|
|
82
|
+
'setLeverage': false,
|
|
83
|
+
'setMarginMode': false,
|
|
84
|
+
'transfer': false,
|
|
85
|
+
'withdraw': false,
|
|
86
|
+
},
|
|
87
|
+
'comment': 'This comment is optional',
|
|
88
|
+
'urls': {
|
|
89
|
+
'logo': 'https://cdn.arz.digital/cr-odin/img/exchanges/raastin/64x64.png',
|
|
90
|
+
'api': {
|
|
91
|
+
'public': 'https://api.raastin.com',
|
|
92
|
+
},
|
|
93
|
+
'www': 'https://raastin.com',
|
|
94
|
+
'doc': [
|
|
95
|
+
'https://api.raastin.com/docs',
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
'api': {
|
|
99
|
+
'public': {
|
|
100
|
+
'get': {
|
|
101
|
+
'api/v1/market/symbols': 1,
|
|
102
|
+
'api/v1/market/symbols/{symbol}/': 1,
|
|
103
|
+
'api/v1/market/depth/{symbol}': 1,
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
'fees': {
|
|
108
|
+
'trading': {
|
|
109
|
+
'tierBased': false,
|
|
110
|
+
'percentage': true,
|
|
111
|
+
'maker': this.parseNumber('0'),
|
|
112
|
+
'taker': this.parseNumber('0.002'),
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
async fetchMarkets(params = {}) {
|
|
118
|
+
/**
|
|
119
|
+
* @method
|
|
120
|
+
* @name raastin#fetchMarkets
|
|
121
|
+
* @description retrieves data on all markets for raastin
|
|
122
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
123
|
+
* @returns {object[]} an array of objects representing market data
|
|
124
|
+
*/
|
|
125
|
+
const response = await this.publicGetApiV1MarketSymbols(params);
|
|
126
|
+
// Response is a flat array, not nested in 'result'
|
|
127
|
+
const markets = response;
|
|
128
|
+
const result = [];
|
|
129
|
+
for (let i = 0; i < markets.length; i++) {
|
|
130
|
+
const market = this.parseMarket(markets[i]);
|
|
131
|
+
result.push(market);
|
|
132
|
+
}
|
|
133
|
+
return result;
|
|
134
|
+
}
|
|
135
|
+
parseMarket(market) {
|
|
136
|
+
// {
|
|
137
|
+
// "id": 1,
|
|
138
|
+
// "name": "USDTIRT",
|
|
139
|
+
// "asset": {
|
|
140
|
+
// "id": 4,
|
|
141
|
+
// "symbol": "USDT",
|
|
142
|
+
// "precision": 8,
|
|
143
|
+
// "step_size": 8,
|
|
144
|
+
// "name": "tether",
|
|
145
|
+
// "name_fa": "تتر",
|
|
146
|
+
// "logo": "https://cdn.raastin.com/core-media-public/coins/logo/USDT.png",
|
|
147
|
+
// "original_symbol": "USDT",
|
|
148
|
+
// "original_name_fa": "تتر",
|
|
149
|
+
// "trading_view_symbol": "BINANCE:USDTUSDT.P",
|
|
150
|
+
// "otc_status": "active",
|
|
151
|
+
// "price_page": true
|
|
152
|
+
// },
|
|
153
|
+
// "base_asset": {
|
|
154
|
+
// "id": 1,
|
|
155
|
+
// "symbol": "IRT",
|
|
156
|
+
// "precision": 0,
|
|
157
|
+
// "step_size": 8,
|
|
158
|
+
// "name": "toman",
|
|
159
|
+
// "name_fa": "تومان",
|
|
160
|
+
// "logo": "https://cdn.raastin.com/core-media-public/coins/logo/IRT.png",
|
|
161
|
+
// "original_symbol": "IRT",
|
|
162
|
+
// "original_name_fa": "تومان",
|
|
163
|
+
// "trading_view_symbol": "",
|
|
164
|
+
// "otc_status": "active",
|
|
165
|
+
// "price_page": true
|
|
166
|
+
// },
|
|
167
|
+
// "taker_fee": "0.002",
|
|
168
|
+
// "maker_fee": "0",
|
|
169
|
+
// "tick_size": 0,
|
|
170
|
+
// "step_size": 2,
|
|
171
|
+
// "min_trade_quantity": "0",
|
|
172
|
+
// "max_trade_quantity": "1000000000000000000",
|
|
173
|
+
// "enable": true,
|
|
174
|
+
// "bookmark": false,
|
|
175
|
+
// "margin_enable": true,
|
|
176
|
+
// "strategy_enable": true
|
|
177
|
+
// }
|
|
178
|
+
const id = this.safeString(market, 'name');
|
|
179
|
+
const asset = this.safeDict(market, 'asset', {});
|
|
180
|
+
const baseAsset = this.safeDict(market, 'base_asset', {});
|
|
181
|
+
let baseId = this.safeString(asset, 'symbol');
|
|
182
|
+
let quoteId = this.safeString(baseAsset, 'symbol');
|
|
183
|
+
const base = this.safeCurrencyCode(baseId);
|
|
184
|
+
const quote = this.safeCurrencyCode(quoteId);
|
|
185
|
+
baseId = baseId.toLowerCase();
|
|
186
|
+
quoteId = quoteId.toLowerCase();
|
|
187
|
+
const basePrecision = this.safeInteger(asset, 'precision');
|
|
188
|
+
const quotePrecision = this.safeInteger(baseAsset, 'precision');
|
|
189
|
+
const minAmount = this.safeString(market, 'min_trade_quantity');
|
|
190
|
+
const maxAmount = this.safeString(market, 'max_trade_quantity');
|
|
191
|
+
const enabled = this.safeBool(market, 'enable', true);
|
|
192
|
+
const marginEnabled = this.safeBool(market, 'margin_enable', false);
|
|
193
|
+
return {
|
|
194
|
+
'id': id,
|
|
195
|
+
'symbol': base + '/' + quote,
|
|
196
|
+
'base': base,
|
|
197
|
+
'quote': quote,
|
|
198
|
+
'settle': undefined,
|
|
199
|
+
'baseId': baseId,
|
|
200
|
+
'quoteId': quoteId,
|
|
201
|
+
'settleId': undefined,
|
|
202
|
+
'type': 'spot',
|
|
203
|
+
'spot': true,
|
|
204
|
+
'margin': marginEnabled,
|
|
205
|
+
'swap': false,
|
|
206
|
+
'future': false,
|
|
207
|
+
'option': false,
|
|
208
|
+
'active': enabled,
|
|
209
|
+
'contract': false,
|
|
210
|
+
'linear': undefined,
|
|
211
|
+
'inverse': undefined,
|
|
212
|
+
'contractSize': undefined,
|
|
213
|
+
'expiry': undefined,
|
|
214
|
+
'expiryDatetime': undefined,
|
|
215
|
+
'strike': undefined,
|
|
216
|
+
'optionType': undefined,
|
|
217
|
+
'precision': {
|
|
218
|
+
'amount': basePrecision,
|
|
219
|
+
'price': quotePrecision,
|
|
220
|
+
},
|
|
221
|
+
'limits': {
|
|
222
|
+
'leverage': {
|
|
223
|
+
'min': undefined,
|
|
224
|
+
'max': undefined,
|
|
225
|
+
},
|
|
226
|
+
'amount': {
|
|
227
|
+
'min': this.parseNumber(minAmount),
|
|
228
|
+
'max': this.parseNumber(maxAmount),
|
|
229
|
+
},
|
|
230
|
+
'price': {
|
|
231
|
+
'min': undefined,
|
|
232
|
+
'max': undefined,
|
|
233
|
+
},
|
|
234
|
+
'cost': {
|
|
235
|
+
'min': undefined,
|
|
236
|
+
'max': undefined,
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
'created': undefined,
|
|
240
|
+
'info': market,
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
async fetchTickers(symbols = undefined, params = {}) {
|
|
244
|
+
/**
|
|
245
|
+
* @method
|
|
246
|
+
* @name raastin#fetchTickers
|
|
247
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
248
|
+
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
249
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
250
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
251
|
+
*/
|
|
252
|
+
await this.loadMarkets();
|
|
253
|
+
if (symbols !== undefined) {
|
|
254
|
+
symbols = this.marketSymbols(symbols);
|
|
255
|
+
}
|
|
256
|
+
const response = await this.publicGetApiV1MarketSymbols(params);
|
|
257
|
+
const markets = this.safeList(response, response);
|
|
258
|
+
const result = {};
|
|
259
|
+
for (let i = 0; i < markets.length; i++) {
|
|
260
|
+
const marketData = markets[i];
|
|
261
|
+
const ticker = this.parseTicker(marketData);
|
|
262
|
+
const symbol = ticker['symbol'];
|
|
263
|
+
result[symbol] = ticker;
|
|
264
|
+
}
|
|
265
|
+
return this.filterByArrayTickers(result, 'symbol', symbols);
|
|
266
|
+
}
|
|
267
|
+
async fetchTicker(symbol, params = {}) {
|
|
268
|
+
/**
|
|
269
|
+
* @method
|
|
270
|
+
* @name raastin#fetchTicker
|
|
271
|
+
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
272
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
273
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
274
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
275
|
+
*/
|
|
276
|
+
await this.loadMarkets();
|
|
277
|
+
const market = this.market(symbol);
|
|
278
|
+
const request = {
|
|
279
|
+
'symbol': market['id'],
|
|
280
|
+
};
|
|
281
|
+
const response = await this.publicGetApiV1MarketSymbolsSymbol(request);
|
|
282
|
+
return this.parseTicker(response, market);
|
|
283
|
+
}
|
|
284
|
+
parseTicker(ticker, market = undefined) {
|
|
285
|
+
// Raastin ticker response has the same structure as market data
|
|
286
|
+
// We extract available price/volume information
|
|
287
|
+
const marketType = 'spot';
|
|
288
|
+
const marketId = this.safeString(ticker, 'name');
|
|
289
|
+
const symbol = this.safeSymbol(marketId, market, undefined, marketType);
|
|
290
|
+
// Since the exact ticker fields are not provided in the user's example,
|
|
291
|
+
// we'll set up the basic structure. These may need adjustment based on actual API response.
|
|
292
|
+
const last = this.safeFloat(ticker, 'last_price', 0);
|
|
293
|
+
const high = this.safeFloat(ticker, '24h_high', 0);
|
|
294
|
+
const low = this.safeFloat(ticker, '24h_low', 0);
|
|
295
|
+
const baseVolume = this.safeFloat(ticker, '24h_volume', 0);
|
|
296
|
+
const quoteVolume = this.safeFloat(ticker, '24h_quote_volume', 0);
|
|
297
|
+
const bid = this.safeFloat(ticker, 'bid_price', 0);
|
|
298
|
+
const ask = this.safeFloat(ticker, 'ask_price', 0);
|
|
299
|
+
return this.safeTicker({
|
|
300
|
+
'symbol': symbol,
|
|
301
|
+
'timestamp': undefined,
|
|
302
|
+
'datetime': undefined,
|
|
303
|
+
'high': high,
|
|
304
|
+
'low': low,
|
|
305
|
+
'bid': bid,
|
|
306
|
+
'bidVolume': undefined,
|
|
307
|
+
'ask': ask,
|
|
308
|
+
'askVolume': undefined,
|
|
309
|
+
'vwap': undefined,
|
|
310
|
+
'open': undefined,
|
|
311
|
+
'close': last,
|
|
312
|
+
'last': last,
|
|
313
|
+
'previousClose': undefined,
|
|
314
|
+
'change': undefined,
|
|
315
|
+
'percentage': undefined,
|
|
316
|
+
'average': undefined,
|
|
317
|
+
'baseVolume': baseVolume,
|
|
318
|
+
'quoteVolume': quoteVolume,
|
|
319
|
+
'info': ticker,
|
|
320
|
+
}, market);
|
|
321
|
+
}
|
|
322
|
+
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
323
|
+
/**
|
|
324
|
+
* @method
|
|
325
|
+
* @name raastin#fetchOrderBook
|
|
326
|
+
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
327
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
328
|
+
* @param {int} [limit] max number of entries per orderbook to return
|
|
329
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
330
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
331
|
+
*/
|
|
332
|
+
await this.loadMarkets();
|
|
333
|
+
const market = this.market(symbol);
|
|
334
|
+
const request = {
|
|
335
|
+
'symbol': market['id'],
|
|
336
|
+
};
|
|
337
|
+
const response = await this.publicGetApiV1MarketDepthSymbol(request);
|
|
338
|
+
// Response structure:
|
|
339
|
+
// {
|
|
340
|
+
// "last_trade": { "amount": "0.31", "price": "164311", "total": "50936" },
|
|
341
|
+
// "bids": [{ "price": "164003", "amount": "19.99", "depth": "1", "total": "3278419" }],
|
|
342
|
+
// "asks": [{ "price": "166000", "amount": "47.79", "depth": "2", "total": "7933140" }]
|
|
343
|
+
// }
|
|
344
|
+
const timestamp = Date.now();
|
|
345
|
+
return this.parseOrderBook(response, symbol, timestamp, 'bids', 'asks', 'price', 'amount');
|
|
346
|
+
}
|
|
347
|
+
sign(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
|
|
348
|
+
let url = this.urls['api']['public'] + '/' + path;
|
|
349
|
+
// Handle path parameters like {symbol}
|
|
350
|
+
if (path.indexOf('{symbol}') >= 0) {
|
|
351
|
+
const symbol = this.safeString(params, 'symbol');
|
|
352
|
+
if (symbol !== undefined) {
|
|
353
|
+
url = url.replace('{symbol}', symbol);
|
|
354
|
+
params = this.omit(params, 'symbol');
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
const query = this.omit(params, this.extractParams(path));
|
|
358
|
+
// Add query parameters if any remain
|
|
359
|
+
if (Object.keys(query).length) {
|
|
360
|
+
url = url + '?' + this.urlencode(query);
|
|
361
|
+
}
|
|
362
|
+
headers = { 'Content-Type': 'application/json' };
|
|
363
|
+
return { 'url': url, 'method': method, 'body': body, 'headers': headers };
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
exports["default"] = raastin;
|
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
5
|
import type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, LongShortRatio, OrderBooks, OpenInterests, ConstructorArgs } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.9.
|
|
7
|
+
declare const version = "4.9.29";
|
|
8
8
|
import abantether from './src/abantether.js';
|
|
9
9
|
import afratether from './src/afratether.js';
|
|
10
10
|
import alpaca from './src/alpaca.js';
|
|
@@ -128,6 +128,7 @@ import pingi from './src/pingi.js';
|
|
|
128
128
|
import poloniex from './src/poloniex.js';
|
|
129
129
|
import pooleno from './src/pooleno.js';
|
|
130
130
|
import probit from './src/probit.js';
|
|
131
|
+
import raastin from './src/raastin.js';
|
|
131
132
|
import ramzinex from './src/ramzinex.js';
|
|
132
133
|
import sarmayex from './src/sarmayex.js';
|
|
133
134
|
import sarrafex from './src/sarrafex.js';
|
|
@@ -348,6 +349,7 @@ declare const exchanges: {
|
|
|
348
349
|
poloniex: typeof poloniex;
|
|
349
350
|
pooleno: typeof pooleno;
|
|
350
351
|
probit: typeof probit;
|
|
352
|
+
raastin: typeof raastin;
|
|
351
353
|
ramzinex: typeof ramzinex;
|
|
352
354
|
sarmayex: typeof sarmayex;
|
|
353
355
|
sarrafex: typeof sarrafex;
|
|
@@ -651,6 +653,7 @@ declare const ccxt: {
|
|
|
651
653
|
poloniex: typeof poloniex;
|
|
652
654
|
pooleno: typeof pooleno;
|
|
653
655
|
probit: typeof probit;
|
|
656
|
+
raastin: typeof raastin;
|
|
654
657
|
ramzinex: typeof ramzinex;
|
|
655
658
|
sarmayex: typeof sarmayex;
|
|
656
659
|
sarrafex: typeof sarrafex;
|
|
@@ -675,5 +678,5 @@ declare const ccxt: {
|
|
|
675
678
|
zaif: typeof zaif;
|
|
676
679
|
zonda: typeof zonda;
|
|
677
680
|
} & typeof functions & typeof errors;
|
|
678
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, ConstructorArgs, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, OrderBooks, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, OpenInterests, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, abantether, afratether, alpaca, apex, arzinja, arzplus, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit24, bit2c, bitbank, bitbarg, bitbns, bitfinex, bitflyer, bitget, bithumb, bitimen, bitir, bitmart, bitmex, bitopro, bitpin, bitrue, bitso, bitstamp, bitteam, bittrade, bitunix, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, bydfi, cafearz, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, ellipx, eterex, excoino, exir, exmo, exnovin, farhadexchange, fmfwio, foxbit, gate, gateio, gemini, hamtapay, hashkey, hibachi, hitbtc, hitobit, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, iranexchange, jibitex, kcex, kifpoolme, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mazdax, mercado, mexc, modetrade, myokx, ndax, nobitex, novadax, oceanex, okcoin, okexchange, okx, okxus, ompfinex, onetrading, oxfun, p2b, paradex, paymium, phemex, pingi, poloniex, pooleno, probit, ramzinex, sarmayex, sarrafex, tabdeal, tehran_exchange, tetherland, timex, tokocrypto, toobit, tradeogre, twox, ubitex, upbit, vertex, wallex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
681
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, ConstructorArgs, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, OrderBooks, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, OpenInterests, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, abantether, afratether, alpaca, apex, arzinja, arzplus, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit24, bit2c, bitbank, bitbarg, bitbns, bitfinex, bitflyer, bitget, bithumb, bitimen, bitir, bitmart, bitmex, bitopro, bitpin, bitrue, bitso, bitstamp, bitteam, bittrade, bitunix, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, bydfi, cafearz, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, ellipx, eterex, excoino, exir, exmo, exnovin, farhadexchange, fmfwio, foxbit, gate, gateio, gemini, hamtapay, hashkey, hibachi, hitbtc, hitobit, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, iranexchange, jibitex, kcex, kifpoolme, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mazdax, mercado, mexc, modetrade, myokx, ndax, nobitex, novadax, oceanex, okcoin, okexchange, okx, okxus, ompfinex, onetrading, oxfun, p2b, paradex, paymium, phemex, pingi, poloniex, pooleno, probit, raastin, ramzinex, sarmayex, sarrafex, tabdeal, tehran_exchange, tetherland, timex, tokocrypto, toobit, tradeogre, twox, ubitex, upbit, vertex, wallex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
679
682
|
export default ccxt;
|
package/js/ccxt.js
CHANGED
|
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
|
|
|
38
38
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.9.
|
|
41
|
+
const version = '4.9.29';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import abantether from './src/abantether.js';
|
|
@@ -164,6 +164,7 @@ import pingi from './src/pingi.js';
|
|
|
164
164
|
import poloniex from './src/poloniex.js';
|
|
165
165
|
import pooleno from './src/pooleno.js';
|
|
166
166
|
import probit from './src/probit.js';
|
|
167
|
+
import raastin from './src/raastin.js';
|
|
167
168
|
import ramzinex from './src/ramzinex.js';
|
|
168
169
|
import sarmayex from './src/sarmayex.js';
|
|
169
170
|
import sarrafex from './src/sarrafex.js';
|
|
@@ -385,6 +386,7 @@ const exchanges = {
|
|
|
385
386
|
'poloniex': poloniex,
|
|
386
387
|
'pooleno': pooleno,
|
|
387
388
|
'probit': probit,
|
|
389
|
+
'raastin': raastin,
|
|
388
390
|
'ramzinex': ramzinex,
|
|
389
391
|
'sarmayex': sarmayex,
|
|
390
392
|
'sarrafex': sarrafex,
|
|
@@ -496,6 +498,6 @@ pro.exchanges = Object.keys(pro);
|
|
|
496
498
|
pro['Exchange'] = Exchange; // now the same for rest and ts
|
|
497
499
|
//-----------------------------------------------------------------------------
|
|
498
500
|
const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
|
|
499
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, abantether, afratether, alpaca, apex, arzinja, arzplus, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit24, bit2c, bitbank, bitbarg, bitbns, bitfinex, bitflyer, bitget, bithumb, bitimen, bitir, bitmart, bitmex, bitopro, bitpin, bitrue, bitso, bitstamp, bitteam, bittrade, bitunix, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, bydfi, cafearz, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, ellipx, eterex, excoino, exir, exmo, exnovin, farhadexchange, fmfwio, foxbit, gate, gateio, gemini, hamtapay, hashkey, hibachi, hitbtc, hitobit, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, iranexchange, jibitex, kcex, kifpoolme, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mazdax, mercado, mexc, modetrade, myokx, ndax, nobitex, novadax, oceanex, okcoin, okexchange, okx, okxus, ompfinex, onetrading, oxfun, p2b, paradex, paymium, phemex, pingi, poloniex, pooleno, probit, ramzinex, sarmayex, sarrafex, tabdeal, tehran_exchange, tetherland, timex, tokocrypto, toobit, tradeogre, twox, ubitex, upbit, vertex, wallex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
501
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, abantether, afratether, alpaca, apex, arzinja, arzplus, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit24, bit2c, bitbank, bitbarg, bitbns, bitfinex, bitflyer, bitget, bithumb, bitimen, bitir, bitmart, bitmex, bitopro, bitpin, bitrue, bitso, bitstamp, bitteam, bittrade, bitunix, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, bydfi, cafearz, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, ellipx, eterex, excoino, exir, exmo, exnovin, farhadexchange, fmfwio, foxbit, gate, gateio, gemini, hamtapay, hashkey, hibachi, hitbtc, hitobit, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, iranexchange, jibitex, kcex, kifpoolme, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mazdax, mercado, mexc, modetrade, myokx, ndax, nobitex, novadax, oceanex, okcoin, okexchange, okx, okxus, ompfinex, onetrading, oxfun, p2b, paradex, paymium, phemex, pingi, poloniex, pooleno, probit, raastin, ramzinex, sarmayex, sarrafex, tabdeal, tehran_exchange, tetherland, timex, tokocrypto, toobit, tradeogre, twox, ubitex, upbit, vertex, wallex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
500
502
|
export default ccxt;
|
|
501
503
|
//-----------------------------------------------------------------------------
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { implicitReturnType } from '../base/types.js';
|
|
2
|
-
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
-
interface Exchange {
|
|
4
|
-
publicGetV1MktMarkets(params?: {}): Promise<implicitReturnType>;
|
|
5
|
-
publicGetV2MthActives(params?: {}): Promise<implicitReturnType>;
|
|
6
|
-
publicGetV1MktTvGetBars(params?: {}): Promise<implicitReturnType>;
|
|
7
|
-
publicGetV4MthOrderbook(params?: {}): Promise<implicitReturnType>;
|
|
8
|
-
}
|
|
9
|
-
declare abstract class Exchange extends _Exchange {
|
|
10
|
-
}
|
|
11
|
-
export default Exchange;
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
publicGetV1MktMarkets(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
publicGetV2MthActives(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
publicGetV1MktTvGetBars(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
publicGetV4MthOrderbook(params?: {}): Promise<implicitReturnType>;
|
|
8
|
+
}
|
|
9
|
+
declare abstract class Exchange extends _Exchange {
|
|
10
|
+
}
|
|
11
|
+
export default Exchange;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
publicGetApiV1MarketSymbols(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
publicGetApiV1MarketSymbolsSymbol(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
publicGetApiV1MarketDepthSymbol(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
}
|
|
8
|
+
declare abstract class Exchange extends _Exchange {
|
|
9
|
+
}
|
|
10
|
+
export default Exchange;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// ----------------------------------------------------------------------------
|
|
2
|
+
|
|
3
|
+
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
+
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
+
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
+
|
|
7
|
+
// -------------------------------------------------------------------------------
|
|
8
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
9
|
+
class Exchange extends _Exchange {
|
|
10
|
+
}
|
|
11
|
+
export default Exchange;
|