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
@@ -0,0 +1,310 @@
1
+ import Exchange from './abstract/mudrex.js';
2
+ import type { Balances, Dict, Int, Leverage, MarginModification, Market, Num, OHLCV, Order, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, Trade, TransferEntry, int } from './base/types.js';
3
+ /**
4
+ * @class mudrex
5
+ * @augments Exchange
6
+ */
7
+ export default class mudrex extends Exchange {
8
+ describe(): any;
9
+ sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
10
+ url: string;
11
+ method: string;
12
+ body: string;
13
+ headers: any;
14
+ };
15
+ handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
16
+ parseOHLCV(ohlcv: any, market?: Market): OHLCV;
17
+ /**
18
+ * @method
19
+ * @name mudrex#fetchOHLCV
20
+ * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
21
+ * @see https://docs.trade.mudrex.com/docs/historical-kline
22
+ * @param {string} symbol unified symbol of the market to fetch OHLCV data for
23
+ * @param {string} timeframe the length of time each candle represents
24
+ * @param {int} [since] timestamp in ms of the earliest candle to fetch
25
+ * @param {int} [limit] the maximum amount of candles to fetch
26
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
27
+ * @param {int} [params.until] timestamp in ms of the latest candle to fetch
28
+ * @param {string} [params.price] "mark" to fetch mark price candles
29
+ * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
30
+ */
31
+ fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
32
+ /**
33
+ * @method
34
+ * @name mudrex#fetchMarkOHLCV
35
+ * @description fetches historical mark price candlestick data containing the open, high, low, and close price of a market
36
+ * @see https://docs.trade.mudrex.com/docs
37
+ * @param {string} symbol unified symbol of the market to fetch OHLCV data for
38
+ * @param {string} timeframe the length of time each candle represents
39
+ * @param {int} [since] timestamp in ms of the earliest candle to fetch
40
+ * @param {int} [limit] the maximum amount of candles to fetch
41
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
42
+ * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
43
+ */
44
+ fetchMarkOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
45
+ /**
46
+ * @method
47
+ * @name mudrex#fetchTicker
48
+ * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
49
+ * @see https://docs.trade.mudrex.com/docs
50
+ * @param {string} symbol unified symbol of the market to fetch the ticker for
51
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
52
+ * @returns {object} a [ticker structure](https://docs.ccxt.com/#/?id=ticker-structure)
53
+ */
54
+ fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
55
+ /**
56
+ * @method
57
+ * @name mudrex#fetchTickers
58
+ * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
59
+ * @see https://docs.trade.mudrex.com/docs
60
+ * @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
61
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
62
+ * @returns {object} a dictionary of [ticker structures](https://docs.ccxt.com/#/?id=ticker-structure)
63
+ */
64
+ fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
65
+ parseTicker(ticker: Dict, market?: Market): Ticker;
66
+ /**
67
+ * @method
68
+ * @name mudrex#fetchMarkets
69
+ * @description retrieves data on all markets for the exchange
70
+ * @see https://docs.trade.mudrex.com/docs
71
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
72
+ * @returns {object[]} an array of objects representing market data
73
+ */
74
+ fetchMarkets(params?: {}): Promise<Market[]>;
75
+ parseMarket(asset: Dict): Market;
76
+ /**
77
+ * @method
78
+ * @name mudrex#fetchBalance
79
+ * @description query for balance and get the amount of funds available for trading or funds locked in orders
80
+ * @see https://docs.trade.mudrex.com/docs
81
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
82
+ * @param {string} [params.type] 'swap' (default) or 'spot' - which wallet balance to fetch
83
+ * @param {string} [params.trade_currency] the settlement currency to query the balance for
84
+ * @returns {object} a [balance structure](https://docs.ccxt.com/#/?id=balance-structure)
85
+ */
86
+ fetchBalance(params?: {}): Promise<Balances>;
87
+ parseBalance(response: any): Balances;
88
+ /**
89
+ * @method
90
+ * @name mudrex#fetchLeverage
91
+ * @description fetch the set leverage for a market
92
+ * @see https://docs.trade.mudrex.com/docs
93
+ * @param {string} symbol unified market symbol
94
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
95
+ * @returns {object} a [leverage structure](https://docs.ccxt.com/#/?id=leverage-structure)
96
+ */
97
+ fetchLeverage(symbol: string, params?: {}): Promise<Leverage>;
98
+ /**
99
+ * @method
100
+ * @name mudrex#setLeverage
101
+ * @description set the level of leverage for a market
102
+ * @see https://docs.trade.mudrex.com/docs
103
+ * @param {float} leverage the rate of leverage
104
+ * @param {string} symbol unified market symbol
105
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
106
+ * @param {string} [params.marginType] 'ISOLATED' (default) or 'CROSSED'
107
+ * @returns {object} response from the exchange
108
+ */
109
+ setLeverage(leverage: int, symbol?: Str, params?: {}): Promise<any>;
110
+ /**
111
+ * @method
112
+ * @name mudrex#createOrder
113
+ * @description create a trade order
114
+ * @see https://docs.trade.mudrex.com/docs
115
+ * @param {string} symbol unified market symbol
116
+ * @param {string} type 'market' or 'limit'
117
+ * @param {string} side 'buy' or 'sell'
118
+ * @param {float} amount how much you want to trade in units of the base currency
119
+ * @param {float} [price] the price to fulfill the order, in units of the quote currency (also required for market orders on this exchange)
120
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
121
+ * @param {int} [params.leverage] leverage for the order, required if setLeverage() was not called beforehand
122
+ * @param {bool} [params.reduceOnly] true if the order is reduce only
123
+ * @param {object} [params.takeProfit] *takeProfit object in params* containing the trigger price of the take-profit order attached to this order
124
+ * @param {float} [params.takeProfit.triggerPrice] take profit trigger price
125
+ * @param {object} [params.stopLoss] *stopLoss object in params* containing the trigger price of the stop-loss order attached to this order
126
+ * @param {float} [params.stopLoss.triggerPrice] stop loss trigger price
127
+ * @param {float} [params.takeProfitPrice] the trigger price for a standalone take-profit order on an existing position (requires params.positionId)
128
+ * @param {float} [params.stopLossPrice] the trigger price for a standalone stop-loss order on an existing position (requires params.positionId)
129
+ * @param {string} [params.positionId] the id of the position the standalone stopLossPrice/takeProfitPrice order is attached to
130
+ * @param {string} [params.trade_currency] the settlement currency for the order
131
+ * @returns {object} an [order structure](https://docs.ccxt.com/#/?id=order-structure)
132
+ */
133
+ createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
134
+ /**
135
+ * @method
136
+ * @name mudrex#editOrder
137
+ * @description edit a trade order
138
+ * @see https://docs.trade.mudrex.com/docs
139
+ * @param {string} id order id
140
+ * @param {string} symbol unified symbol of the market to edit an order in
141
+ * @param {string} type 'market' or 'limit'
142
+ * @param {string} side 'buy' or 'sell'
143
+ * @param {float} [amount] how much of the currency you want to trade in units of the base currency
144
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency
145
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
146
+ * @returns {object} an [order structure](https://docs.ccxt.com/#/?id=order-structure)
147
+ */
148
+ editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
149
+ parseOrderStatus(status: Str): Str;
150
+ parseOrder(order: Dict, market?: Market): Order;
151
+ /**
152
+ * @method
153
+ * @name mudrex#cancelOrder
154
+ * @description cancels an open order
155
+ * @see https://docs.trade.mudrex.com/docs
156
+ * @param {string} id order id
157
+ * @param {string} [symbol] unified symbol of the market the order was made in
158
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
159
+ * @returns {object} An [order structure](https://docs.ccxt.com/#/?id=order-structure)
160
+ */
161
+ cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
162
+ /**
163
+ * @method
164
+ * @name mudrex#fetchOrder
165
+ * @description fetches information on an order made by the user
166
+ * @see https://docs.trade.mudrex.com/docs
167
+ * @param {string} id the order id
168
+ * @param {string} [symbol] unified symbol of the market the order was made in
169
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
170
+ * @returns {object} An [order structure](https://docs.ccxt.com/#/?id=order-structure)
171
+ */
172
+ fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
173
+ /**
174
+ * @method
175
+ * @name mudrex#fetchOrdersByState
176
+ * @ignore
177
+ * @description fetches a list of orders filtered by their state
178
+ * @param {string} state the state of the orders to fetch
179
+ * @param {string} [symbol] unified market symbol
180
+ * @param {int} [since] the earliest time in ms to fetch orders for
181
+ * @param {int} [limit] the maximum number of order structures to retrieve
182
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
183
+ * @returns {Order[]} a list of [order structures](https://docs.ccxt.com/#/?id=order-structure)
184
+ */
185
+ fetchOrdersByState(state: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
186
+ /**
187
+ * @method
188
+ * @name mudrex#fetchOrders
189
+ * @description fetches information on multiple orders made by the user
190
+ * @see https://docs.trade.mudrex.com/docs
191
+ * @param {string} [symbol] unified market symbol of the market orders were made in
192
+ * @param {int} [since] the earliest time in ms to fetch orders for
193
+ * @param {int} [limit] the maximum number of order structures to retrieve
194
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
195
+ * @returns {Order[]} a list of [order structures](https://docs.ccxt.com/#/?id=order-structure)
196
+ */
197
+ fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
198
+ /**
199
+ * @method
200
+ * @name mudrex#fetchOpenOrders
201
+ * @description fetch all unfilled currently open orders
202
+ * @see https://docs.trade.mudrex.com/docs
203
+ * @param {string} [symbol] unified market symbol
204
+ * @param {int} [since] the earliest time in ms to fetch open orders for
205
+ * @param {int} [limit] the maximum number of open order structures to retrieve
206
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
207
+ * @returns {Order[]} a list of [order structures](https://docs.ccxt.com/#/?id=order-structure)
208
+ */
209
+ fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
210
+ /**
211
+ * @method
212
+ * @name mudrex#fetchClosedOrders
213
+ * @description fetches information on multiple closed orders made by the user
214
+ * @see https://docs.trade.mudrex.com/docs
215
+ * @param {string} [symbol] unified market symbol of the market orders were made in
216
+ * @param {int} [since] the earliest time in ms to fetch orders for
217
+ * @param {int} [limit] the maximum number of order structures to retrieve
218
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
219
+ * @returns {Order[]} a list of [order structures](https://docs.ccxt.com/#/?id=order-structure)
220
+ */
221
+ fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
222
+ /**
223
+ * @method
224
+ * @name mudrex#fetchPositions
225
+ * @description fetch all open positions
226
+ * @see https://docs.trade.mudrex.com/docs
227
+ * @param {string[]} [symbols] list of unified market symbols
228
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
229
+ * @param {string} [params.trade_currency] the settlement currency to query positions for
230
+ * @returns {object[]} a list of [position structures](https://docs.ccxt.com/#/?id=position-structure)
231
+ */
232
+ fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
233
+ /**
234
+ * @method
235
+ * @name mudrex#fetchPositionsHistory
236
+ * @description fetches the history of closed positions
237
+ * @see https://docs.trade.mudrex.com/docs/get-position-history
238
+ * @param {string[]} [symbols] a list of unified market symbols
239
+ * @param {int} [since] the earliest time in ms to fetch positions for
240
+ * @param {int} [limit] the maximum number of position structures to retrieve
241
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
242
+ * @param {string} [params.trade_currency] the settlement currency to filter positions by
243
+ * @returns {object[]} a list of [position structures](https://docs.ccxt.com/#/?id=position-structure)
244
+ */
245
+ fetchPositionsHistory(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
246
+ parsePosition(position: Dict, market?: Market): Position;
247
+ /**
248
+ * @method
249
+ * @name mudrex#closePosition
250
+ * @description closes an open position for a market
251
+ * @see https://docs.trade.mudrex.com/docs
252
+ * @param {string} symbol unified CCXT market symbol
253
+ * @param {string} [side] 'buy' or 'sell', not required by mudrex
254
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
255
+ * @param {string} [params.position_id] the id of the position to close, resolved from the symbol if not provided
256
+ * @param {float} [params.amount] the amount to close for a partial close, closes the whole position if not provided
257
+ * @returns {object} an [order structure](https://docs.ccxt.com/#/?id=order-structure)
258
+ */
259
+ closePosition(symbol: string, side?: OrderSide, params?: {}): Promise<Order>;
260
+ /**
261
+ * @method
262
+ * @name mudrex#addMargin
263
+ * @description add margin to a position
264
+ * @see https://docs.trade.mudrex.com/docs
265
+ * @param {string} symbol unified market symbol
266
+ * @param {float} amount amount of margin to add
267
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
268
+ * @param {string} [params.position_id] the id of the position to add margin to, resolved from the symbol if not provided
269
+ * @returns {object} a [margin structure](https://docs.ccxt.com/#/?id=add-margin-structure)
270
+ */
271
+ addMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
272
+ /**
273
+ * @method
274
+ * @name mudrex#reduceMargin
275
+ * @description remove margin from a position
276
+ * @see https://docs.trade.mudrex.com/docs
277
+ * @param {string} symbol unified market symbol
278
+ * @param {float} amount the amount of margin to remove
279
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
280
+ * @returns {object} a [margin structure](https://docs.ccxt.com/#/?id=reduce-margin-structure)
281
+ */
282
+ reduceMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
283
+ /**
284
+ * @method
285
+ * @name mudrex#fetchMyTrades
286
+ * @description fetch all trades made by the user
287
+ * @see https://docs.trade.mudrex.com/docs
288
+ * @param {string} [symbol] unified market symbol
289
+ * @param {int} [since] the earliest time in ms to fetch trades for
290
+ * @param {int} [limit] the maximum number of trade structures to retrieve
291
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
292
+ * @param {string} [params.trade_currency] the settlement currency to filter trades by
293
+ * @returns {Trade[]} a list of [trade structures](https://docs.ccxt.com/#/?id=trade-structure)
294
+ */
295
+ fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
296
+ parseTrade(trade: Dict, market?: Market): Trade;
297
+ /**
298
+ * @method
299
+ * @name mudrex#transfer
300
+ * @description transfer currency internally between wallets on the same account
301
+ * @see https://docs.trade.mudrex.com/docs
302
+ * @param {string} code unified currency code
303
+ * @param {float} amount amount to transfer
304
+ * @param {string} fromAccount 'spot' or 'futures'
305
+ * @param {string} toAccount 'spot' or 'futures'
306
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
307
+ * @returns {object} a [transfer structure](https://docs.ccxt.com/#/?id=transfer-structure)
308
+ */
309
+ transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
310
+ }