ccxt 4.3.85 → 4.3.87
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 +8 -5
- package/dist/ccxt.browser.min.js +15 -15
- package/dist/cjs/ccxt.js +7 -1
- package/dist/cjs/src/abstract/hashkey.js +9 -0
- package/dist/cjs/src/base/Exchange.js +1 -1
- package/dist/cjs/src/base/errors.js +8 -1
- package/dist/cjs/src/binance.js +4 -2
- package/dist/cjs/src/bingx.js +7 -1
- package/dist/cjs/src/bitfinex.js +2 -2
- package/dist/cjs/src/hashkey.js +4327 -0
- package/dist/cjs/src/hyperliquid.js +85 -65
- package/dist/cjs/src/indodax.js +37 -9
- package/dist/cjs/src/kraken.js +37 -6
- package/dist/cjs/src/krakenfutures.js +12 -10
- package/dist/cjs/src/pro/ascendex.js +45 -5
- package/dist/cjs/src/pro/bingx.js +13 -12
- package/dist/cjs/src/pro/bitget.js +164 -19
- package/dist/cjs/src/pro/hashkey.js +839 -0
- package/dist/cjs/src/pro/hyperliquid.js +123 -0
- package/dist/cjs/src/pro/mexc.js +13 -7
- package/dist/cjs/src/pro/p2b.js +34 -7
- package/dist/cjs/src/pro/poloniex.js +36 -3
- package/dist/cjs/src/pro/poloniexfutures.js +1 -0
- package/dist/cjs/src/pro/probit.js +2 -0
- package/dist/cjs/src/pro/upbit.js +48 -3
- package/dist/cjs/src/pro/vertex.js +1 -0
- package/dist/cjs/src/pro/wazirx.js +3 -0
- package/dist/cjs/src/pro/whitebit.js +9 -0
- package/dist/cjs/src/pro/woo.js +1 -0
- package/dist/cjs/src/pro/woofipro.js +1 -0
- package/dist/cjs/src/pro/xt.js +1 -0
- package/dist/cjs/src/upbit.js +1 -1
- package/js/ccxt.d.ts +9 -3
- package/js/ccxt.js +7 -3
- package/js/src/abstract/hashkey.d.ts +70 -0
- package/js/src/abstract/hashkey.js +11 -0
- package/js/src/base/Exchange.js +1 -1
- package/js/src/base/errorHierarchy.d.ts +1 -0
- package/js/src/base/errorHierarchy.js +1 -0
- package/js/src/base/errors.d.ts +5 -1
- package/js/src/base/errors.js +8 -2
- package/js/src/binance.js +4 -2
- package/js/src/bingx.js +7 -1
- package/js/src/bitfinex.js +2 -2
- package/js/src/hashkey.d.ts +178 -0
- package/js/src/hashkey.js +4328 -0
- package/js/src/hyperliquid.d.ts +3 -0
- package/js/src/hyperliquid.js +85 -65
- package/js/src/indodax.js +37 -9
- package/js/src/kraken.js +37 -6
- package/js/src/krakenfutures.js +12 -10
- package/js/src/pro/ascendex.d.ts +2 -0
- package/js/src/pro/ascendex.js +45 -5
- package/js/src/pro/bingx.js +13 -12
- package/js/src/pro/bitget.d.ts +8 -0
- package/js/src/pro/bitget.js +165 -20
- package/js/src/pro/hashkey.d.ts +34 -0
- package/js/src/pro/hashkey.js +840 -0
- package/js/src/pro/hyperliquid.d.ts +7 -1
- package/js/src/pro/hyperliquid.js +123 -0
- package/js/src/pro/mexc.js +13 -7
- package/js/src/pro/p2b.d.ts +1 -0
- package/js/src/pro/p2b.js +34 -7
- package/js/src/pro/poloniex.d.ts +1 -0
- package/js/src/pro/poloniex.js +36 -3
- package/js/src/pro/poloniexfutures.js +1 -0
- package/js/src/pro/probit.js +2 -0
- package/js/src/pro/upbit.d.ts +1 -0
- package/js/src/pro/upbit.js +48 -3
- package/js/src/pro/vertex.js +1 -0
- package/js/src/pro/wazirx.js +3 -0
- package/js/src/pro/whitebit.js +9 -0
- package/js/src/pro/woo.js +1 -0
- package/js/src/pro/woofipro.js +1 -0
- package/js/src/pro/xt.js +1 -0
- package/js/src/upbit.js +1 -1
- package/package.json +1 -1
package/js/ccxt.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { Precise } from './src/base/Precise.js';
|
|
|
3
3
|
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, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, 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 } from './src/base/types.js';
|
|
6
|
-
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, 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 } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.3.
|
|
6
|
+
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, 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.3.86";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
|
@@ -65,6 +65,7 @@ import fmfwio from './src/fmfwio.js';
|
|
|
65
65
|
import gate from './src/gate.js';
|
|
66
66
|
import gateio from './src/gateio.js';
|
|
67
67
|
import gemini from './src/gemini.js';
|
|
68
|
+
import hashkey from './src/hashkey.js';
|
|
68
69
|
import hitbtc from './src/hitbtc.js';
|
|
69
70
|
import hitbtc3 from './src/hitbtc3.js';
|
|
70
71
|
import hollaex from './src/hollaex.js';
|
|
@@ -151,6 +152,7 @@ import exmoPro from './src/pro/exmo.js';
|
|
|
151
152
|
import gatePro from './src/pro/gate.js';
|
|
152
153
|
import gateioPro from './src/pro/gateio.js';
|
|
153
154
|
import geminiPro from './src/pro/gemini.js';
|
|
155
|
+
import hashkeyPro from './src/pro/hashkey.js';
|
|
154
156
|
import hitbtcPro from './src/pro/hitbtc.js';
|
|
155
157
|
import hollaexPro from './src/pro/hollaex.js';
|
|
156
158
|
import htxPro from './src/pro/htx.js';
|
|
@@ -245,6 +247,7 @@ declare const exchanges: {
|
|
|
245
247
|
gate: typeof gate;
|
|
246
248
|
gateio: typeof gateio;
|
|
247
249
|
gemini: typeof gemini;
|
|
250
|
+
hashkey: typeof hashkey;
|
|
248
251
|
hitbtc: typeof hitbtc;
|
|
249
252
|
hitbtc3: typeof hitbtc3;
|
|
250
253
|
hollaex: typeof hollaex;
|
|
@@ -333,6 +336,7 @@ declare const pro: {
|
|
|
333
336
|
gate: typeof gatePro;
|
|
334
337
|
gateio: typeof gateioPro;
|
|
335
338
|
gemini: typeof geminiPro;
|
|
339
|
+
hashkey: typeof hashkeyPro;
|
|
336
340
|
hitbtc: typeof hitbtcPro;
|
|
337
341
|
hollaex: typeof hollaexPro;
|
|
338
342
|
htx: typeof htxPro;
|
|
@@ -410,6 +414,7 @@ declare const ccxt: {
|
|
|
410
414
|
gate: typeof gatePro;
|
|
411
415
|
gateio: typeof gateioPro;
|
|
412
416
|
gemini: typeof geminiPro;
|
|
417
|
+
hashkey: typeof hashkeyPro;
|
|
413
418
|
hitbtc: typeof hitbtcPro;
|
|
414
419
|
hollaex: typeof hollaexPro;
|
|
415
420
|
htx: typeof htxPro;
|
|
@@ -505,6 +510,7 @@ declare const ccxt: {
|
|
|
505
510
|
gate: typeof gate;
|
|
506
511
|
gateio: typeof gateio;
|
|
507
512
|
gemini: typeof gemini;
|
|
513
|
+
hashkey: typeof hashkey;
|
|
508
514
|
hitbtc: typeof hitbtc;
|
|
509
515
|
hitbtc3: typeof hitbtc3;
|
|
510
516
|
hollaex: typeof hollaex;
|
|
@@ -555,5 +561,5 @@ declare const ccxt: {
|
|
|
555
561
|
zaif: typeof zaif;
|
|
556
562
|
zonda: typeof zonda;
|
|
557
563
|
} & typeof functions & typeof errors;
|
|
558
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, 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, 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, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, 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, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, vertex, wavesexchange, wazirx, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
564
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, 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, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, 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, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, vertex, wavesexchange, wazirx, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
559
565
|
export default ccxt;
|
package/js/ccxt.js
CHANGED
|
@@ -35,10 +35,10 @@ import { Exchange } from './src/base/Exchange.js';
|
|
|
35
35
|
import { Precise } from './src/base/Precise.js';
|
|
36
36
|
import * as functions from './src/base/functions.js';
|
|
37
37
|
import * as errors from './src/base/errors.js';
|
|
38
|
-
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, 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 } from './src/base/errors.js';
|
|
38
|
+
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, 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.3.
|
|
41
|
+
const version = '4.3.87';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
|
@@ -101,6 +101,7 @@ import fmfwio from './src/fmfwio.js';
|
|
|
101
101
|
import gate from './src/gate.js';
|
|
102
102
|
import gateio from './src/gateio.js';
|
|
103
103
|
import gemini from './src/gemini.js';
|
|
104
|
+
import hashkey from './src/hashkey.js';
|
|
104
105
|
import hitbtc from './src/hitbtc.js';
|
|
105
106
|
import hitbtc3 from './src/hitbtc3.js';
|
|
106
107
|
import hollaex from './src/hollaex.js';
|
|
@@ -188,6 +189,7 @@ import exmoPro from './src/pro/exmo.js';
|
|
|
188
189
|
import gatePro from './src/pro/gate.js';
|
|
189
190
|
import gateioPro from './src/pro/gateio.js';
|
|
190
191
|
import geminiPro from './src/pro/gemini.js';
|
|
192
|
+
import hashkeyPro from './src/pro/hashkey.js';
|
|
191
193
|
import hitbtcPro from './src/pro/hitbtc.js';
|
|
192
194
|
import hollaexPro from './src/pro/hollaex.js';
|
|
193
195
|
import htxPro from './src/pro/htx.js';
|
|
@@ -282,6 +284,7 @@ const exchanges = {
|
|
|
282
284
|
'gate': gate,
|
|
283
285
|
'gateio': gateio,
|
|
284
286
|
'gemini': gemini,
|
|
287
|
+
'hashkey': hashkey,
|
|
285
288
|
'hitbtc': hitbtc,
|
|
286
289
|
'hitbtc3': hitbtc3,
|
|
287
290
|
'hollaex': hollaex,
|
|
@@ -370,6 +373,7 @@ const pro = {
|
|
|
370
373
|
'gate': gatePro,
|
|
371
374
|
'gateio': gateioPro,
|
|
372
375
|
'gemini': geminiPro,
|
|
376
|
+
'hashkey': hashkeyPro,
|
|
373
377
|
'hitbtc': hitbtcPro,
|
|
374
378
|
'hollaex': hollaexPro,
|
|
375
379
|
'htx': htxPro,
|
|
@@ -416,6 +420,6 @@ pro.exchanges = Object.keys(pro);
|
|
|
416
420
|
pro['Exchange'] = Exchange; // now the same for rest and ts
|
|
417
421
|
//-----------------------------------------------------------------------------
|
|
418
422
|
const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
|
|
419
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, 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, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, vertex, wavesexchange, wazirx, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
423
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, 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, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, vertex, wavesexchange, wazirx, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
420
424
|
export default ccxt;
|
|
421
425
|
//-----------------------------------------------------------------------------
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
publicGetApiV1ExchangeInfo(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
publicGetQuoteV1Depth(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
publicGetQuoteV1Trades(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
publicGetQuoteV1Klines(params?: {}): Promise<implicitReturnType>;
|
|
8
|
+
publicGetQuoteV1Ticker24hr(params?: {}): Promise<implicitReturnType>;
|
|
9
|
+
publicGetQuoteV1TickerPrice(params?: {}): Promise<implicitReturnType>;
|
|
10
|
+
publicGetQuoteV1TickerBookTicker(params?: {}): Promise<implicitReturnType>;
|
|
11
|
+
publicGetQuoteV1DepthMerged(params?: {}): Promise<implicitReturnType>;
|
|
12
|
+
publicGetQuoteV1MarkPrice(params?: {}): Promise<implicitReturnType>;
|
|
13
|
+
publicGetQuoteV1Index(params?: {}): Promise<implicitReturnType>;
|
|
14
|
+
publicGetApiV1FuturesFundingRate(params?: {}): Promise<implicitReturnType>;
|
|
15
|
+
publicGetApiV1FuturesHistoryFundingRate(params?: {}): Promise<implicitReturnType>;
|
|
16
|
+
publicGetApiV1Ping(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
publicGetApiV1Time(params?: {}): Promise<implicitReturnType>;
|
|
18
|
+
privateGetApiV1SpotOrder(params?: {}): Promise<implicitReturnType>;
|
|
19
|
+
privateGetApiV1SpotOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
20
|
+
privateGetApiV1SpotTradeOrders(params?: {}): Promise<implicitReturnType>;
|
|
21
|
+
privateGetApiV1FuturesLeverage(params?: {}): Promise<implicitReturnType>;
|
|
22
|
+
privateGetApiV1FuturesOrder(params?: {}): Promise<implicitReturnType>;
|
|
23
|
+
privateGetApiV1FuturesOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
24
|
+
privateGetApiV1FuturesUserTrades(params?: {}): Promise<implicitReturnType>;
|
|
25
|
+
privateGetApiV1FuturesPositions(params?: {}): Promise<implicitReturnType>;
|
|
26
|
+
privateGetApiV1FuturesHistoryOrders(params?: {}): Promise<implicitReturnType>;
|
|
27
|
+
privateGetApiV1FuturesBalance(params?: {}): Promise<implicitReturnType>;
|
|
28
|
+
privateGetApiV1FuturesLiquidationAssignStatus(params?: {}): Promise<implicitReturnType>;
|
|
29
|
+
privateGetApiV1FuturesRiskLimit(params?: {}): Promise<implicitReturnType>;
|
|
30
|
+
privateGetApiV1FuturesCommissionRate(params?: {}): Promise<implicitReturnType>;
|
|
31
|
+
privateGetApiV1FuturesGetBestOrder(params?: {}): Promise<implicitReturnType>;
|
|
32
|
+
privateGetApiV1AccountVipInfo(params?: {}): Promise<implicitReturnType>;
|
|
33
|
+
privateGetApiV1Account(params?: {}): Promise<implicitReturnType>;
|
|
34
|
+
privateGetApiV1AccountTrades(params?: {}): Promise<implicitReturnType>;
|
|
35
|
+
privateGetApiV1AccountType(params?: {}): Promise<implicitReturnType>;
|
|
36
|
+
privateGetApiV1AccountCheckApiKey(params?: {}): Promise<implicitReturnType>;
|
|
37
|
+
privateGetApiV1AccountBalanceFlow(params?: {}): Promise<implicitReturnType>;
|
|
38
|
+
privateGetApiV1SpotSubAccountOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
39
|
+
privateGetApiV1SpotSubAccountTradeOrders(params?: {}): Promise<implicitReturnType>;
|
|
40
|
+
privateGetApiV1SubAccountTrades(params?: {}): Promise<implicitReturnType>;
|
|
41
|
+
privateGetApiV1FuturesSubAccountOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
42
|
+
privateGetApiV1FuturesSubAccountHistoryOrders(params?: {}): Promise<implicitReturnType>;
|
|
43
|
+
privateGetApiV1FuturesSubAccountUserTrades(params?: {}): Promise<implicitReturnType>;
|
|
44
|
+
privateGetApiV1AccountDepositAddress(params?: {}): Promise<implicitReturnType>;
|
|
45
|
+
privateGetApiV1AccountDepositOrders(params?: {}): Promise<implicitReturnType>;
|
|
46
|
+
privateGetApiV1AccountWithdrawOrders(params?: {}): Promise<implicitReturnType>;
|
|
47
|
+
privatePostApiV1UserDataStream(params?: {}): Promise<implicitReturnType>;
|
|
48
|
+
privatePostApiV1SpotOrderTest(params?: {}): Promise<implicitReturnType>;
|
|
49
|
+
privatePostApiV1SpotOrder(params?: {}): Promise<implicitReturnType>;
|
|
50
|
+
privatePostApiV11SpotOrder(params?: {}): Promise<implicitReturnType>;
|
|
51
|
+
privatePostApiV1SpotBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
52
|
+
privatePostApiV1FuturesLeverage(params?: {}): Promise<implicitReturnType>;
|
|
53
|
+
privatePostApiV1FuturesOrder(params?: {}): Promise<implicitReturnType>;
|
|
54
|
+
privatePostApiV1FuturesPositionTradingStop(params?: {}): Promise<implicitReturnType>;
|
|
55
|
+
privatePostApiV1FuturesBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
56
|
+
privatePostApiV1AccountAssetTransfer(params?: {}): Promise<implicitReturnType>;
|
|
57
|
+
privatePostApiV1AccountAuthAddress(params?: {}): Promise<implicitReturnType>;
|
|
58
|
+
privatePostApiV1AccountWithdraw(params?: {}): Promise<implicitReturnType>;
|
|
59
|
+
privatePutApiV1UserDataStream(params?: {}): Promise<implicitReturnType>;
|
|
60
|
+
privateDeleteApiV1SpotOrder(params?: {}): Promise<implicitReturnType>;
|
|
61
|
+
privateDeleteApiV1SpotOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
62
|
+
privateDeleteApiV1SpotCancelOrderByIds(params?: {}): Promise<implicitReturnType>;
|
|
63
|
+
privateDeleteApiV1FuturesOrder(params?: {}): Promise<implicitReturnType>;
|
|
64
|
+
privateDeleteApiV1FuturesBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
65
|
+
privateDeleteApiV1FuturesCancelOrderByIds(params?: {}): Promise<implicitReturnType>;
|
|
66
|
+
privateDeleteApiV1UserDataStream(params?: {}): Promise<implicitReturnType>;
|
|
67
|
+
}
|
|
68
|
+
declare abstract class Exchange extends _Exchange {
|
|
69
|
+
}
|
|
70
|
+
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;
|
package/js/src/base/Exchange.js
CHANGED
|
@@ -6087,7 +6087,7 @@ export default class Exchange {
|
|
|
6087
6087
|
if (method === 'fetchAccounts') {
|
|
6088
6088
|
response = await this[method](params);
|
|
6089
6089
|
}
|
|
6090
|
-
else if (method === 'getLeverageTiersPaginated') {
|
|
6090
|
+
else if (method === 'getLeverageTiersPaginated' || method === 'fetchPositions') {
|
|
6091
6091
|
response = await this[method](symbol, params);
|
|
6092
6092
|
}
|
|
6093
6093
|
else {
|
package/js/src/base/errors.d.ts
CHANGED
|
@@ -115,7 +115,10 @@ declare class NullResponse extends BadResponse {
|
|
|
115
115
|
declare class CancelPending extends OperationFailed {
|
|
116
116
|
constructor(message: string);
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
declare class UnsubscribeError extends BaseError {
|
|
119
|
+
constructor(message: string);
|
|
120
|
+
}
|
|
121
|
+
export { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, 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 };
|
|
119
122
|
declare const _default: {
|
|
120
123
|
BaseError: typeof BaseError;
|
|
121
124
|
ExchangeError: typeof ExchangeError;
|
|
@@ -156,5 +159,6 @@ declare const _default: {
|
|
|
156
159
|
BadResponse: typeof BadResponse;
|
|
157
160
|
NullResponse: typeof NullResponse;
|
|
158
161
|
CancelPending: typeof CancelPending;
|
|
162
|
+
UnsubscribeError: typeof UnsubscribeError;
|
|
159
163
|
};
|
|
160
164
|
export default _default;
|
package/js/src/base/errors.js
CHANGED
|
@@ -239,5 +239,11 @@ class CancelPending extends OperationFailed {
|
|
|
239
239
|
this.name = 'CancelPending';
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
class UnsubscribeError extends BaseError {
|
|
243
|
+
constructor(message) {
|
|
244
|
+
super(message);
|
|
245
|
+
this.name = 'UnsubscribeError';
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
export { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, 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 };
|
|
249
|
+
export default { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, 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 };
|
package/js/src/binance.js
CHANGED
|
@@ -3855,12 +3855,14 @@ export default class binance extends Exchange {
|
|
|
3855
3855
|
const marketId = this.safeString(ticker, 'symbol');
|
|
3856
3856
|
const symbol = this.safeSymbol(marketId, market, undefined, marketType);
|
|
3857
3857
|
const last = this.safeString(ticker, 'lastPrice');
|
|
3858
|
+
const wAvg = this.safeString(ticker, 'weightedAvgPrice');
|
|
3858
3859
|
const isCoinm = ('baseVolume' in ticker);
|
|
3859
3860
|
let baseVolume = undefined;
|
|
3860
3861
|
let quoteVolume = undefined;
|
|
3861
3862
|
if (isCoinm) {
|
|
3862
3863
|
baseVolume = this.safeString(ticker, 'baseVolume');
|
|
3863
|
-
quoteVolume
|
|
3864
|
+
// 'volume' field in inverse markets is not quoteVolume, but traded amount (per contracts)
|
|
3865
|
+
quoteVolume = Precise.stringMul(baseVolume, wAvg);
|
|
3864
3866
|
}
|
|
3865
3867
|
else {
|
|
3866
3868
|
baseVolume = this.safeString(ticker, 'volume');
|
|
@@ -3876,7 +3878,7 @@ export default class binance extends Exchange {
|
|
|
3876
3878
|
'bidVolume': this.safeString(ticker, 'bidQty'),
|
|
3877
3879
|
'ask': this.safeString(ticker, 'askPrice'),
|
|
3878
3880
|
'askVolume': this.safeString(ticker, 'askQty'),
|
|
3879
|
-
'vwap':
|
|
3881
|
+
'vwap': wAvg,
|
|
3880
3882
|
'open': this.safeString2(ticker, 'openPrice', 'open'),
|
|
3881
3883
|
'close': last,
|
|
3882
3884
|
'last': last,
|
package/js/src/bingx.js
CHANGED
|
@@ -750,7 +750,13 @@ export default class bingx extends Exchange {
|
|
|
750
750
|
}
|
|
751
751
|
const fees = this.safeDict(this.fees, type, {});
|
|
752
752
|
const contractSize = (swap) ? this.parseNumber('1') : undefined;
|
|
753
|
-
|
|
753
|
+
let isActive = false;
|
|
754
|
+
if ((this.safeString(market, 'apiStateOpen') === 'true') && (this.safeString(market, 'apiStateClose') === 'true')) {
|
|
755
|
+
isActive = true; // swap active
|
|
756
|
+
}
|
|
757
|
+
else if (this.safeBool(market, 'apiStateSell') && this.safeBool(market, 'apiStateBuy')) {
|
|
758
|
+
isActive = true; // spot active
|
|
759
|
+
}
|
|
754
760
|
const isInverse = (spot) ? undefined : checkIsInverse;
|
|
755
761
|
const isLinear = (spot) ? undefined : checkIsLinear;
|
|
756
762
|
let timeOnline = this.safeInteger(market, 'timeOnline');
|
package/js/src/bitfinex.js
CHANGED
|
@@ -854,7 +854,7 @@ export default class bitfinex extends Exchange {
|
|
|
854
854
|
* @method
|
|
855
855
|
* @name bitfinex#fetchTickers
|
|
856
856
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
857
|
-
* @param {string[]
|
|
857
|
+
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
858
858
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
859
859
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
860
860
|
*/
|
|
@@ -863,7 +863,7 @@ export default class bitfinex extends Exchange {
|
|
|
863
863
|
const response = await this.publicGetTickers(params);
|
|
864
864
|
const result = {};
|
|
865
865
|
for (let i = 0; i < response.length; i++) {
|
|
866
|
-
const ticker = this.parseTicker(
|
|
866
|
+
const ticker = this.parseTicker(response[i]);
|
|
867
867
|
const symbol = ticker['symbol'];
|
|
868
868
|
result[symbol] = ticker;
|
|
869
869
|
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import Exchange from './abstract/hashkey.js';
|
|
2
|
+
import type { Account, Balances, Currencies, Currency, Dict, FundingRateHistory, LastPrice, LastPrices, Leverage, LeverageTier, LeverageTiers, Int, Market, Num, OHLCV, Order, OrderBook, OrderRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, TradingFees, Transaction, TransferEntry } from './base/types.js';
|
|
3
|
+
/**
|
|
4
|
+
* @class hashkey
|
|
5
|
+
* @augments Exchange
|
|
6
|
+
*/
|
|
7
|
+
export default class hashkey extends Exchange {
|
|
8
|
+
describe(): any;
|
|
9
|
+
fetchTime(params?: {}): Promise<Int>;
|
|
10
|
+
fetchStatus(params?: {}): Promise<{
|
|
11
|
+
status: string;
|
|
12
|
+
updated: any;
|
|
13
|
+
eta: any;
|
|
14
|
+
url: any;
|
|
15
|
+
info: any;
|
|
16
|
+
}>;
|
|
17
|
+
fetchMarkets(params?: {}): Promise<Market[]>;
|
|
18
|
+
parseMarket(market: Dict): Market;
|
|
19
|
+
fetchCurrencies(params?: {}): Promise<Currencies>;
|
|
20
|
+
parseCurrencyType(type: any): string;
|
|
21
|
+
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
22
|
+
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
23
|
+
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
24
|
+
parseTrade(trade: Dict, market?: Market): Trade;
|
|
25
|
+
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
26
|
+
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
27
|
+
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
28
|
+
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
29
|
+
parseTicker(ticker: any, market?: Market): Ticker;
|
|
30
|
+
fetchLastPrices(symbols?: Strings, params?: {}): Promise<LastPrices>;
|
|
31
|
+
parseLastPrice(entry: any, market?: Market): LastPrice;
|
|
32
|
+
fetchBalance(params?: {}): Promise<Balances>;
|
|
33
|
+
parseBalance(balance: any): Balances;
|
|
34
|
+
parseSwapBalance(balance: any): Balances;
|
|
35
|
+
fetchDepositAddress(code: string, params?: {}): Promise<{
|
|
36
|
+
currency: string;
|
|
37
|
+
address: string;
|
|
38
|
+
tag: string;
|
|
39
|
+
network: any;
|
|
40
|
+
info: any;
|
|
41
|
+
}>;
|
|
42
|
+
parseDepositAddress(depositAddress: any, currency?: Currency): {
|
|
43
|
+
currency: string;
|
|
44
|
+
address: string;
|
|
45
|
+
tag: string;
|
|
46
|
+
network: any;
|
|
47
|
+
info: any;
|
|
48
|
+
};
|
|
49
|
+
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
50
|
+
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
51
|
+
withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
|
|
52
|
+
parseTransaction(transaction: any, currency?: Currency): Transaction;
|
|
53
|
+
parseTransactionStatus(status: any): string;
|
|
54
|
+
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
|
|
55
|
+
parseTransfer(transfer: any, currency?: Currency): {
|
|
56
|
+
id: string;
|
|
57
|
+
timestamp: number;
|
|
58
|
+
datetime: string;
|
|
59
|
+
currency: string;
|
|
60
|
+
amount: any;
|
|
61
|
+
fromAccount: any;
|
|
62
|
+
toAccount: any;
|
|
63
|
+
status: string;
|
|
64
|
+
info: any;
|
|
65
|
+
};
|
|
66
|
+
fetchAccounts(params?: {}): Promise<Account[]>;
|
|
67
|
+
parseAccount(account: any): {
|
|
68
|
+
id: string;
|
|
69
|
+
type: string;
|
|
70
|
+
code: any;
|
|
71
|
+
info: any;
|
|
72
|
+
};
|
|
73
|
+
parseAccountType(type: any): string;
|
|
74
|
+
encodeAccountType(type: any): number;
|
|
75
|
+
encodeFlowType(type: any): number;
|
|
76
|
+
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
77
|
+
parseLedgerEntryType(type: any): string;
|
|
78
|
+
parseLedgerEntry(item: Dict, currency?: Currency): {
|
|
79
|
+
id: string;
|
|
80
|
+
info: Dict;
|
|
81
|
+
timestamp: number;
|
|
82
|
+
datetime: string;
|
|
83
|
+
account: string;
|
|
84
|
+
direction: string;
|
|
85
|
+
referenceId: any;
|
|
86
|
+
referenceAccount: any;
|
|
87
|
+
type: string;
|
|
88
|
+
currency: string;
|
|
89
|
+
symbol: any;
|
|
90
|
+
amount: number;
|
|
91
|
+
before: any;
|
|
92
|
+
after: number;
|
|
93
|
+
status: string;
|
|
94
|
+
fee: any;
|
|
95
|
+
};
|
|
96
|
+
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
97
|
+
createMarketBuyOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
|
|
98
|
+
createSpotOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
99
|
+
createOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Dict;
|
|
100
|
+
createSpotOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Dict;
|
|
101
|
+
createSwapOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Dict;
|
|
102
|
+
createSwapOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
103
|
+
createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
|
|
104
|
+
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
105
|
+
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
106
|
+
cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
|
|
107
|
+
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
108
|
+
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
109
|
+
fetchOpenSpotOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
110
|
+
fetchOpenSwapOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
111
|
+
fetchCanceledAndClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
112
|
+
checkTypeParam(methodName: any, params: any): void;
|
|
113
|
+
handleTriggerOptionAndParams(params: object, methodName: string, defaultValue?: any): any[];
|
|
114
|
+
parseOrder(order: Dict, market?: Market): Order;
|
|
115
|
+
parseOrderSideAndReduceOnly(unparsed: any): any[];
|
|
116
|
+
parseOrderStatus(status: any): string;
|
|
117
|
+
parseOrderTypeTimeInForceAndPostOnly(type: any, timeInForce: any): any[];
|
|
118
|
+
parseOrderType(type: any): string;
|
|
119
|
+
fetchFundingRate(symbol: string, params?: {}): Promise<{
|
|
120
|
+
info: any;
|
|
121
|
+
symbol: string;
|
|
122
|
+
markPrice: any;
|
|
123
|
+
indexPrice: any;
|
|
124
|
+
interestRate: any;
|
|
125
|
+
estimatedSettlePrice: any;
|
|
126
|
+
timestamp: any;
|
|
127
|
+
datetime: any;
|
|
128
|
+
fundingRate: number;
|
|
129
|
+
fundingTimestamp: any;
|
|
130
|
+
fundingDatetime: any;
|
|
131
|
+
nextFundingRate: any;
|
|
132
|
+
nextFundingTimestamp: number;
|
|
133
|
+
nextFundingDatetime: string;
|
|
134
|
+
previousFundingRate: any;
|
|
135
|
+
previousFundingTimestamp: any;
|
|
136
|
+
previousFundingDatetime: any;
|
|
137
|
+
}>;
|
|
138
|
+
fetchFundingRates(symbols?: Strings, params?: {}): Promise<any>;
|
|
139
|
+
parseFundingRate(contract: any, market?: Market): {
|
|
140
|
+
info: any;
|
|
141
|
+
symbol: string;
|
|
142
|
+
markPrice: any;
|
|
143
|
+
indexPrice: any;
|
|
144
|
+
interestRate: any;
|
|
145
|
+
estimatedSettlePrice: any;
|
|
146
|
+
timestamp: any;
|
|
147
|
+
datetime: any;
|
|
148
|
+
fundingRate: number;
|
|
149
|
+
fundingTimestamp: any;
|
|
150
|
+
fundingDatetime: any;
|
|
151
|
+
nextFundingRate: any;
|
|
152
|
+
nextFundingTimestamp: number;
|
|
153
|
+
nextFundingDatetime: string;
|
|
154
|
+
previousFundingRate: any;
|
|
155
|
+
previousFundingTimestamp: any;
|
|
156
|
+
previousFundingDatetime: any;
|
|
157
|
+
};
|
|
158
|
+
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
|
|
159
|
+
fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
|
|
160
|
+
fetchPositionsForSymbol(symbol: string, params?: {}): Promise<Position[]>;
|
|
161
|
+
parsePosition(position: Dict, market?: Market): Position;
|
|
162
|
+
fetchLeverage(symbol: string, params?: {}): Promise<Leverage>;
|
|
163
|
+
parseLeverage(leverage: Dict, market?: Market): Leverage;
|
|
164
|
+
setLeverage(leverage: Int, symbol?: Str, params?: {}): Promise<Leverage>;
|
|
165
|
+
fetchLeverageTiers(symbols?: Strings, params?: {}): Promise<LeverageTiers>;
|
|
166
|
+
parseMarketLeverageTiers(info: any, market?: Market): LeverageTier[];
|
|
167
|
+
fetchTradingFee(symbol: string, params?: {}): Promise<TradingFeeInterface>;
|
|
168
|
+
fetchTradingFees(params?: {}): Promise<TradingFees>;
|
|
169
|
+
parseTradingFee(fee: Dict, market?: Market): TradingFeeInterface;
|
|
170
|
+
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
|
171
|
+
url: string;
|
|
172
|
+
method: string;
|
|
173
|
+
body: any;
|
|
174
|
+
headers: any;
|
|
175
|
+
};
|
|
176
|
+
customUrlencode(params?: Dict): Str;
|
|
177
|
+
handleErrors(code: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
|
|
178
|
+
}
|