ccxt 4.5.63 → 4.5.64

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 (124) hide show
  1. package/README.md +6 -8
  2. package/dist/ccxt.browser.min.js +4 -4
  3. package/dist/cjs/ccxt.js +6 -12
  4. package/dist/cjs/src/aster.js +2 -2
  5. package/dist/cjs/src/base/Exchange.js +34 -3
  6. package/dist/cjs/src/bitget.js +5 -3
  7. package/dist/cjs/src/bitmex.js +1 -1
  8. package/dist/cjs/src/bitstamp.js +2 -1
  9. package/dist/cjs/src/bitvavo.js +1 -0
  10. package/dist/cjs/src/btcbox.js +1 -1
  11. package/dist/cjs/src/bullish.js +1 -1
  12. package/dist/cjs/src/bybiteu.js +3 -0
  13. package/dist/cjs/src/coinbase.js +3 -2
  14. package/dist/cjs/src/coinbaseinternational.js +1 -1
  15. package/dist/cjs/src/delta.js +23 -1
  16. package/dist/cjs/src/derive.js +1 -1
  17. package/dist/cjs/src/digifinex.js +12 -0
  18. package/dist/cjs/src/dydx.js +2 -2
  19. package/dist/cjs/src/extended.js +1 -1
  20. package/dist/cjs/src/gateeu.js +1 -0
  21. package/dist/cjs/src/grvt.js +1 -1
  22. package/dist/cjs/src/hashkey.js +127 -6
  23. package/dist/cjs/src/hibachi.js +20 -10
  24. package/dist/cjs/src/hyperliquid.js +1 -1
  25. package/dist/cjs/src/kraken.js +2 -0
  26. package/dist/cjs/src/kucoin.js +1 -1
  27. package/dist/cjs/src/kucoineu.js +3 -0
  28. package/dist/cjs/src/lighter.js +6 -4
  29. package/dist/cjs/src/mudrex.js +1328 -0
  30. package/dist/cjs/src/myokx.js +3 -0
  31. package/dist/cjs/src/okxus.js +1 -5
  32. package/dist/cjs/src/onetrading.js +1 -0
  33. package/dist/cjs/src/pacifica.js +1 -1
  34. package/dist/cjs/src/poloniex.js +1 -1
  35. package/dist/cjs/src/pro/bingx.js +4 -2
  36. package/dist/cjs/src/pro/bitget.js +9 -7
  37. package/dist/cjs/src/pro/grvt.js +1 -1
  38. package/dist/cjs/src/pro/hashkey.js +1 -1
  39. package/dist/cjs/src/pro/kraken.js +1 -1
  40. package/dist/cjs/src/pro/mudrex.js +226 -0
  41. package/dist/cjs/src/pro/okxus.js +1 -1
  42. package/js/ccxt.d.ts +8 -14
  43. package/js/ccxt.js +6 -10
  44. package/js/src/abstract/binance.d.ts +3 -0
  45. package/js/src/abstract/binancecoinm.d.ts +3 -0
  46. package/js/src/abstract/binanceus.d.ts +3 -0
  47. package/js/src/abstract/binanceusdm.d.ts +3 -0
  48. package/js/src/abstract/bybit.d.ts +39 -0
  49. package/js/src/abstract/bybiteu.d.ts +39 -0
  50. package/js/src/abstract/coincheck.d.ts +3 -0
  51. package/js/src/abstract/coinsph.d.ts +8 -1
  52. package/js/src/abstract/kucoineu.js +0 -6
  53. package/js/src/abstract/mudrex.d.ts +33 -0
  54. package/js/src/aster.js +2 -2
  55. package/js/src/base/Exchange.d.ts +10 -1
  56. package/js/src/base/Exchange.js +34 -3
  57. package/js/src/bitget.js +5 -3
  58. package/js/src/bitmex.js +1 -1
  59. package/js/src/bitstamp.js +2 -1
  60. package/js/src/bitvavo.js +1 -0
  61. package/js/src/btcbox.js +1 -1
  62. package/js/src/bullish.js +1 -1
  63. package/js/src/bybiteu.js +3 -0
  64. package/js/src/coinbase.js +3 -2
  65. package/js/src/coinbaseinternational.js +1 -1
  66. package/js/src/delta.d.ts +12 -0
  67. package/js/src/delta.js +23 -1
  68. package/js/src/derive.js +1 -1
  69. package/js/src/digifinex.d.ts +12 -0
  70. package/js/src/digifinex.js +12 -0
  71. package/js/src/dydx.d.ts +2 -2
  72. package/js/src/dydx.js +2 -2
  73. package/js/src/extended.js +1 -1
  74. package/js/src/gateeu.js +1 -0
  75. package/js/src/grvt.d.ts +1 -1
  76. package/js/src/grvt.js +1 -1
  77. package/js/src/hashkey.d.ts +40 -3
  78. package/js/src/hashkey.js +127 -6
  79. package/js/src/hibachi.d.ts +9 -5
  80. package/js/src/hibachi.js +20 -10
  81. package/js/src/hyperliquid.js +1 -1
  82. package/js/src/kraken.js +2 -0
  83. package/js/src/kucoin.js +1 -1
  84. package/js/src/kucoineu.js +3 -0
  85. package/js/src/lighter.js +6 -4
  86. package/js/src/mudrex.d.ts +310 -0
  87. package/js/src/mudrex.js +1321 -0
  88. package/js/src/myokx.js +3 -0
  89. package/js/src/okxus.js +1 -5
  90. package/js/src/onetrading.js +1 -0
  91. package/js/src/pacifica.js +1 -1
  92. package/js/src/poloniex.js +1 -1
  93. package/js/src/pro/bingx.js +4 -2
  94. package/js/src/pro/bitget.js +9 -7
  95. package/js/src/pro/grvt.d.ts +1 -1
  96. package/js/src/pro/grvt.js +1 -1
  97. package/js/src/pro/hashkey.d.ts +1 -1
  98. package/js/src/pro/hashkey.js +1 -1
  99. package/js/src/pro/kraken.js +1 -1
  100. package/js/src/pro/mudrex.d.ts +23 -0
  101. package/js/src/pro/mudrex.js +219 -0
  102. package/js/src/pro/okxus.js +1 -1
  103. package/package.json +3 -3
  104. package/dist/cjs/src/abstract/coinmetro.js +0 -11
  105. package/dist/cjs/src/abstract/novadax.js +0 -11
  106. package/dist/cjs/src/ascendex.js +0 -3780
  107. package/dist/cjs/src/coinmetro.js +0 -2030
  108. package/dist/cjs/src/novadax.js +0 -1678
  109. package/dist/cjs/src/pro/ascendex.js +0 -1013
  110. package/js/src/abstract/ascendex.d.ts +0 -80
  111. package/js/src/abstract/coinmetro.d.ts +0 -37
  112. package/js/src/abstract/coinmetro.js +0 -5
  113. package/js/src/abstract/novadax.d.ts +0 -32
  114. package/js/src/abstract/novadax.js +0 -5
  115. package/js/src/ascendex.d.ts +0 -436
  116. package/js/src/ascendex.js +0 -3773
  117. package/js/src/coinmetro.d.ts +0 -245
  118. package/js/src/coinmetro.js +0 -2023
  119. package/js/src/novadax.d.ts +0 -279
  120. package/js/src/novadax.js +0 -1671
  121. package/js/src/pro/ascendex.d.ts +0 -99
  122. package/js/src/pro/ascendex.js +0 -1006
  123. /package/dist/cjs/src/abstract/{ascendex.js → mudrex.js} +0 -0
  124. /package/js/src/abstract/{ascendex.js → mudrex.js} +0 -0
@@ -1,80 +0,0 @@
1
- import { implicitReturnType } from '../base/types.js';
2
- import { Exchange as _Exchange } from '../base/Exchange.js';
3
- interface Exchange {
4
- v1PublicGetAssets(params?: {}): Promise<implicitReturnType>;
5
- v1PublicGetProducts(params?: {}): Promise<implicitReturnType>;
6
- v1PublicGetTicker(params?: {}): Promise<implicitReturnType>;
7
- v1PublicGetBarhistInfo(params?: {}): Promise<implicitReturnType>;
8
- v1PublicGetBarhist(params?: {}): Promise<implicitReturnType>;
9
- v1PublicGetDepth(params?: {}): Promise<implicitReturnType>;
10
- v1PublicGetTrades(params?: {}): Promise<implicitReturnType>;
11
- v1PublicGetCashAssets(params?: {}): Promise<implicitReturnType>;
12
- v1PublicGetCashProducts(params?: {}): Promise<implicitReturnType>;
13
- v1PublicGetMarginAssets(params?: {}): Promise<implicitReturnType>;
14
- v1PublicGetMarginProducts(params?: {}): Promise<implicitReturnType>;
15
- v1PublicGetFuturesCollateral(params?: {}): Promise<implicitReturnType>;
16
- v1PublicGetFuturesContracts(params?: {}): Promise<implicitReturnType>;
17
- v1PublicGetFuturesRefPx(params?: {}): Promise<implicitReturnType>;
18
- v1PublicGetFuturesMarketData(params?: {}): Promise<implicitReturnType>;
19
- v1PublicGetFuturesFundingRates(params?: {}): Promise<implicitReturnType>;
20
- v1PublicGetRiskLimitInfo(params?: {}): Promise<implicitReturnType>;
21
- v1PublicGetExchangeInfo(params?: {}): Promise<implicitReturnType>;
22
- v1PrivateGetInfo(params?: {}): Promise<implicitReturnType>;
23
- v1PrivateGetWalletTransactions(params?: {}): Promise<implicitReturnType>;
24
- v1PrivateGetWalletDepositAddress(params?: {}): Promise<implicitReturnType>;
25
- v1PrivateGetDataBalanceSnapshot(params?: {}): Promise<implicitReturnType>;
26
- v1PrivateGetDataBalanceHistory(params?: {}): Promise<implicitReturnType>;
27
- v1PrivateAccountCategoryGetBalance(params?: {}): Promise<implicitReturnType>;
28
- v1PrivateAccountCategoryGetOrderOpen(params?: {}): Promise<implicitReturnType>;
29
- v1PrivateAccountCategoryGetOrderStatus(params?: {}): Promise<implicitReturnType>;
30
- v1PrivateAccountCategoryGetOrderHistCurrent(params?: {}): Promise<implicitReturnType>;
31
- v1PrivateAccountCategoryGetRisk(params?: {}): Promise<implicitReturnType>;
32
- v1PrivateAccountCategoryPostOrder(params?: {}): Promise<implicitReturnType>;
33
- v1PrivateAccountCategoryPostOrderBatch(params?: {}): Promise<implicitReturnType>;
34
- v1PrivateAccountCategoryDeleteOrder(params?: {}): Promise<implicitReturnType>;
35
- v1PrivateAccountCategoryDeleteOrderAll(params?: {}): Promise<implicitReturnType>;
36
- v1PrivateAccountCategoryDeleteOrderBatch(params?: {}): Promise<implicitReturnType>;
37
- v1PrivateAccountGroupGetCashBalance(params?: {}): Promise<implicitReturnType>;
38
- v1PrivateAccountGroupGetMarginBalance(params?: {}): Promise<implicitReturnType>;
39
- v1PrivateAccountGroupGetMarginRisk(params?: {}): Promise<implicitReturnType>;
40
- v1PrivateAccountGroupGetFuturesCollateralBalance(params?: {}): Promise<implicitReturnType>;
41
- v1PrivateAccountGroupGetFuturesPosition(params?: {}): Promise<implicitReturnType>;
42
- v1PrivateAccountGroupGetFuturesRisk(params?: {}): Promise<implicitReturnType>;
43
- v1PrivateAccountGroupGetFuturesFundingPayments(params?: {}): Promise<implicitReturnType>;
44
- v1PrivateAccountGroupGetOrderHist(params?: {}): Promise<implicitReturnType>;
45
- v1PrivateAccountGroupGetSpotFee(params?: {}): Promise<implicitReturnType>;
46
- v1PrivateAccountGroupPostTransfer(params?: {}): Promise<implicitReturnType>;
47
- v1PrivateAccountGroupPostFuturesTransferDeposit(params?: {}): Promise<implicitReturnType>;
48
- v1PrivateAccountGroupPostFuturesTransferWithdraw(params?: {}): Promise<implicitReturnType>;
49
- v2PublicGetAssets(params?: {}): Promise<implicitReturnType>;
50
- v2PublicGetFuturesContract(params?: {}): Promise<implicitReturnType>;
51
- v2PublicGetFuturesCollateral(params?: {}): Promise<implicitReturnType>;
52
- v2PublicGetFuturesPricingData(params?: {}): Promise<implicitReturnType>;
53
- v2PublicGetFuturesTicker(params?: {}): Promise<implicitReturnType>;
54
- v2PublicGetRiskLimitInfo(params?: {}): Promise<implicitReturnType>;
55
- v2PrivateDataGetOrderHist(params?: {}): Promise<implicitReturnType>;
56
- v2PrivateGetAccountInfo(params?: {}): Promise<implicitReturnType>;
57
- v2PrivateAccountGroupGetOrderHist(params?: {}): Promise<implicitReturnType>;
58
- v2PrivateAccountGroupGetFuturesPosition(params?: {}): Promise<implicitReturnType>;
59
- v2PrivateAccountGroupGetFuturesFreeMargin(params?: {}): Promise<implicitReturnType>;
60
- v2PrivateAccountGroupGetFuturesOrderHistCurrent(params?: {}): Promise<implicitReturnType>;
61
- v2PrivateAccountGroupGetFuturesFundingPayments(params?: {}): Promise<implicitReturnType>;
62
- v2PrivateAccountGroupGetFuturesOrderOpen(params?: {}): Promise<implicitReturnType>;
63
- v2PrivateAccountGroupGetFuturesOrderStatus(params?: {}): Promise<implicitReturnType>;
64
- v2PrivateAccountGroupPostFuturesIsolatedPositionMargin(params?: {}): Promise<implicitReturnType>;
65
- v2PrivateAccountGroupPostFuturesMarginType(params?: {}): Promise<implicitReturnType>;
66
- v2PrivateAccountGroupPostFuturesLeverage(params?: {}): Promise<implicitReturnType>;
67
- v2PrivateAccountGroupPostFuturesTransferDeposit(params?: {}): Promise<implicitReturnType>;
68
- v2PrivateAccountGroupPostFuturesTransferWithdraw(params?: {}): Promise<implicitReturnType>;
69
- v2PrivateAccountGroupPostFuturesOrder(params?: {}): Promise<implicitReturnType>;
70
- v2PrivateAccountGroupPostFuturesOrderBatch(params?: {}): Promise<implicitReturnType>;
71
- v2PrivateAccountGroupPostFuturesOrderOpen(params?: {}): Promise<implicitReturnType>;
72
- v2PrivateAccountGroupPostSubuserSubuserTransfer(params?: {}): Promise<implicitReturnType>;
73
- v2PrivateAccountGroupPostSubuserSubuserTransferHist(params?: {}): Promise<implicitReturnType>;
74
- v2PrivateAccountGroupDeleteFuturesOrder(params?: {}): Promise<implicitReturnType>;
75
- v2PrivateAccountGroupDeleteFuturesOrderBatch(params?: {}): Promise<implicitReturnType>;
76
- v2PrivateAccountGroupDeleteFuturesOrderAll(params?: {}): Promise<implicitReturnType>;
77
- }
78
- declare abstract class Exchange extends _Exchange {
79
- }
80
- export default Exchange;
@@ -1,37 +0,0 @@
1
- import { implicitReturnType } from '../base/types.js';
2
- import { Exchange as _Exchange } from '../base/Exchange.js';
3
- interface Exchange {
4
- publicGetDemoTemp(params?: {}): Promise<implicitReturnType>;
5
- publicGetExchangeCandlesPairTimeframeFromTo(params?: {}): Promise<implicitReturnType>;
6
- publicGetExchangePrices(params?: {}): Promise<implicitReturnType>;
7
- publicGetExchangeTicksPairFrom(params?: {}): Promise<implicitReturnType>;
8
- publicGetAssets(params?: {}): Promise<implicitReturnType>;
9
- publicGetMarkets(params?: {}): Promise<implicitReturnType>;
10
- publicGetExchangeBookPair(params?: {}): Promise<implicitReturnType>;
11
- publicGetExchangeBookUpdatesPairFrom(params?: {}): Promise<implicitReturnType>;
12
- privateGetUsersBalances(params?: {}): Promise<implicitReturnType>;
13
- privateGetUsersWallets(params?: {}): Promise<implicitReturnType>;
14
- privateGetUsersWalletsHistorySince(params?: {}): Promise<implicitReturnType>;
15
- privateGetExchangeOrdersStatusOrderID(params?: {}): Promise<implicitReturnType>;
16
- privateGetExchangeOrdersActive(params?: {}): Promise<implicitReturnType>;
17
- privateGetExchangeOrdersHistorySince(params?: {}): Promise<implicitReturnType>;
18
- privateGetExchangeFillsSince(params?: {}): Promise<implicitReturnType>;
19
- privateGetExchangeMargin(params?: {}): Promise<implicitReturnType>;
20
- privatePostJwt(params?: {}): Promise<implicitReturnType>;
21
- privatePostJwtDevice(params?: {}): Promise<implicitReturnType>;
22
- privatePostDevices(params?: {}): Promise<implicitReturnType>;
23
- privatePostJwtReadOnly(params?: {}): Promise<implicitReturnType>;
24
- privatePostExchangeOrdersCreate(params?: {}): Promise<implicitReturnType>;
25
- privatePostExchangeOrdersModifyOrderID(params?: {}): Promise<implicitReturnType>;
26
- privatePostExchangeSwap(params?: {}): Promise<implicitReturnType>;
27
- privatePostExchangeSwapConfirmSwapId(params?: {}): Promise<implicitReturnType>;
28
- privatePostExchangeOrdersCloseOrderID(params?: {}): Promise<implicitReturnType>;
29
- privatePostExchangeOrdersHedge(params?: {}): Promise<implicitReturnType>;
30
- privatePutJwt(params?: {}): Promise<implicitReturnType>;
31
- privatePutExchangeOrdersCancelOrderID(params?: {}): Promise<implicitReturnType>;
32
- privatePutUsersMarginCollateral(params?: {}): Promise<implicitReturnType>;
33
- privatePutUsersMarginPrimaryCurrency(params?: {}): Promise<implicitReturnType>;
34
- }
35
- declare abstract class Exchange extends _Exchange {
36
- }
37
- export default Exchange;
@@ -1,5 +0,0 @@
1
- // -------------------------------------------------------------------------------
2
- import { Exchange as _Exchange } from '../base/Exchange.js';
3
- class Exchange extends _Exchange {
4
- }
5
- export default Exchange;
@@ -1,32 +0,0 @@
1
- import { implicitReturnType } from '../base/types.js';
2
- import { Exchange as _Exchange } from '../base/Exchange.js';
3
- interface Exchange {
4
- publicGetCommonSymbol(params?: {}): Promise<implicitReturnType>;
5
- publicGetCommonSymbols(params?: {}): Promise<implicitReturnType>;
6
- publicGetCommonTimestamp(params?: {}): Promise<implicitReturnType>;
7
- publicGetMarketTickers(params?: {}): Promise<implicitReturnType>;
8
- publicGetMarketTicker(params?: {}): Promise<implicitReturnType>;
9
- publicGetMarketDepth(params?: {}): Promise<implicitReturnType>;
10
- publicGetMarketTrades(params?: {}): Promise<implicitReturnType>;
11
- publicGetMarketKlineHistory(params?: {}): Promise<implicitReturnType>;
12
- privateGetOrdersGet(params?: {}): Promise<implicitReturnType>;
13
- privateGetOrdersList(params?: {}): Promise<implicitReturnType>;
14
- privateGetOrdersFill(params?: {}): Promise<implicitReturnType>;
15
- privateGetOrdersFills(params?: {}): Promise<implicitReturnType>;
16
- privateGetAccountGetBalance(params?: {}): Promise<implicitReturnType>;
17
- privateGetAccountSubs(params?: {}): Promise<implicitReturnType>;
18
- privateGetAccountSubsBalance(params?: {}): Promise<implicitReturnType>;
19
- privateGetAccountSubsTransferRecord(params?: {}): Promise<implicitReturnType>;
20
- privateGetWalletQueryDepositWithdraw(params?: {}): Promise<implicitReturnType>;
21
- privatePostOrdersCreate(params?: {}): Promise<implicitReturnType>;
22
- privatePostOrdersBatchCreate(params?: {}): Promise<implicitReturnType>;
23
- privatePostOrdersCancel(params?: {}): Promise<implicitReturnType>;
24
- privatePostOrdersBatchCancel(params?: {}): Promise<implicitReturnType>;
25
- privatePostOrdersCancelBySymbol(params?: {}): Promise<implicitReturnType>;
26
- privatePostAccountSubsTransfer(params?: {}): Promise<implicitReturnType>;
27
- privatePostWalletWithdrawCoin(params?: {}): Promise<implicitReturnType>;
28
- privatePostAccountWithdrawCoin(params?: {}): Promise<implicitReturnType>;
29
- }
30
- declare abstract class Exchange extends _Exchange {
31
- }
32
- export default Exchange;
@@ -1,5 +0,0 @@
1
- // -------------------------------------------------------------------------------
2
- import { Exchange as _Exchange } from '../base/Exchange.js';
3
- class Exchange extends _Exchange {
4
- }
5
- export default Exchange;
@@ -1,436 +0,0 @@
1
- import Exchange from './abstract/ascendex.js';
2
- import type { TransferEntry, FundingHistory, Int, OHLCV, Order, OrderSide, OrderType, OrderRequest, Str, Trade, Balances, Transaction, Ticker, OrderBook, Tickers, Strings, Num, Currency, Market, Leverage, Leverages, Account, MarginModes, MarginMode, MarginModification, Currencies, TradingFees, Dict, LeverageTier, LeverageTiers, int, FundingRate, FundingRates, DepositAddress, Position, OpenInterests, NullableDict } from './base/types.js';
3
- /**
4
- * @class ascendex
5
- * @augments Exchange
6
- */
7
- export default class ascendex extends Exchange {
8
- describe(): any;
9
- getAccount(params?: {}): string;
10
- /**
11
- * @method
12
- * @name ascendex#fetchCurrencies
13
- * @description fetches all available currencies on an exchange
14
- * @param {object} [params] extra parameters specific to the exchange API endpoint
15
- * @returns {object} an associative dictionary of currencies
16
- */
17
- fetchCurrencies(params?: {}): Promise<Currencies>;
18
- parseCurrency(rawCurrency: Dict): Currency;
19
- /**
20
- * @method
21
- * @name ascendex#fetchMarkets
22
- * @description retrieves data on all markets for ascendex
23
- * @param {object} [params] extra parameters specific to the exchange API endpoint
24
- * @returns {object[]} an array of objects representing market data
25
- */
26
- fetchMarkets(params?: {}): Promise<Market[]>;
27
- fetchSpotMarkets(params?: {}): Promise<Market[]>;
28
- fetchContractMarkets(params?: {}): Promise<Market[]>;
29
- /**
30
- * @method
31
- * @name ascendex#fetchTime
32
- * @description fetches the current integer timestamp in milliseconds from the ascendex server
33
- * @param {object} [params] extra parameters specific to the exchange API endpoint
34
- * @returns {int} the current integer timestamp in milliseconds from the ascendex server
35
- */
36
- fetchTime(params?: {}): Promise<Int>;
37
- /**
38
- * @method
39
- * @name ascendex#fetchAccounts
40
- * @description fetch all the accounts associated with a profile
41
- * @param {object} [params] extra parameters specific to the exchange API endpoint
42
- * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/?id=account-structure} indexed by the account type
43
- */
44
- fetchAccounts(params?: {}): Promise<Account[]>;
45
- parseBalance(response: any): Balances;
46
- parseMarginBalance(response: any): Balances;
47
- parseSwapBalance(response: any): Balances;
48
- /**
49
- * @method
50
- * @name ascendex#fetchBalance
51
- * @description query for balance and get the amount of funds available for trading or funds locked in orders
52
- * @see https://ascendex.github.io/ascendex-pro-api/#cash-account-balance
53
- * @see https://ascendex.github.io/ascendex-pro-api/#margin-account-balance
54
- * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#position
55
- * @param {object} [params] extra parameters specific to the exchange API endpoint
56
- * @param {string} [params.type] wallet type, 'spot', 'margin', or 'swap'
57
- * @param {string} [params.marginMode] 'cross' or undefined, for spot margin trading, value of 'isolated' is invalid
58
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
59
- */
60
- fetchBalance(params?: {}): Promise<Balances>;
61
- /**
62
- * @method
63
- * @name ascendex#fetchOrderBook
64
- * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
65
- * @param {string} symbol unified symbol of the market to fetch the order book for
66
- * @param {int} [limit] the maximum amount of order book entries to return
67
- * @param {object} [params] extra parameters specific to the exchange API endpoint
68
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
69
- */
70
- fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
71
- parseTicker(ticker: Dict, market?: Market): Ticker;
72
- /**
73
- * @method
74
- * @name ascendex#fetchTicker
75
- * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
76
- * @param {string} symbol unified symbol of the market to fetch the ticker for
77
- * @param {object} [params] extra parameters specific to the exchange API endpoint
78
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
79
- */
80
- fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
81
- /**
82
- * @method
83
- * @name ascendex#fetchTickers
84
- * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
85
- * @see https://ascendex.github.io/ascendex-pro-api/#ticker
86
- * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#ticker
87
- * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
88
- * @param {object} [params] extra parameters specific to the exchange API endpoint
89
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
90
- */
91
- fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
92
- parseOHLCV(ohlcv: any, market?: Market): OHLCV;
93
- /**
94
- * @method
95
- * @name ascendex#fetchOHLCV
96
- * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
97
- * @param {string} symbol unified symbol of the market to fetch OHLCV data for
98
- * @param {string} timeframe the length of time each candle represents
99
- * @param {int} [since] timestamp in ms of the earliest candle to fetch
100
- * @param {int} [limit] the maximum amount of candles to fetch
101
- * @param {object} [params] extra parameters specific to the exchange API endpoint
102
- * @param {int} [params.until] timestamp in ms of the latest candle to fetch
103
- * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
104
- */
105
- fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
106
- parseTrade(trade: Dict, market?: Market): Trade;
107
- /**
108
- * @method
109
- * @name ascendex#fetchTrades
110
- * @description get the list of most recent trades for a particular symbol
111
- * @see https://ascendex.github.io/ascendex-pro-api/#market-trades
112
- * @param {string} symbol unified symbol of the market to fetch trades for
113
- * @param {int} [since] timestamp in ms of the earliest trade to fetch
114
- * @param {int} [limit] the maximum amount of trades to fetch
115
- * @param {object} [params] extra parameters specific to the exchange API endpoint
116
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
117
- */
118
- fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
119
- parseOrderStatus(status: Str): string;
120
- parseOrder(order: Dict, market?: Market): Order;
121
- /**
122
- * @method
123
- * @name ascendex#fetchTradingFees
124
- * @description fetch the trading fees for multiple markets
125
- * @param {object} [params] extra parameters specific to the exchange API endpoint
126
- * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
127
- */
128
- fetchTradingFees(params?: {}): Promise<TradingFees>;
129
- createOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): any;
130
- /**
131
- * @method
132
- * @name ascendex#createOrder
133
- * @description create a trade order on the exchange
134
- * @see https://ascendex.github.io/ascendex-pro-api/#place-order
135
- * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#new-order
136
- * @param {string} symbol unified CCXT market symbol
137
- * @param {string} type "limit" or "market"
138
- * @param {string} side "buy" or "sell"
139
- * @param {float} amount the amount of currency to trade
140
- * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
141
- * @param {object} [params] extra parameters specific to the exchange API endpoint
142
- * @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
143
- * @param {bool} [params.postOnly] true or false
144
- * @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
145
- * @param {object} [params.takeProfit] *takeProfit object in params* containing the triggerPrice that the attached take profit order will be triggered (perpetual swap markets only)
146
- * @param {float} [params.takeProfit.triggerPrice] *swap only* take profit trigger price
147
- * @param {object} [params.stopLoss] *stopLoss object in params* containing the triggerPrice that the attached stop loss order will be triggered (perpetual swap markets only)
148
- * @param {float} [params.stopLoss.triggerPrice] *swap only* stop loss trigger price
149
- * @returns [An order structure]{@link https://docs.ccxt.com/?id=order-structure}
150
- */
151
- createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
152
- /**
153
- * @method
154
- * @name ascendex#createOrders
155
- * @description create a list of trade orders
156
- * @see https://ascendex.github.io/ascendex-pro-api/#place-batch-orders
157
- * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#place-batch-orders
158
- * @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
159
- * @param {object} [params] extra parameters specific to the exchange API endpoint
160
- * @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
161
- * @param {bool} [params.postOnly] true or false
162
- * @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
163
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
164
- */
165
- createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
166
- /**
167
- * @method
168
- * @name ascendex#fetchOrder
169
- * @description fetches information on an order made by the user
170
- * @see https://ascendex.github.io/ascendex-pro-api/#query-order
171
- * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#query-order-by-id
172
- * @param {string} id the order id
173
- * @param {string} symbol unified symbol of the market the order was made in
174
- * @param {object} [params] extra parameters specific to the exchange API endpoint
175
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
176
- */
177
- fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
178
- /**
179
- * @method
180
- * @name ascendex#fetchOpenOrders
181
- * @description fetch all unfilled currently open orders
182
- * @see https://ascendex.github.io/ascendex-pro-api/#list-open-orders
183
- * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#list-open-orders
184
- * @param {string} symbol unified market symbol
185
- * @param {int} [since] the earliest time in ms to fetch open orders for
186
- * @param {int} [limit] the maximum number of open orders structures to retrieve
187
- * @param {object} [params] extra parameters specific to the exchange API endpoint
188
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
189
- */
190
- fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
191
- /**
192
- * @method
193
- * @name ascendex#fetchClosedOrders
194
- * @description fetches information on multiple closed orders made by the user
195
- * @see https://ascendex.github.io/ascendex-pro-api/#list-history-orders-v2
196
- * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#list-current-history-orders
197
- * @param {string} symbol unified market symbol of the market orders were made in
198
- * @param {int} [since] the earliest time in ms to fetch orders for
199
- * @param {int} [limit] the maximum number of order structures to retrieve
200
- * @param {object} [params] extra parameters specific to the exchange API endpoint
201
- * @param {int} [params.until] the latest time in ms to fetch orders for
202
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
203
- */
204
- fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
205
- /**
206
- * @method
207
- * @name ascendex#cancelOrder
208
- * @description cancels an open order
209
- * @see https://ascendex.github.io/ascendex-pro-api/#cancel-order
210
- * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#cancel-order
211
- * @param {string} id order id
212
- * @param {string} symbol unified symbol of the market the order was made in
213
- * @param {object} [params] extra parameters specific to the exchange API endpoint
214
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
215
- */
216
- cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
217
- /**
218
- * @method
219
- * @name ascendex#cancelAllOrders
220
- * @description cancel all open orders
221
- * @see https://ascendex.github.io/ascendex-pro-api/#cancel-all-orders
222
- * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#cancel-all-open-orders
223
- * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
224
- * @param {object} [params] extra parameters specific to the exchange API endpoint
225
- * @returns {object[]} a list with a single [order structure]{@link https://docs.ccxt.com/?id=order-structure} with the response assigned to the info property
226
- */
227
- cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
228
- parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
229
- /**
230
- * @method
231
- * @name ascendex#fetchDepositAddress
232
- * @description fetch the deposit address for a currency associated with this account
233
- * @see https://ascendex.github.io/ascendex-pro-api/#query-deposit-addresses
234
- * @param {string} code unified currency code
235
- * @param {object} [params] extra parameters specific to the exchange API endpoint
236
- * @param {string} [params.network] unified network code for deposit chain
237
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
238
- */
239
- fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
240
- /**
241
- * @method
242
- * @name ascendex#fetchDeposits
243
- * @description fetch all deposits made to an account
244
- * @param {string} code unified currency code
245
- * @param {int} [since] the earliest time in ms to fetch deposits for
246
- * @param {int} [limit] the maximum number of deposits structures to retrieve
247
- * @param {object} [params] extra parameters specific to the exchange API endpoint
248
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
249
- */
250
- fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
251
- /**
252
- * @method
253
- * @name ascendex#fetchWithdrawals
254
- * @description fetch all withdrawals made from an account
255
- * @param {string} code unified currency code
256
- * @param {int} [since] the earliest time in ms to fetch withdrawals for
257
- * @param {int} [limit] the maximum number of withdrawals structures to retrieve
258
- * @param {object} [params] extra parameters specific to the exchange API endpoint
259
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
260
- */
261
- fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
262
- /**
263
- * @method
264
- * @name ascendex#fetchDepositsWithdrawals
265
- * @description fetch history of deposits and withdrawals
266
- * @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
267
- * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
268
- * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
269
- * @param {object} [params] extra parameters specific to the exchange API endpoint
270
- * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
271
- */
272
- fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
273
- parseTransactionStatus(status: Str): string;
274
- parseTransaction(transaction: Dict, currency?: Currency): Transaction;
275
- /**
276
- * @method
277
- * @name ascendex#fetchPositions
278
- * @description fetch all open positions
279
- * @param {string[]|undefined} symbols list of unified market symbols
280
- * @param {object} [params] extra parameters specific to the exchange API endpoint
281
- * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
282
- */
283
- fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
284
- parsePosition(position: Dict, market?: Market): Position;
285
- parseFundingRate(contract: any, market?: Market): FundingRate;
286
- /**
287
- * @method
288
- * @name ascendex#fetchFundingRates
289
- * @description fetch the funding rate for multiple markets
290
- * @param {string[]|undefined} symbols list of unified market symbols
291
- * @param {object} [params] extra parameters specific to the exchange API endpoint
292
- * @returns {object[]} a list of [funding rates structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexe by market symbols
293
- */
294
- fetchFundingRates(symbols?: Strings, params?: {}): Promise<FundingRates>;
295
- modifyMarginHelper(symbol: string, amount: any, type: any, params?: {}): Promise<MarginModification>;
296
- parseMarginModification(data: Dict, market?: Market): MarginModification;
297
- /**
298
- * @method
299
- * @name ascendex#reduceMargin
300
- * @description remove margin from a position
301
- * @param {string} symbol unified market symbol
302
- * @param {float} amount the amount of margin to remove
303
- * @param {object} [params] extra parameters specific to the exchange API endpoint
304
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=margin-structure}
305
- */
306
- reduceMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
307
- /**
308
- * @method
309
- * @name ascendex#addMargin
310
- * @description add margin
311
- * @param {string} symbol unified market symbol
312
- * @param {float} amount amount of margin to add
313
- * @param {object} [params] extra parameters specific to the exchange API endpoint
314
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=margin-structure}
315
- */
316
- addMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
317
- /**
318
- * @method
319
- * @name ascendex#setLeverage
320
- * @description set the level of leverage for a market
321
- * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#change-contract-leverage
322
- * @param {float} leverage the rate of leverage
323
- * @param {string} symbol unified market symbol
324
- * @param {object} [params] extra parameters specific to the exchange API endpoint
325
- * @returns {object} response from the exchange
326
- */
327
- setLeverage(leverage: int, symbol?: Str, params?: {}): Promise<any>;
328
- /**
329
- * @method
330
- * @name ascendex#setMarginMode
331
- * @description set margin mode to 'cross' or 'isolated'
332
- * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#change-margin-type
333
- * @param {string} marginMode 'cross' or 'isolated'
334
- * @param {string} symbol unified market symbol
335
- * @param {object} [params] extra parameters specific to the exchange API endpoint
336
- * @returns {object} response from the exchange
337
- */
338
- setMarginMode(marginMode: string, symbol?: Str, params?: {}): Promise<any>;
339
- /**
340
- * @method
341
- * @name ascendex#fetchLeverageTiers
342
- * @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
343
- * @param {string[]|undefined} symbols list of unified market symbols
344
- * @param {object} [params] extra parameters specific to the exchange API endpoint
345
- * @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}, indexed by market symbols
346
- */
347
- fetchLeverageTiers(symbols?: Strings, params?: {}): Promise<LeverageTiers>;
348
- parseMarketLeverageTiers(info: any, market?: Market): LeverageTier[];
349
- parseDepositWithdrawFee(fee: any, currency?: Currency): Dict;
350
- /**
351
- * @method
352
- * @name ascendex#fetchDepositWithdrawFees
353
- * @description fetch deposit and withdraw fees
354
- * @see https://ascendex.github.io/ascendex-pro-api/#list-all-assets
355
- * @param {string[]|undefined} codes list of unified currency codes
356
- * @param {object} [params] extra parameters specific to the exchange API endpoint
357
- * @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
358
- */
359
- fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
360
- /**
361
- * @method
362
- * @name ascendex#transfer
363
- * @description transfer currency internally between wallets on the same account
364
- * @param {string} code unified currency codeåå
365
- * @param {float} amount amount to transfer
366
- * @param {string} fromAccount account to transfer from
367
- * @param {string} toAccount account to transfer to
368
- * @param {object} [params] extra parameters specific to the exchange API endpoint
369
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
370
- */
371
- transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
372
- parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
373
- parseTransferStatus(status: Str): Str;
374
- /**
375
- * @method
376
- * @name ascendex#fetchFundingHistory
377
- * @description fetch the history of funding payments paid and received on this account
378
- * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#funding-payment-history
379
- * @param {string} [symbol] unified market symbol
380
- * @param {int} [since] the earliest time in ms to fetch funding history for
381
- * @param {int} [limit] the maximum number of funding history structures to retrieve
382
- * @param {object} [params] extra parameters specific to the exchange API endpoint
383
- * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
384
- * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/?id=funding-history-structure}
385
- */
386
- fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingHistory[]>;
387
- parseIncome(income: any, market?: Market): {
388
- info: any;
389
- symbol: string;
390
- code: string;
391
- timestamp: number;
392
- datetime: string;
393
- id: any;
394
- amount: number;
395
- };
396
- /**
397
- * @method
398
- * @name ascendex#fetchMarginModes
399
- * @description fetches the set margin mode of the user
400
- * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#position
401
- * @param {string[]} [symbols] a list of unified market symbols
402
- * @param {object} [params] extra parameters specific to the exchange API endpoint
403
- * @returns {object} a list of [margin mode structures]{@link https://docs.ccxt.com/?id=margin-mode-structure}
404
- */
405
- fetchMarginModes(symbols?: Strings, params?: {}): Promise<MarginModes>;
406
- parseMarginMode(marginMode: Dict, market?: any): MarginMode;
407
- /**
408
- * @method
409
- * @name ascendex#fetchLeverages
410
- * @description fetch the set leverage for all contract markets
411
- * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#position
412
- * @param {string[]} [symbols] a list of unified market symbols
413
- * @param {object} [params] extra parameters specific to the exchange API endpoint
414
- * @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com/?id=leverage-structure}
415
- */
416
- fetchLeverages(symbols?: Strings, params?: {}): Promise<Leverages>;
417
- /**
418
- * @method
419
- * @name ascendex#fetchOpenInterests
420
- * @description Retrieves the open interest for a list of symbols
421
- * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#futures-pricing-data
422
- * @param {string[]} [symbols] a list of unified CCXT market symbols
423
- * @param {object} [params] exchange specific parameters
424
- * @returns {object[]} a list of [open interest structures]{@link https://docs.ccxt.com/?id=open-interest-structure}
425
- */
426
- fetchOpenInterests(symbols?: Strings, params?: {}): Promise<OpenInterests>;
427
- parseOpenInterest(interest: any, market?: Market): import("./base/types.js").OpenInterest;
428
- parseLeverage(leverage: Dict, market?: Market): Leverage;
429
- sign(path: any, api?: any, method?: string, params?: {}, headers?: NullableDict, body?: any): {
430
- url: string;
431
- method: string;
432
- body: any;
433
- headers: Dict;
434
- };
435
- handleErrors(httpCode: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
436
- }