ccxt-ir 4.9.3 → 4.9.4

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/dist/cjs/ccxt.js CHANGED
@@ -86,6 +86,7 @@ var foxbit = require('./src/foxbit.js');
86
86
  var gate = require('./src/gate.js');
87
87
  var gateio = require('./src/gateio.js');
88
88
  var gemini = require('./src/gemini.js');
89
+ var hamtapay = require('./src/hamtapay.js');
89
90
  var hashkey = require('./src/hashkey.js');
90
91
  var hibachi = require('./src/hibachi.js');
91
92
  var hitbtc = require('./src/hitbtc.js');
@@ -224,7 +225,7 @@ var xt$1 = require('./src/pro/xt.js');
224
225
 
225
226
  //-----------------------------------------------------------------------------
226
227
  // this is updated by vss.js when building
227
- const version = '4.9.3';
228
+ const version = '4.9.4';
228
229
  Exchange["default"].ccxtVersion = version;
229
230
  const exchanges = {
230
231
  'abantether': abantether["default"],
@@ -301,6 +302,7 @@ const exchanges = {
301
302
  'gate': gate["default"],
302
303
  'gateio': gateio["default"],
303
304
  'gemini': gemini["default"],
305
+ 'hamtapay': hamtapay["default"],
304
306
  'hashkey': hashkey["default"],
305
307
  'hibachi': hibachi["default"],
306
308
  'hitbtc': hitbtc["default"],
@@ -564,6 +566,7 @@ exports.foxbit = foxbit["default"];
564
566
  exports.gate = gate["default"];
565
567
  exports.gateio = gateio["default"];
566
568
  exports.gemini = gemini["default"];
569
+ exports.hamtapay = hamtapay["default"];
567
570
  exports.hashkey = hashkey["default"];
568
571
  exports.hibachi = hibachi["default"];
569
572
  exports.hitbtc = hitbtc["default"];
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var Exchange$1 = require('../base/Exchange.js');
6
+
7
+ // ----------------------------------------------------------------------------
8
+ class Exchange extends Exchange$1["default"] {
9
+ }
10
+
11
+ exports["default"] = Exchange;
@@ -270,7 +270,7 @@ class arzplus extends arzplus$1["default"] {
270
270
  'quoteId': quoteId,
271
271
  'settleId': undefined,
272
272
  'type': 'otc',
273
- 'spot': true,
273
+ 'spot': false,
274
274
  'margin': false,
275
275
  'swap': false,
276
276
  'future': false,
@@ -0,0 +1,300 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var hamtapay$1 = require('./abstract/hamtapay.js');
6
+
7
+ // ----------------------------------------------------------------------------
8
+ // ---------------------------------------------------------------------------
9
+ /**
10
+ * @class hamtapay
11
+ * @augments Exchange
12
+ * @description Set rateLimit to 1000 if fully verified
13
+ */
14
+ class hamtapay extends hamtapay$1["default"] {
15
+ describe() {
16
+ return this.deepExtend(super.describe(), {
17
+ 'id': 'hamtapay',
18
+ 'name': 'Hamtapay',
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': false,
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/hamtapay/64x64.png',
90
+ 'api': {
91
+ 'public': 'https://api.hamtapay.org',
92
+ },
93
+ 'www': 'https://hamtapay.net/',
94
+ 'doc': [
95
+ 'https://hamtapay.net/',
96
+ ],
97
+ },
98
+ 'api': {
99
+ 'public': {
100
+ 'get': {
101
+ '/financial/api/market': 1,
102
+ '/financial/api/vitrin/prices': 1,
103
+ },
104
+ },
105
+ },
106
+ 'fees': {
107
+ 'trading': {
108
+ 'tierBased': false,
109
+ 'percentage': true,
110
+ 'maker': this.parseNumber('0.001'),
111
+ 'taker': this.parseNumber('0.001'),
112
+ },
113
+ },
114
+ });
115
+ }
116
+ async fetchMarkets(params = {}) {
117
+ /**
118
+ * @method
119
+ * @name hamtapay#fetchMarkets
120
+ * @description retrieves data on all markets for hamtapay
121
+ * @see https://api.hamtapay.org/financial/api/market
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.publicGetFinancialApiMarket(params);
126
+ const result = [];
127
+ const marketData = this.safeList(response, 'data', []);
128
+ for (let i = 0; i < marketData.length; i++) {
129
+ const market = this.parseMarket(marketData[i]);
130
+ result.push(market);
131
+ }
132
+ return result;
133
+ }
134
+ parseMarket(market) {
135
+ // {
136
+ // "symbol": "USDT-IRT",
137
+ // "base": "USDT",
138
+ // "quote": "IRT",
139
+ // "base_currency_decimals": 3,
140
+ // "quote_currency_decimals": 0,
141
+ // "amount_decimals": 0,
142
+ // "price_decimals": 0
143
+ // }
144
+ const baseId = this.safeString(market, 'base');
145
+ const quoteId = this.safeString(market, 'quote');
146
+ const base = this.safeCurrencyCode(baseId);
147
+ const quote = this.safeCurrencyCode(quoteId);
148
+ const id = this.safeString(market, 'symbol');
149
+ return {
150
+ 'id': id,
151
+ 'symbol': base + '/' + quote,
152
+ 'base': base,
153
+ 'quote': quote,
154
+ 'settle': undefined,
155
+ 'baseId': baseId,
156
+ 'quoteId': quoteId,
157
+ 'settleId': undefined,
158
+ 'type': 'otc',
159
+ 'spot': false,
160
+ 'margin': false,
161
+ 'swap': false,
162
+ 'future': false,
163
+ 'option': false,
164
+ 'active': true,
165
+ 'contract': false,
166
+ 'linear': undefined,
167
+ 'inverse': undefined,
168
+ 'contractSize': undefined,
169
+ 'expiry': undefined,
170
+ 'expiryDatetime': undefined,
171
+ 'strike': undefined,
172
+ 'optionType': undefined,
173
+ 'precision': {
174
+ 'amount': undefined,
175
+ 'price': undefined,
176
+ },
177
+ 'limits': {
178
+ 'leverage': {
179
+ 'min': undefined,
180
+ 'max': undefined,
181
+ },
182
+ 'amount': {
183
+ 'min': undefined,
184
+ 'max': undefined,
185
+ },
186
+ 'price': {
187
+ 'min': undefined,
188
+ 'max': undefined,
189
+ },
190
+ 'cost': {
191
+ 'min': undefined,
192
+ 'max': undefined,
193
+ },
194
+ },
195
+ 'created': undefined,
196
+ 'info': market,
197
+ };
198
+ }
199
+ async fetchTickers(symbols = undefined, params = {}) {
200
+ /**
201
+ * @method
202
+ * @name hamtapay#fetchTickers
203
+ * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
204
+ * @see https://api.hamtapay.org/financial/api/vitrin/prices
205
+ * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
206
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
207
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
208
+ */
209
+ await this.loadMarkets();
210
+ if (symbols !== undefined) {
211
+ symbols = this.marketSymbols(symbols);
212
+ }
213
+ const response = await this.publicGetFinancialApiVitrinPrices(params);
214
+ const data = this.safeDict(response, 'data', {});
215
+ const result = {};
216
+ const quotes = ['IRT', 'USDT'];
217
+ for (let i = 0; i < quotes.length; i++) {
218
+ const current_qoute = quotes[i];
219
+ const corresponding_data = this.safeDict(data, current_qoute, {});
220
+ for (let j = 0; j < Object.keys(corresponding_data).length; j++) {
221
+ const current_base = Object.keys(corresponding_data)[j];
222
+ const current_ticker = corresponding_data[current_base];
223
+ current_ticker['base'] = current_base;
224
+ current_ticker['quote'] = current_qoute;
225
+ current_ticker['symbol'] = current_base + '/' + current_qoute;
226
+ current_ticker['id'] = current_base + '-' + current_qoute;
227
+ result[current_ticker['symbol']] = this.parseTicker(current_ticker);
228
+ }
229
+ }
230
+ return this.filterByArrayTickers(result, 'symbol', symbols);
231
+ }
232
+ async fetchTicker(symbol, params = {}) {
233
+ /**
234
+ * @method
235
+ * @name hamtapay#fetchTicker
236
+ * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
237
+ * @see https://hamtapay.com/management/all-coins/?format=json
238
+ * @param {string} symbol unified symbol of the market to fetch the ticker for
239
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
240
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
241
+ */
242
+ const ticker = await this.fetchTickers([symbol]);
243
+ return ticker[symbol];
244
+ }
245
+ parseTicker(ticker, market = undefined) {
246
+ // {
247
+ // "id": "USDT-IRT",
248
+ // "symbol": "USDT/IRT",
249
+ // "base": "USDT",
250
+ // "quote": "IRT",
251
+ // "min_price_24h": "111702",
252
+ // "max_price_24h": "115872",
253
+ // "market_price": "115942",
254
+ // "buy_price": "117101",
255
+ // "sell_price": "114782",
256
+ // "change_rate_24h": 3.29,
257
+ // "amount_decimals": 0,
258
+ // "price_decimals": 0,
259
+ // "status": "ACTIVE"
260
+ // }
261
+ const marketType = 'otc';
262
+ const marketId = this.safeString(ticker, 'id');
263
+ const symbol = this.safeSymbol(marketId, market, undefined, marketType);
264
+ const last = this.safeFloat(ticker, 'buy_price', 0);
265
+ const change = this.safeFloat(ticker, 'change_rate_24h', 0);
266
+ const ask = this.safeFloat(ticker, 'buy_price', 0);
267
+ const bid = this.safeFloat(ticker, 'sell_price', 0);
268
+ const high = this.safeFloat(ticker, 'max_price_24h', 0);
269
+ const low = this.safeFloat(ticker, 'min_price_24h', 0);
270
+ return this.safeTicker({
271
+ 'symbol': symbol,
272
+ 'timestamp': undefined,
273
+ 'datetime': undefined,
274
+ 'high': high,
275
+ 'low': low,
276
+ 'bid': bid,
277
+ 'bidVolume': undefined,
278
+ 'ask': ask,
279
+ 'askVolume': undefined,
280
+ 'vwap': undefined,
281
+ 'open': undefined,
282
+ 'close': last,
283
+ 'last': last,
284
+ 'previousClose': undefined,
285
+ 'change': undefined,
286
+ 'percentage': change,
287
+ 'average': undefined,
288
+ 'baseVolume': undefined,
289
+ 'quoteVolume': undefined,
290
+ 'info': ticker,
291
+ }, market);
292
+ }
293
+ sign(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
294
+ const url = this.urls['api']['public'] + '/' + path;
295
+ headers = { 'Content-Type': 'application/json' };
296
+ return { 'url': url, 'method': method, 'body': body, 'headers': headers };
297
+ }
298
+ }
299
+
300
+ exports["default"] = hamtapay;
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.3";
7
+ declare const version = "4.9.4";
8
8
  import abantether from './src/abantether.js';
9
9
  import afratether from './src/afratether.js';
10
10
  import alpaca from './src/alpaca.js';
@@ -79,6 +79,7 @@ import foxbit from './src/foxbit.js';
79
79
  import gate from './src/gate.js';
80
80
  import gateio from './src/gateio.js';
81
81
  import gemini from './src/gemini.js';
82
+ import hamtapay from './src/hamtapay.js';
82
83
  import hashkey from './src/hashkey.js';
83
84
  import hibachi from './src/hibachi.js';
84
85
  import hitbtc from './src/hitbtc.js';
@@ -289,6 +290,7 @@ declare const exchanges: {
289
290
  gate: typeof gate;
290
291
  gateio: typeof gateio;
291
292
  gemini: typeof gemini;
293
+ hamtapay: typeof hamtapay;
292
294
  hashkey: typeof hashkey;
293
295
  hibachi: typeof hibachi;
294
296
  hitbtc: typeof hitbtc;
@@ -582,6 +584,7 @@ declare const ccxt: {
582
584
  gate: typeof gate;
583
585
  gateio: typeof gateio;
584
586
  gemini: typeof gemini;
587
+ hamtapay: typeof hamtapay;
585
588
  hashkey: typeof hashkey;
586
589
  hibachi: typeof hibachi;
587
590
  hitbtc: typeof hitbtc;
@@ -645,5 +648,5 @@ declare const ccxt: {
645
648
  zaif: typeof zaif;
646
649
  zonda: typeof zonda;
647
650
  } & typeof functions & typeof errors;
648
- 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, 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, 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, hashkey, hibachi, hitbtc, hitobit, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, jibitex, kcex, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, nobitex, novadax, oceanex, okcoin, okexchange, okx, okxus, ompfinex, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, ramzinex, sarmayex, sarrafex, tabdeal, tetherland, timex, tokocrypto, toobit, tradeogre, twox, ubitex, upbit, vertex, wallex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
651
+ 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, 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, 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, jibitex, kcex, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, nobitex, novadax, oceanex, okcoin, okexchange, okx, okxus, ompfinex, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, ramzinex, sarmayex, sarrafex, tabdeal, tetherland, timex, tokocrypto, toobit, tradeogre, twox, ubitex, upbit, vertex, wallex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
649
652
  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.3';
41
+ const version = '4.9.4';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import abantether from './src/abantether.js';
@@ -115,6 +115,7 @@ import foxbit from './src/foxbit.js';
115
115
  import gate from './src/gate.js';
116
116
  import gateio from './src/gateio.js';
117
117
  import gemini from './src/gemini.js';
118
+ import hamtapay from './src/hamtapay.js';
118
119
  import hashkey from './src/hashkey.js';
119
120
  import hibachi from './src/hibachi.js';
120
121
  import hitbtc from './src/hitbtc.js';
@@ -326,6 +327,7 @@ const exchanges = {
326
327
  'gate': gate,
327
328
  'gateio': gateio,
328
329
  'gemini': gemini,
330
+ 'hamtapay': hamtapay,
329
331
  'hashkey': hashkey,
330
332
  'hibachi': hibachi,
331
333
  'hitbtc': hitbtc,
@@ -476,6 +478,6 @@ pro.exchanges = Object.keys(pro);
476
478
  pro['Exchange'] = Exchange; // now the same for rest and ts
477
479
  //-----------------------------------------------------------------------------
478
480
  const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
479
- 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, 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, 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, hashkey, hibachi, hitbtc, hitobit, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, jibitex, kcex, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, nobitex, novadax, oceanex, okcoin, okexchange, okx, okxus, ompfinex, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, ramzinex, sarmayex, sarrafex, tabdeal, tetherland, timex, tokocrypto, toobit, tradeogre, twox, ubitex, upbit, vertex, wallex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
481
+ 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, 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, 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, jibitex, kcex, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, nobitex, novadax, oceanex, okcoin, okexchange, okx, okxus, ompfinex, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, ramzinex, sarmayex, sarrafex, tabdeal, tetherland, timex, tokocrypto, toobit, tradeogre, twox, ubitex, upbit, vertex, wallex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
480
482
  export default ccxt;
481
483
  //-----------------------------------------------------------------------------
@@ -0,0 +1,9 @@
1
+ import { implicitReturnType } from '../base/types.js';
2
+ import { Exchange as _Exchange } from '../base/Exchange.js';
3
+ interface Exchange {
4
+ publicGetFinancialApiMarket(params?: {}): Promise<implicitReturnType>;
5
+ publicGetFinancialApiVitrinPrices(params?: {}): Promise<implicitReturnType>;
6
+ }
7
+ declare abstract class Exchange extends _Exchange {
8
+ }
9
+ 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;
@@ -9,7 +9,7 @@ export default class arzplus extends Exchange {
9
9
  describe(): any;
10
10
  fetchMarkets(params?: {}): Promise<Market[]>;
11
11
  parseMarket(market: any): Market;
12
- parseOTCMarkets(market: any): any;
12
+ parseOTCMarkets(market: any): Market;
13
13
  fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
14
14
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
15
15
  parseTicker(ticker: any, market?: Market): Ticker;
package/js/src/arzplus.js CHANGED
@@ -271,7 +271,7 @@ export default class arzplus extends Exchange {
271
271
  'quoteId': quoteId,
272
272
  'settleId': undefined,
273
273
  'type': 'otc',
274
- 'spot': true,
274
+ 'spot': false,
275
275
  'margin': false,
276
276
  'swap': false,
277
277
  'future': false,
@@ -7,7 +7,7 @@ export declare type Bool = boolean | undefined;
7
7
  export declare type IndexType = number | string;
8
8
  export declare type OrderSide = 'buy' | 'sell' | string | undefined;
9
9
  export declare type OrderType = 'limit' | 'market' | string;
10
- export declare type MarketType = 'spot' | 'margin' | 'swap' | 'future' | 'option' | 'delivery' | 'index';
10
+ export declare type MarketType = 'spot' | 'margin' | 'swap' | 'future' | 'option' | 'delivery' | 'index' | 'otc';
11
11
  export declare type SubType = 'linear' | 'inverse' | undefined;
12
12
  export interface Dictionary<T> {
13
13
  [key: string]: T;
@@ -0,0 +1,21 @@
1
+ import Exchange from './abstract/hamtapay.js';
2
+ import { Market, Strings, Ticker, Tickers } from './base/types.js';
3
+ /**
4
+ * @class hamtapay
5
+ * @augments Exchange
6
+ * @description Set rateLimit to 1000 if fully verified
7
+ */
8
+ export default class hamtapay extends Exchange {
9
+ describe(): any;
10
+ fetchMarkets(params?: {}): Promise<Market[]>;
11
+ parseMarket(market: any): Market;
12
+ fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
13
+ fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
14
+ parseTicker(ticker: any, market?: Market): Ticker;
15
+ sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
16
+ url: string;
17
+ method: string;
18
+ body: any;
19
+ headers: any;
20
+ };
21
+ }