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.
Files changed (77) hide show
  1. package/README.md +8 -5
  2. package/dist/ccxt.browser.min.js +15 -15
  3. package/dist/cjs/ccxt.js +7 -1
  4. package/dist/cjs/src/abstract/hashkey.js +9 -0
  5. package/dist/cjs/src/base/Exchange.js +1 -1
  6. package/dist/cjs/src/base/errors.js +8 -1
  7. package/dist/cjs/src/binance.js +4 -2
  8. package/dist/cjs/src/bingx.js +7 -1
  9. package/dist/cjs/src/bitfinex.js +2 -2
  10. package/dist/cjs/src/hashkey.js +4327 -0
  11. package/dist/cjs/src/hyperliquid.js +85 -65
  12. package/dist/cjs/src/indodax.js +37 -9
  13. package/dist/cjs/src/kraken.js +37 -6
  14. package/dist/cjs/src/krakenfutures.js +12 -10
  15. package/dist/cjs/src/pro/ascendex.js +45 -5
  16. package/dist/cjs/src/pro/bingx.js +13 -12
  17. package/dist/cjs/src/pro/bitget.js +164 -19
  18. package/dist/cjs/src/pro/hashkey.js +839 -0
  19. package/dist/cjs/src/pro/hyperliquid.js +123 -0
  20. package/dist/cjs/src/pro/mexc.js +13 -7
  21. package/dist/cjs/src/pro/p2b.js +34 -7
  22. package/dist/cjs/src/pro/poloniex.js +36 -3
  23. package/dist/cjs/src/pro/poloniexfutures.js +1 -0
  24. package/dist/cjs/src/pro/probit.js +2 -0
  25. package/dist/cjs/src/pro/upbit.js +48 -3
  26. package/dist/cjs/src/pro/vertex.js +1 -0
  27. package/dist/cjs/src/pro/wazirx.js +3 -0
  28. package/dist/cjs/src/pro/whitebit.js +9 -0
  29. package/dist/cjs/src/pro/woo.js +1 -0
  30. package/dist/cjs/src/pro/woofipro.js +1 -0
  31. package/dist/cjs/src/pro/xt.js +1 -0
  32. package/dist/cjs/src/upbit.js +1 -1
  33. package/js/ccxt.d.ts +9 -3
  34. package/js/ccxt.js +7 -3
  35. package/js/src/abstract/hashkey.d.ts +70 -0
  36. package/js/src/abstract/hashkey.js +11 -0
  37. package/js/src/base/Exchange.js +1 -1
  38. package/js/src/base/errorHierarchy.d.ts +1 -0
  39. package/js/src/base/errorHierarchy.js +1 -0
  40. package/js/src/base/errors.d.ts +5 -1
  41. package/js/src/base/errors.js +8 -2
  42. package/js/src/binance.js +4 -2
  43. package/js/src/bingx.js +7 -1
  44. package/js/src/bitfinex.js +2 -2
  45. package/js/src/hashkey.d.ts +178 -0
  46. package/js/src/hashkey.js +4328 -0
  47. package/js/src/hyperliquid.d.ts +3 -0
  48. package/js/src/hyperliquid.js +85 -65
  49. package/js/src/indodax.js +37 -9
  50. package/js/src/kraken.js +37 -6
  51. package/js/src/krakenfutures.js +12 -10
  52. package/js/src/pro/ascendex.d.ts +2 -0
  53. package/js/src/pro/ascendex.js +45 -5
  54. package/js/src/pro/bingx.js +13 -12
  55. package/js/src/pro/bitget.d.ts +8 -0
  56. package/js/src/pro/bitget.js +165 -20
  57. package/js/src/pro/hashkey.d.ts +34 -0
  58. package/js/src/pro/hashkey.js +840 -0
  59. package/js/src/pro/hyperliquid.d.ts +7 -1
  60. package/js/src/pro/hyperliquid.js +123 -0
  61. package/js/src/pro/mexc.js +13 -7
  62. package/js/src/pro/p2b.d.ts +1 -0
  63. package/js/src/pro/p2b.js +34 -7
  64. package/js/src/pro/poloniex.d.ts +1 -0
  65. package/js/src/pro/poloniex.js +36 -3
  66. package/js/src/pro/poloniexfutures.js +1 -0
  67. package/js/src/pro/probit.js +2 -0
  68. package/js/src/pro/upbit.d.ts +1 -0
  69. package/js/src/pro/upbit.js +48 -3
  70. package/js/src/pro/vertex.js +1 -0
  71. package/js/src/pro/wazirx.js +3 -0
  72. package/js/src/pro/whitebit.js +9 -0
  73. package/js/src/pro/woo.js +1 -0
  74. package/js/src/pro/woofipro.js +1 -0
  75. package/js/src/pro/xt.js +1 -0
  76. package/js/src/upbit.js +1 -1
  77. 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.84";
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.85';
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;
@@ -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 {
@@ -51,6 +51,7 @@ declare const errorHierarchy: {
51
51
  };
52
52
  CancelPending: {};
53
53
  };
54
+ UnsubscribeError: {};
54
55
  };
55
56
  };
56
57
  export default errorHierarchy;
@@ -57,6 +57,7 @@ const errorHierarchy = {
57
57
  },
58
58
  'CancelPending': {},
59
59
  },
60
+ 'UnsubscribeError': {},
60
61
  },
61
62
  };
62
63
  export default errorHierarchy;
@@ -115,7 +115,10 @@ declare class NullResponse extends BadResponse {
115
115
  declare class CancelPending extends OperationFailed {
116
116
  constructor(message: string);
117
117
  }
118
- 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 };
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;
@@ -239,5 +239,11 @@ class CancelPending extends OperationFailed {
239
239
  this.name = 'CancelPending';
240
240
  }
241
241
  }
242
- 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 };
243
- 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 };
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 = this.safeString(ticker, 'volume');
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': this.safeString(ticker, 'weightedAvgPrice'),
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
- const isActive = this.safeString(market, 'status') === '1';
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');
@@ -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[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
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({ 'result': response[i] });
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
+ }