ccxt-ir 4.9.3 → 4.9.10
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 +7 -7
- package/dist/ccxt.browser.min.js +4 -4
- package/dist/cjs/ccxt.js +25 -1
- package/dist/cjs/src/abantether.js +88 -69
- package/dist/cjs/src/abstract/bitbarg.js +11 -0
- package/dist/cjs/src/abstract/bydfi.js +11 -0
- package/dist/cjs/src/abstract/cafearz.js +11 -0
- package/dist/cjs/src/abstract/hamtapay.js +11 -0
- package/dist/cjs/src/abstract/kifpoolme.js +11 -0
- package/dist/cjs/src/abstract/mazdax.js +11 -0
- package/dist/cjs/src/abstract/pingi.js +11 -0
- package/dist/cjs/src/abstract/pooleno.js +11 -0
- package/dist/cjs/src/afratether.js +84 -36
- package/dist/cjs/src/arzplus.js +33 -16
- package/dist/cjs/src/bitbarg.js +313 -0
- package/dist/cjs/src/bydfi.js +435 -0
- package/dist/cjs/src/cafearz.js +347 -0
- package/dist/cjs/src/hamtapay.js +300 -0
- package/dist/cjs/src/kifpoolme.js +411 -0
- package/dist/cjs/src/mazdax.js +536 -0
- package/dist/cjs/src/pingi.js +448 -0
- package/dist/cjs/src/pooleno.js +348 -0
- package/dist/cjs/src/tetherland.js +8 -4
- package/dist/cjs/src/twox.js +55 -28
- package/js/ccxt.d.ts +26 -2
- package/js/ccxt.js +18 -2
- package/js/src/abantether.js +88 -69
- package/js/src/abstract/abantether.d.ts +1 -1
- package/js/src/abstract/bitbarg.d.ts +8 -0
- package/js/src/abstract/bitbarg.js +11 -0
- package/js/src/abstract/bydfi.d.ts +11 -0
- package/js/src/abstract/bydfi.js +11 -0
- package/js/src/abstract/cafearz.d.ts +8 -0
- package/js/src/abstract/cafearz.js +11 -0
- package/js/src/abstract/hamtapay.d.ts +9 -0
- package/js/src/abstract/hamtapay.js +11 -0
- package/js/src/abstract/kifpoolme.d.ts +9 -0
- package/js/src/abstract/kifpoolme.js +11 -0
- package/js/src/abstract/mazdax.d.ts +11 -0
- package/js/src/abstract/mazdax.js +11 -0
- package/js/src/abstract/pingi.d.ts +9 -0
- package/js/src/abstract/pingi.js +11 -0
- package/js/src/abstract/pooleno.d.ts +8 -0
- package/js/src/abstract/pooleno.js +11 -0
- package/js/src/afratether.js +84 -36
- package/js/src/arzplus.d.ts +4 -3
- package/js/src/arzplus.js +33 -16
- package/js/src/base/Exchange.d.ts +2 -2
- package/js/src/base/types.d.ts +1 -1
- package/js/src/bitbarg.d.ts +21 -0
- package/js/src/bitbarg.js +312 -0
- package/js/src/bydfi.d.ts +23 -0
- package/js/src/bydfi.js +434 -0
- package/js/src/cafearz.d.ts +21 -0
- package/js/src/cafearz.js +346 -0
- package/js/src/coinbaseexchange.d.ts +1 -1
- package/js/src/hamtapay.d.ts +21 -0
- package/js/src/hamtapay.js +299 -0
- package/js/src/kifpoolme.d.ts +23 -0
- package/js/src/kifpoolme.js +410 -0
- package/js/src/mazdax.d.ts +23 -0
- package/js/src/mazdax.js +535 -0
- package/js/src/pingi.d.ts +22 -0
- package/js/src/pingi.js +447 -0
- package/js/src/pooleno.d.ts +21 -0
- package/js/src/pooleno.js +347 -0
- package/js/src/protobuf/mexc/compiled.d.cts +0 -6
- package/js/src/static_dependencies/fflake/browser.d.ts +5 -5
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/asn1.d.ts +2 -2
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/static_dependencies/qs/formats.d.cts +0 -6
- package/js/src/static_dependencies/qs/index.d.cts +0 -6
- package/js/src/static_dependencies/qs/parse.d.cts +0 -6
- package/js/src/static_dependencies/qs/stringify.d.cts +0 -6
- package/js/src/static_dependencies/qs/utils.d.cts +0 -6
- package/js/src/static_dependencies/starknet/utils/calldata/parser/index.d.ts +1 -1
- package/js/src/tetherland.js +5 -4
- package/js/src/twox.js +55 -28
- package/package.json +1 -1
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.10";
|
|
8
8
|
import abantether from './src/abantether.js';
|
|
9
9
|
import afratether from './src/afratether.js';
|
|
10
10
|
import alpaca from './src/alpaca.js';
|
|
@@ -22,6 +22,7 @@ import bingx from './src/bingx.js';
|
|
|
22
22
|
import bit24 from './src/bit24.js';
|
|
23
23
|
import bit2c from './src/bit2c.js';
|
|
24
24
|
import bitbank from './src/bitbank.js';
|
|
25
|
+
import bitbarg from './src/bitbarg.js';
|
|
25
26
|
import bitbns from './src/bitbns.js';
|
|
26
27
|
import bitfinex from './src/bitfinex.js';
|
|
27
28
|
import bitflyer from './src/bitflyer.js';
|
|
@@ -47,6 +48,8 @@ import btcbox from './src/btcbox.js';
|
|
|
47
48
|
import btcmarkets from './src/btcmarkets.js';
|
|
48
49
|
import btcturk from './src/btcturk.js';
|
|
49
50
|
import bybit from './src/bybit.js';
|
|
51
|
+
import bydfi from './src/bydfi.js';
|
|
52
|
+
import cafearz from './src/cafearz.js';
|
|
50
53
|
import cex from './src/cex.js';
|
|
51
54
|
import coinbase from './src/coinbase.js';
|
|
52
55
|
import coinbaseadvanced from './src/coinbaseadvanced.js';
|
|
@@ -79,6 +82,7 @@ import foxbit from './src/foxbit.js';
|
|
|
79
82
|
import gate from './src/gate.js';
|
|
80
83
|
import gateio from './src/gateio.js';
|
|
81
84
|
import gemini from './src/gemini.js';
|
|
85
|
+
import hamtapay from './src/hamtapay.js';
|
|
82
86
|
import hashkey from './src/hashkey.js';
|
|
83
87
|
import hibachi from './src/hibachi.js';
|
|
84
88
|
import hitbtc from './src/hitbtc.js';
|
|
@@ -91,6 +95,7 @@ import independentreserve from './src/independentreserve.js';
|
|
|
91
95
|
import indodax from './src/indodax.js';
|
|
92
96
|
import jibitex from './src/jibitex.js';
|
|
93
97
|
import kcex from './src/kcex.js';
|
|
98
|
+
import kifpoolme from './src/kifpoolme.js';
|
|
94
99
|
import kraken from './src/kraken.js';
|
|
95
100
|
import krakenfutures from './src/krakenfutures.js';
|
|
96
101
|
import kucoin from './src/kucoin.js';
|
|
@@ -98,6 +103,7 @@ import kucoinfutures from './src/kucoinfutures.js';
|
|
|
98
103
|
import latoken from './src/latoken.js';
|
|
99
104
|
import lbank from './src/lbank.js';
|
|
100
105
|
import luno from './src/luno.js';
|
|
106
|
+
import mazdax from './src/mazdax.js';
|
|
101
107
|
import mercado from './src/mercado.js';
|
|
102
108
|
import mexc from './src/mexc.js';
|
|
103
109
|
import modetrade from './src/modetrade.js';
|
|
@@ -117,7 +123,9 @@ import p2b from './src/p2b.js';
|
|
|
117
123
|
import paradex from './src/paradex.js';
|
|
118
124
|
import paymium from './src/paymium.js';
|
|
119
125
|
import phemex from './src/phemex.js';
|
|
126
|
+
import pingi from './src/pingi.js';
|
|
120
127
|
import poloniex from './src/poloniex.js';
|
|
128
|
+
import pooleno from './src/pooleno.js';
|
|
121
129
|
import probit from './src/probit.js';
|
|
122
130
|
import ramzinex from './src/ramzinex.js';
|
|
123
131
|
import sarmayex from './src/sarmayex.js';
|
|
@@ -232,6 +240,7 @@ declare const exchanges: {
|
|
|
232
240
|
bit24: typeof bit24;
|
|
233
241
|
bit2c: typeof bit2c;
|
|
234
242
|
bitbank: typeof bitbank;
|
|
243
|
+
bitbarg: typeof bitbarg;
|
|
235
244
|
bitbns: typeof bitbns;
|
|
236
245
|
bitfinex: typeof bitfinex;
|
|
237
246
|
bitflyer: typeof bitflyer;
|
|
@@ -257,6 +266,8 @@ declare const exchanges: {
|
|
|
257
266
|
btcmarkets: typeof btcmarkets;
|
|
258
267
|
btcturk: typeof btcturk;
|
|
259
268
|
bybit: typeof bybit;
|
|
269
|
+
bydfi: typeof bydfi;
|
|
270
|
+
cafearz: typeof cafearz;
|
|
260
271
|
cex: typeof cex;
|
|
261
272
|
coinbase: typeof coinbase;
|
|
262
273
|
coinbaseadvanced: typeof coinbaseadvanced;
|
|
@@ -289,6 +300,7 @@ declare const exchanges: {
|
|
|
289
300
|
gate: typeof gate;
|
|
290
301
|
gateio: typeof gateio;
|
|
291
302
|
gemini: typeof gemini;
|
|
303
|
+
hamtapay: typeof hamtapay;
|
|
292
304
|
hashkey: typeof hashkey;
|
|
293
305
|
hibachi: typeof hibachi;
|
|
294
306
|
hitbtc: typeof hitbtc;
|
|
@@ -301,6 +313,7 @@ declare const exchanges: {
|
|
|
301
313
|
indodax: typeof indodax;
|
|
302
314
|
jibitex: typeof jibitex;
|
|
303
315
|
kcex: typeof kcex;
|
|
316
|
+
kifpoolme: typeof kifpoolme;
|
|
304
317
|
kraken: typeof kraken;
|
|
305
318
|
krakenfutures: typeof krakenfutures;
|
|
306
319
|
kucoin: typeof kucoin;
|
|
@@ -308,6 +321,7 @@ declare const exchanges: {
|
|
|
308
321
|
latoken: typeof latoken;
|
|
309
322
|
lbank: typeof lbank;
|
|
310
323
|
luno: typeof luno;
|
|
324
|
+
mazdax: typeof mazdax;
|
|
311
325
|
mercado: typeof mercado;
|
|
312
326
|
mexc: typeof mexc;
|
|
313
327
|
modetrade: typeof modetrade;
|
|
@@ -327,7 +341,9 @@ declare const exchanges: {
|
|
|
327
341
|
paradex: typeof paradex;
|
|
328
342
|
paymium: typeof paymium;
|
|
329
343
|
phemex: typeof phemex;
|
|
344
|
+
pingi: typeof pingi;
|
|
330
345
|
poloniex: typeof poloniex;
|
|
346
|
+
pooleno: typeof pooleno;
|
|
331
347
|
probit: typeof probit;
|
|
332
348
|
ramzinex: typeof ramzinex;
|
|
333
349
|
sarmayex: typeof sarmayex;
|
|
@@ -525,6 +541,7 @@ declare const ccxt: {
|
|
|
525
541
|
bit24: typeof bit24;
|
|
526
542
|
bit2c: typeof bit2c;
|
|
527
543
|
bitbank: typeof bitbank;
|
|
544
|
+
bitbarg: typeof bitbarg;
|
|
528
545
|
bitbns: typeof bitbns;
|
|
529
546
|
bitfinex: typeof bitfinex;
|
|
530
547
|
bitflyer: typeof bitflyer;
|
|
@@ -550,6 +567,8 @@ declare const ccxt: {
|
|
|
550
567
|
btcmarkets: typeof btcmarkets;
|
|
551
568
|
btcturk: typeof btcturk;
|
|
552
569
|
bybit: typeof bybit;
|
|
570
|
+
bydfi: typeof bydfi;
|
|
571
|
+
cafearz: typeof cafearz;
|
|
553
572
|
cex: typeof cex;
|
|
554
573
|
coinbase: typeof coinbase;
|
|
555
574
|
coinbaseadvanced: typeof coinbaseadvanced;
|
|
@@ -582,6 +601,7 @@ declare const ccxt: {
|
|
|
582
601
|
gate: typeof gate;
|
|
583
602
|
gateio: typeof gateio;
|
|
584
603
|
gemini: typeof gemini;
|
|
604
|
+
hamtapay: typeof hamtapay;
|
|
585
605
|
hashkey: typeof hashkey;
|
|
586
606
|
hibachi: typeof hibachi;
|
|
587
607
|
hitbtc: typeof hitbtc;
|
|
@@ -594,6 +614,7 @@ declare const ccxt: {
|
|
|
594
614
|
indodax: typeof indodax;
|
|
595
615
|
jibitex: typeof jibitex;
|
|
596
616
|
kcex: typeof kcex;
|
|
617
|
+
kifpoolme: typeof kifpoolme;
|
|
597
618
|
kraken: typeof kraken;
|
|
598
619
|
krakenfutures: typeof krakenfutures;
|
|
599
620
|
kucoin: typeof kucoin;
|
|
@@ -601,6 +622,7 @@ declare const ccxt: {
|
|
|
601
622
|
latoken: typeof latoken;
|
|
602
623
|
lbank: typeof lbank;
|
|
603
624
|
luno: typeof luno;
|
|
625
|
+
mazdax: typeof mazdax;
|
|
604
626
|
mercado: typeof mercado;
|
|
605
627
|
mexc: typeof mexc;
|
|
606
628
|
modetrade: typeof modetrade;
|
|
@@ -620,7 +642,9 @@ declare const ccxt: {
|
|
|
620
642
|
paradex: typeof paradex;
|
|
621
643
|
paymium: typeof paymium;
|
|
622
644
|
phemex: typeof phemex;
|
|
645
|
+
pingi: typeof pingi;
|
|
623
646
|
poloniex: typeof poloniex;
|
|
647
|
+
pooleno: typeof pooleno;
|
|
624
648
|
probit: typeof probit;
|
|
625
649
|
ramzinex: typeof ramzinex;
|
|
626
650
|
sarmayex: typeof sarmayex;
|
|
@@ -645,5 +669,5 @@ declare const ccxt: {
|
|
|
645
669
|
zaif: typeof zaif;
|
|
646
670
|
zonda: typeof zonda;
|
|
647
671
|
} & 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, };
|
|
672
|
+
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, 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, tetherland, timex, tokocrypto, toobit, tradeogre, twox, ubitex, upbit, vertex, wallex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
649
673
|
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.10';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import abantether from './src/abantether.js';
|
|
@@ -58,6 +58,7 @@ import bingx from './src/bingx.js';
|
|
|
58
58
|
import bit24 from './src/bit24.js';
|
|
59
59
|
import bit2c from './src/bit2c.js';
|
|
60
60
|
import bitbank from './src/bitbank.js';
|
|
61
|
+
import bitbarg from './src/bitbarg.js';
|
|
61
62
|
import bitbns from './src/bitbns.js';
|
|
62
63
|
import bitfinex from './src/bitfinex.js';
|
|
63
64
|
import bitflyer from './src/bitflyer.js';
|
|
@@ -83,6 +84,8 @@ import btcbox from './src/btcbox.js';
|
|
|
83
84
|
import btcmarkets from './src/btcmarkets.js';
|
|
84
85
|
import btcturk from './src/btcturk.js';
|
|
85
86
|
import bybit from './src/bybit.js';
|
|
87
|
+
import bydfi from './src/bydfi.js';
|
|
88
|
+
import cafearz from './src/cafearz.js';
|
|
86
89
|
import cex from './src/cex.js';
|
|
87
90
|
import coinbase from './src/coinbase.js';
|
|
88
91
|
import coinbaseadvanced from './src/coinbaseadvanced.js';
|
|
@@ -115,6 +118,7 @@ import foxbit from './src/foxbit.js';
|
|
|
115
118
|
import gate from './src/gate.js';
|
|
116
119
|
import gateio from './src/gateio.js';
|
|
117
120
|
import gemini from './src/gemini.js';
|
|
121
|
+
import hamtapay from './src/hamtapay.js';
|
|
118
122
|
import hashkey from './src/hashkey.js';
|
|
119
123
|
import hibachi from './src/hibachi.js';
|
|
120
124
|
import hitbtc from './src/hitbtc.js';
|
|
@@ -127,6 +131,7 @@ import independentreserve from './src/independentreserve.js';
|
|
|
127
131
|
import indodax from './src/indodax.js';
|
|
128
132
|
import jibitex from './src/jibitex.js';
|
|
129
133
|
import kcex from './src/kcex.js';
|
|
134
|
+
import kifpoolme from './src/kifpoolme.js';
|
|
130
135
|
import kraken from './src/kraken.js';
|
|
131
136
|
import krakenfutures from './src/krakenfutures.js';
|
|
132
137
|
import kucoin from './src/kucoin.js';
|
|
@@ -134,6 +139,7 @@ import kucoinfutures from './src/kucoinfutures.js';
|
|
|
134
139
|
import latoken from './src/latoken.js';
|
|
135
140
|
import lbank from './src/lbank.js';
|
|
136
141
|
import luno from './src/luno.js';
|
|
142
|
+
import mazdax from './src/mazdax.js';
|
|
137
143
|
import mercado from './src/mercado.js';
|
|
138
144
|
import mexc from './src/mexc.js';
|
|
139
145
|
import modetrade from './src/modetrade.js';
|
|
@@ -153,7 +159,9 @@ import p2b from './src/p2b.js';
|
|
|
153
159
|
import paradex from './src/paradex.js';
|
|
154
160
|
import paymium from './src/paymium.js';
|
|
155
161
|
import phemex from './src/phemex.js';
|
|
162
|
+
import pingi from './src/pingi.js';
|
|
156
163
|
import poloniex from './src/poloniex.js';
|
|
164
|
+
import pooleno from './src/pooleno.js';
|
|
157
165
|
import probit from './src/probit.js';
|
|
158
166
|
import ramzinex from './src/ramzinex.js';
|
|
159
167
|
import sarmayex from './src/sarmayex.js';
|
|
@@ -269,6 +277,7 @@ const exchanges = {
|
|
|
269
277
|
'bit24': bit24,
|
|
270
278
|
'bit2c': bit2c,
|
|
271
279
|
'bitbank': bitbank,
|
|
280
|
+
'bitbarg': bitbarg,
|
|
272
281
|
'bitbns': bitbns,
|
|
273
282
|
'bitfinex': bitfinex,
|
|
274
283
|
'bitflyer': bitflyer,
|
|
@@ -294,6 +303,8 @@ const exchanges = {
|
|
|
294
303
|
'btcmarkets': btcmarkets,
|
|
295
304
|
'btcturk': btcturk,
|
|
296
305
|
'bybit': bybit,
|
|
306
|
+
'bydfi': bydfi,
|
|
307
|
+
'cafearz': cafearz,
|
|
297
308
|
'cex': cex,
|
|
298
309
|
'coinbase': coinbase,
|
|
299
310
|
'coinbaseadvanced': coinbaseadvanced,
|
|
@@ -326,6 +337,7 @@ const exchanges = {
|
|
|
326
337
|
'gate': gate,
|
|
327
338
|
'gateio': gateio,
|
|
328
339
|
'gemini': gemini,
|
|
340
|
+
'hamtapay': hamtapay,
|
|
329
341
|
'hashkey': hashkey,
|
|
330
342
|
'hibachi': hibachi,
|
|
331
343
|
'hitbtc': hitbtc,
|
|
@@ -338,6 +350,7 @@ const exchanges = {
|
|
|
338
350
|
'indodax': indodax,
|
|
339
351
|
'jibitex': jibitex,
|
|
340
352
|
'kcex': kcex,
|
|
353
|
+
'kifpoolme': kifpoolme,
|
|
341
354
|
'kraken': kraken,
|
|
342
355
|
'krakenfutures': krakenfutures,
|
|
343
356
|
'kucoin': kucoin,
|
|
@@ -345,6 +358,7 @@ const exchanges = {
|
|
|
345
358
|
'latoken': latoken,
|
|
346
359
|
'lbank': lbank,
|
|
347
360
|
'luno': luno,
|
|
361
|
+
'mazdax': mazdax,
|
|
348
362
|
'mercado': mercado,
|
|
349
363
|
'mexc': mexc,
|
|
350
364
|
'modetrade': modetrade,
|
|
@@ -364,7 +378,9 @@ const exchanges = {
|
|
|
364
378
|
'paradex': paradex,
|
|
365
379
|
'paymium': paymium,
|
|
366
380
|
'phemex': phemex,
|
|
381
|
+
'pingi': pingi,
|
|
367
382
|
'poloniex': poloniex,
|
|
383
|
+
'pooleno': pooleno,
|
|
368
384
|
'probit': probit,
|
|
369
385
|
'ramzinex': ramzinex,
|
|
370
386
|
'sarmayex': sarmayex,
|
|
@@ -476,6 +492,6 @@ pro.exchanges = Object.keys(pro);
|
|
|
476
492
|
pro['Exchange'] = Exchange; // now the same for rest and ts
|
|
477
493
|
//-----------------------------------------------------------------------------
|
|
478
494
|
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, };
|
|
495
|
+
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, 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, tetherland, timex, tokocrypto, toobit, tradeogre, twox, ubitex, upbit, vertex, wallex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
480
496
|
export default ccxt;
|
|
481
497
|
//-----------------------------------------------------------------------------
|
package/js/src/abantether.js
CHANGED
|
@@ -24,7 +24,7 @@ export default class abantether extends Exchange {
|
|
|
24
24
|
'pro': false,
|
|
25
25
|
'has': {
|
|
26
26
|
'CORS': undefined,
|
|
27
|
-
'spot':
|
|
27
|
+
'spot': false,
|
|
28
28
|
'margin': false,
|
|
29
29
|
'swap': false,
|
|
30
30
|
'future': false,
|
|
@@ -80,6 +80,7 @@ export default class abantether extends Exchange {
|
|
|
80
80
|
'fetchTradingFee': false,
|
|
81
81
|
'fetchTradingFees': false,
|
|
82
82
|
'fetchWithdrawals': false,
|
|
83
|
+
'otc': true,
|
|
83
84
|
'setLeverage': false,
|
|
84
85
|
'setMarginMode': false,
|
|
85
86
|
'transfer': false,
|
|
@@ -89,7 +90,7 @@ export default class abantether extends Exchange {
|
|
|
89
90
|
'urls': {
|
|
90
91
|
'logo': 'https://cdn.arz.digital/cr-odin/img/exchanges/abantether/64x64.png',
|
|
91
92
|
'api': {
|
|
92
|
-
'public': 'https://abantether.com',
|
|
93
|
+
'public': 'https://api.abantether.com',
|
|
93
94
|
},
|
|
94
95
|
'www': 'https://abantether.com',
|
|
95
96
|
'doc': [
|
|
@@ -99,7 +100,7 @@ export default class abantether extends Exchange {
|
|
|
99
100
|
'api': {
|
|
100
101
|
'public': {
|
|
101
102
|
'get': {
|
|
102
|
-
'
|
|
103
|
+
'manager/coins/data': 1,
|
|
103
104
|
},
|
|
104
105
|
},
|
|
105
106
|
},
|
|
@@ -118,23 +119,24 @@ export default class abantether extends Exchange {
|
|
|
118
119
|
* @method
|
|
119
120
|
* @name abantether#fetchMarkets
|
|
120
121
|
* @description retrieves data on all markets for abantether
|
|
121
|
-
* @see https://abantether.com/
|
|
122
|
+
* @see https://api.abantether.com/manager/coins/data
|
|
122
123
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
123
124
|
* @returns {object[]} an array of objects representing market data
|
|
124
125
|
*/
|
|
125
|
-
const response = await this.
|
|
126
|
+
const response = await this.publicGetManagerCoinsData(params);
|
|
127
|
+
const data = this.safeList(response, 'data', []);
|
|
126
128
|
const result = [];
|
|
127
129
|
const quotes = ['IRT', 'USDT'];
|
|
128
|
-
for (let i = 0; i <
|
|
129
|
-
const base = this.safeString(
|
|
130
|
+
for (let i = 0; i < data.length; i++) {
|
|
131
|
+
const base = this.safeString(data[i], 'symbol');
|
|
130
132
|
for (let index = 0; index < quotes.length; index++) {
|
|
131
133
|
const quote = quotes[index];
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
data[i]['base'] = base;
|
|
135
|
+
data[i]['quote'] = quote;
|
|
134
136
|
if (base === quote) {
|
|
135
137
|
continue;
|
|
136
138
|
}
|
|
137
|
-
const market = this.parseMarket(
|
|
139
|
+
const market = this.parseMarket(data[i]);
|
|
138
140
|
result.push(market);
|
|
139
141
|
}
|
|
140
142
|
}
|
|
@@ -142,29 +144,38 @@ export default class abantether extends Exchange {
|
|
|
142
144
|
}
|
|
143
145
|
parseMarket(market) {
|
|
144
146
|
// {
|
|
145
|
-
//
|
|
146
|
-
//
|
|
147
|
-
//
|
|
148
|
-
//
|
|
149
|
-
//
|
|
150
|
-
//
|
|
151
|
-
//
|
|
152
|
-
//
|
|
153
|
-
//
|
|
154
|
-
//
|
|
155
|
-
//
|
|
156
|
-
//
|
|
157
|
-
//
|
|
158
|
-
//
|
|
159
|
-
//
|
|
160
|
-
//
|
|
161
|
-
//
|
|
162
|
-
//
|
|
163
|
-
//
|
|
164
|
-
//
|
|
165
|
-
//
|
|
166
|
-
//
|
|
167
|
-
//
|
|
147
|
+
// "id": 1,
|
|
148
|
+
// "name": "Tether USDt",
|
|
149
|
+
// "symbol": "USDT",
|
|
150
|
+
// "persian_name": "تتر",
|
|
151
|
+
// "is_active": true,
|
|
152
|
+
// "is_withdrawal_active": true,
|
|
153
|
+
// "is_deposit_active": true,
|
|
154
|
+
// "is_mid_wallet_transfer_active": true,
|
|
155
|
+
// "is_buy_active": true,
|
|
156
|
+
// "is_sell_active": true,
|
|
157
|
+
// "is_credit_active": true,
|
|
158
|
+
// "min_trade": "1.00",
|
|
159
|
+
// "max_trade": "100000.00",
|
|
160
|
+
// "tether_price": "1",
|
|
161
|
+
// "price_buy": "113540.0",
|
|
162
|
+
// "price_sell": "112630.0",
|
|
163
|
+
// "volume24h": "225163179366.25",
|
|
164
|
+
// "percent_change_1h": "0.00",
|
|
165
|
+
// "percent_change_24h": "0.00",
|
|
166
|
+
// "percent_change_7d": "0.04",
|
|
167
|
+
// "market_cap": "179884960573.99",
|
|
168
|
+
// "coin_type": "COIN",
|
|
169
|
+
// "exchange_type": "fake",
|
|
170
|
+
// "icon": "f71021586005413ea6f3a0bd1f7d8a55",
|
|
171
|
+
// "fund_tether_buy": "0",
|
|
172
|
+
// "fund_tether_sell": "0",
|
|
173
|
+
// "irt_decimal_point": 2,
|
|
174
|
+
// "tether_decimal_point": 6,
|
|
175
|
+
// "amount_decimal_point": 6,
|
|
176
|
+
// "base": "BTC",
|
|
177
|
+
// "qoute": "USDT",
|
|
178
|
+
// },
|
|
168
179
|
let baseId = this.safeString(market, 'base');
|
|
169
180
|
let quoteId = this.safeString(market, 'quote');
|
|
170
181
|
const base = this.safeCurrencyCode(baseId);
|
|
@@ -227,7 +238,7 @@ export default class abantether extends Exchange {
|
|
|
227
238
|
* @method
|
|
228
239
|
* @name abantether#fetchTickers
|
|
229
240
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
230
|
-
* @see https://abantether.com/
|
|
241
|
+
* @see https://api.abantether.com/manager/coins/data
|
|
231
242
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
232
243
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
233
244
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -236,20 +247,21 @@ export default class abantether extends Exchange {
|
|
|
236
247
|
if (symbols !== undefined) {
|
|
237
248
|
symbols = this.marketSymbols(symbols);
|
|
238
249
|
}
|
|
239
|
-
const response = await this.
|
|
250
|
+
const response = await this.publicGetManagerCoinsData(params);
|
|
251
|
+
const data = this.safeList(response, 'data', []);
|
|
240
252
|
const result = {};
|
|
241
253
|
const quotes = ['IRT', 'USDT'];
|
|
242
|
-
for (let i = 0; i <
|
|
243
|
-
const base = this.safeString(
|
|
254
|
+
for (let i = 0; i < data.length; i++) {
|
|
255
|
+
const base = this.safeString(data[i], 'symbol');
|
|
244
256
|
for (let index = 0; index < quotes.length; index++) {
|
|
245
257
|
const quote = quotes[index];
|
|
246
258
|
if (base === quote) {
|
|
247
259
|
continue;
|
|
248
260
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
const ticker = this.parseTicker(
|
|
261
|
+
data[i]['base'] = base;
|
|
262
|
+
data[i]['quote'] = quote;
|
|
263
|
+
data[i]['symbol'] = base + quote;
|
|
264
|
+
const ticker = this.parseTicker(data[i]);
|
|
253
265
|
const symbol = ticker['symbol'];
|
|
254
266
|
result[symbol] = ticker;
|
|
255
267
|
}
|
|
@@ -261,7 +273,7 @@ export default class abantether extends Exchange {
|
|
|
261
273
|
* @method
|
|
262
274
|
* @name abantether#fetchTicker
|
|
263
275
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
264
|
-
* @see https://abantether.com/
|
|
276
|
+
* @see https://api.abantether.com/manager/coins/data
|
|
265
277
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
266
278
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
267
279
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -271,38 +283,45 @@ export default class abantether extends Exchange {
|
|
|
271
283
|
}
|
|
272
284
|
parseTicker(ticker, market = undefined) {
|
|
273
285
|
// {
|
|
274
|
-
//
|
|
275
|
-
//
|
|
276
|
-
//
|
|
277
|
-
//
|
|
278
|
-
//
|
|
279
|
-
//
|
|
280
|
-
//
|
|
281
|
-
//
|
|
282
|
-
//
|
|
283
|
-
//
|
|
284
|
-
//
|
|
285
|
-
//
|
|
286
|
-
//
|
|
287
|
-
//
|
|
288
|
-
//
|
|
289
|
-
//
|
|
290
|
-
//
|
|
291
|
-
//
|
|
292
|
-
//
|
|
293
|
-
//
|
|
294
|
-
//
|
|
295
|
-
//
|
|
296
|
-
//
|
|
286
|
+
// "id": 2,
|
|
287
|
+
// "name": "Bitcoin",
|
|
288
|
+
// "symbol": "BTC",
|
|
289
|
+
// "persian_name": "بیت کوین",
|
|
290
|
+
// "is_active": true,
|
|
291
|
+
// "is_withdrawal_active": true,
|
|
292
|
+
// "is_deposit_active": true,
|
|
293
|
+
// "is_mid_wallet_transfer_active": true,
|
|
294
|
+
// "is_buy_active": true,
|
|
295
|
+
// "is_sell_active": true,
|
|
296
|
+
// "is_credit_active": true,
|
|
297
|
+
// "min_trade": "1.00",
|
|
298
|
+
// "max_trade": "65000.00",
|
|
299
|
+
// "tether_price": "114909.43000000",
|
|
300
|
+
// "price_buy": "13049114870.800000000",
|
|
301
|
+
// "price_sell": "12944547289.500000000",
|
|
302
|
+
// "volume24h": "93585526493.26",
|
|
303
|
+
// "percent_change_1h": "-0.29",
|
|
304
|
+
// "percent_change_24h": "3.22",
|
|
305
|
+
// "percent_change_7d": "-7.19",
|
|
306
|
+
// "market_cap": "2292874615411.72",
|
|
307
|
+
// "coin_type": "COIN",
|
|
308
|
+
// "exchange_type": "binance",
|
|
309
|
+
// "icon": "561aa10abc0c45f7aa4499f48d618c80",
|
|
310
|
+
// "fund_tether_buy": "0",
|
|
311
|
+
// "fund_tether_sell": "0",
|
|
312
|
+
// "irt_decimal_point": 0,
|
|
313
|
+
// "tether_decimal_point": 2,
|
|
314
|
+
// "amount_decimal_point": 9
|
|
315
|
+
// },
|
|
297
316
|
const marketType = 'otc';
|
|
298
317
|
const marketId = this.safeString(ticker, 'symbol');
|
|
299
318
|
const symbol = this.safeSymbol(marketId, market, undefined, marketType);
|
|
300
|
-
let last = this.safeFloat(ticker, '
|
|
319
|
+
let last = this.safeFloat(ticker, 'tether_price', 0);
|
|
301
320
|
if (ticker['quote'] === 'IRT') {
|
|
302
|
-
last = this.safeFloat(ticker, '
|
|
321
|
+
last = this.safeFloat(ticker, 'price_buy', 0);
|
|
303
322
|
}
|
|
304
|
-
const change = this.safeFloat(ticker, '
|
|
305
|
-
const baseVolume = this.safeFloat(ticker, '
|
|
323
|
+
const change = this.safeFloat(ticker, 'percent_change_24h', 0);
|
|
324
|
+
const baseVolume = this.safeFloat(ticker, 'volume24h', 0);
|
|
306
325
|
return this.safeTicker({
|
|
307
326
|
'symbol': symbol,
|
|
308
327
|
'timestamp': undefined,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { implicitReturnType } from '../base/types.js';
|
|
2
2
|
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
3
|
interface Exchange {
|
|
4
|
-
|
|
4
|
+
publicGetManagerCoinsData(params?: {}): Promise<implicitReturnType>;
|
|
5
5
|
}
|
|
6
6
|
declare abstract class Exchange extends _Exchange {
|
|
7
7
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
publicGetApiV1Currencies(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
}
|
|
6
|
+
declare abstract class Exchange extends _Exchange {
|
|
7
|
+
}
|
|
8
|
+
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;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
publicGetApiSpotProductList(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
publicGetApiTvTradingViewHistory(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
quoteGetTickers(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
quoteGetMkpaiDepthV2(params?: {}): Promise<implicitReturnType>;
|
|
8
|
+
}
|
|
9
|
+
declare abstract class Exchange extends _Exchange {
|
|
10
|
+
}
|
|
11
|
+
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;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
publicGetApiClientV1CurrenciesPricesDigital(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
}
|
|
6
|
+
declare abstract class Exchange extends _Exchange {
|
|
7
|
+
}
|
|
8
|
+
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;
|
|
@@ -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;
|