ccxt 4.5.55 → 4.5.57

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 (321) hide show
  1. package/README.md +215 -10
  2. package/dist/ccxt.browser.min.js +10 -10
  3. package/dist/cjs/ccxt.js +6 -11
  4. package/dist/cjs/src/aftermath.js +10 -5
  5. package/dist/cjs/src/alpaca.js +2 -2
  6. package/dist/cjs/src/apex.js +26 -17
  7. package/dist/cjs/src/arkham.js +10 -7
  8. package/dist/cjs/src/ascendex.js +8 -5
  9. package/dist/cjs/src/aster.js +7 -4
  10. package/dist/cjs/src/backpack.js +4 -4
  11. package/dist/cjs/src/base/Exchange.js +72 -35
  12. package/dist/cjs/src/base/functions/io.js +25 -0
  13. package/dist/cjs/src/base/functions.js +1 -0
  14. package/dist/cjs/src/bigone.js +10 -7
  15. package/dist/cjs/src/binance.js +196 -198
  16. package/dist/cjs/src/bingx.js +7 -7
  17. package/dist/cjs/src/bitfinex.js +71 -58
  18. package/dist/cjs/src/bitflyer.js +2 -1
  19. package/dist/cjs/src/bitget.js +16 -5
  20. package/dist/cjs/src/bitmart.js +18 -10
  21. package/dist/cjs/src/bitmex.js +8 -5
  22. package/dist/cjs/src/bitopro.js +2 -2
  23. package/dist/cjs/src/bitrue.js +4 -3
  24. package/dist/cjs/src/bitso.js +7 -4
  25. package/dist/cjs/src/bitstamp.js +7 -4
  26. package/dist/cjs/src/bitteam.js +1 -1
  27. package/dist/cjs/src/bittrade.js +2 -2
  28. package/dist/cjs/src/bitvavo.js +457 -34
  29. package/dist/cjs/src/blofin.js +28 -4
  30. package/dist/cjs/src/bullish.js +6 -5
  31. package/dist/cjs/src/bybit.js +19 -17
  32. package/dist/cjs/src/bybiteu.js +1 -0
  33. package/dist/cjs/src/bydfi.js +1 -1
  34. package/dist/cjs/src/cex.js +3 -3
  35. package/dist/cjs/src/coinbase.js +75 -65
  36. package/dist/cjs/src/coinbaseexchange.js +4 -3
  37. package/dist/cjs/src/coinbaseinternational.js +17 -10
  38. package/dist/cjs/src/coinex.js +79 -77
  39. package/dist/cjs/src/coinmetro.js +1 -1
  40. package/dist/cjs/src/coinsph.js +5 -5
  41. package/dist/cjs/src/cryptocom.js +52 -54
  42. package/dist/cjs/src/cryptomus.js +43 -39
  43. package/dist/cjs/src/deepcoin.js +9 -5
  44. package/dist/cjs/src/delta.js +53 -53
  45. package/dist/cjs/src/deribit.js +35 -35
  46. package/dist/cjs/src/derive.js +31 -31
  47. package/dist/cjs/src/digifinex.js +45 -45
  48. package/dist/cjs/src/exmo.js +104 -122
  49. package/dist/cjs/src/extended.js +3497 -0
  50. package/dist/cjs/src/foxbit.js +72 -76
  51. package/dist/cjs/src/gate.js +53 -53
  52. package/dist/cjs/src/gemini.js +45 -45
  53. package/dist/cjs/src/grvt.js +17 -11
  54. package/dist/cjs/src/hashkey.js +56 -58
  55. package/dist/cjs/src/hibachi.js +1 -1
  56. package/dist/cjs/src/hitbtc.js +5 -14
  57. package/dist/cjs/src/hollaex.js +51 -54
  58. package/dist/cjs/src/htx.js +84 -72
  59. package/dist/cjs/src/hyperliquid.js +60 -55
  60. package/dist/cjs/src/indodax.js +4 -3
  61. package/dist/cjs/src/kraken.js +71 -71
  62. package/dist/cjs/src/krakenfutures.js +2 -1
  63. package/dist/cjs/src/kucoin.js +3 -2
  64. package/dist/cjs/src/latoken.js +30 -32
  65. package/dist/cjs/src/lbank.js +64 -60
  66. package/dist/cjs/src/lighter.js +36 -38
  67. package/dist/cjs/src/luno.js +36 -44
  68. package/dist/cjs/src/mercado.js +2 -1
  69. package/dist/cjs/src/mexc.js +72 -63
  70. package/dist/cjs/src/modetrade.js +51 -53
  71. package/dist/cjs/src/ndax.js +35 -37
  72. package/dist/cjs/src/okx.js +23 -5
  73. package/dist/cjs/src/onetrading.js +21 -23
  74. package/dist/cjs/src/p2b.js +8 -4
  75. package/dist/cjs/src/paradex.js +3 -2
  76. package/dist/cjs/src/phemex.js +47 -47
  77. package/dist/cjs/src/poloniex.js +19 -13
  78. package/dist/cjs/src/pro/alpaca.js +1 -1
  79. package/dist/cjs/src/pro/apex.js +11 -2
  80. package/dist/cjs/src/pro/arkham.js +1 -1
  81. package/dist/cjs/src/pro/aster.js +10 -9
  82. package/dist/cjs/src/pro/backpack.js +1 -1
  83. package/dist/cjs/src/pro/binance.js +6 -6
  84. package/dist/cjs/src/pro/bingx.js +7 -2
  85. package/dist/cjs/src/pro/bitget.js +1 -1
  86. package/dist/cjs/src/pro/bithumb.js +1 -1
  87. package/dist/cjs/src/pro/bitmart.js +10 -0
  88. package/dist/cjs/src/pro/bitmex.js +1 -1
  89. package/dist/cjs/src/pro/bitstamp.js +1 -1
  90. package/dist/cjs/src/pro/blockchaincom.js +1 -1
  91. package/dist/cjs/src/pro/bybit.js +1 -1
  92. package/dist/cjs/src/pro/cex.js +1 -1
  93. package/dist/cjs/src/pro/coinex.js +1 -1
  94. package/dist/cjs/src/pro/coinone.js +1 -1
  95. package/dist/cjs/src/pro/cryptocom.js +3 -1
  96. package/dist/cjs/src/pro/dydx.js +1 -1
  97. package/dist/cjs/src/pro/exmo.js +1 -1
  98. package/dist/cjs/src/pro/extended.js +865 -0
  99. package/dist/cjs/src/pro/gate.js +1 -1
  100. package/dist/cjs/src/pro/grvt.js +8 -0
  101. package/dist/cjs/src/pro/htx.js +4 -4
  102. package/dist/cjs/src/pro/independentreserve.js +1 -1
  103. package/dist/cjs/src/pro/krakenfutures.js +16 -4
  104. package/dist/cjs/src/pro/kucoin.js +1 -1
  105. package/dist/cjs/src/pro/luno.js +3 -3
  106. package/dist/cjs/src/pro/modetrade.js +3 -3
  107. package/dist/cjs/src/pro/okx.js +4 -4
  108. package/dist/cjs/src/pro/onetrading.js +1 -1
  109. package/dist/cjs/src/pro/toobit.js +1 -1
  110. package/dist/cjs/src/pro/weex.js +1 -1
  111. package/dist/cjs/src/pro/woo.js +4 -4
  112. package/dist/cjs/src/pro/woofipro.js +3 -3
  113. package/dist/cjs/src/pro/xt.js +1 -1
  114. package/dist/cjs/src/static_dependencies/starknet/utils/hash/classHash.js +7 -7
  115. package/dist/cjs/src/tokocrypto.js +1 -1
  116. package/dist/cjs/src/toobit.js +3 -3
  117. package/dist/cjs/src/upbit.js +3 -3
  118. package/dist/cjs/src/weex.js +57 -62
  119. package/dist/cjs/src/whitebit.js +61 -63
  120. package/dist/cjs/src/woo.js +66 -55
  121. package/dist/cjs/src/woofipro.js +54 -48
  122. package/dist/cjs/src/xt.js +3 -2
  123. package/dist/cjs/src/yobit.js +4 -2
  124. package/dist/cjs/src/zebpay.js +73 -75
  125. package/js/ccxt.d.ts +8 -14
  126. package/js/ccxt.js +6 -10
  127. package/js/src/abstract/bitvavo.d.ts +15 -7
  128. package/js/src/abstract/extended.d.ts +58 -0
  129. package/js/src/abstract/mexc.d.ts +1 -0
  130. package/js/src/aftermath.js +10 -5
  131. package/js/src/alpaca.js +2 -2
  132. package/js/src/apex.d.ts +1 -1
  133. package/js/src/apex.js +26 -17
  134. package/js/src/arkham.js +10 -7
  135. package/js/src/ascendex.js +8 -5
  136. package/js/src/aster.js +7 -4
  137. package/js/src/backpack.js +4 -4
  138. package/js/src/base/Exchange.d.ts +10 -6
  139. package/js/src/base/Exchange.js +72 -35
  140. package/js/src/base/functions/io.d.ts +7 -0
  141. package/js/src/base/functions/io.js +24 -0
  142. package/js/src/bigone.js +10 -7
  143. package/js/src/binance.d.ts +2 -0
  144. package/js/src/binance.js +200 -202
  145. package/js/src/bingx.js +7 -7
  146. package/js/src/bitfinex.d.ts +2 -0
  147. package/js/src/bitfinex.js +71 -58
  148. package/js/src/bitflyer.js +2 -1
  149. package/js/src/bitget.js +16 -5
  150. package/js/src/bitmart.js +18 -10
  151. package/js/src/bitmex.js +8 -5
  152. package/js/src/bitopro.js +2 -2
  153. package/js/src/bitrue.js +4 -3
  154. package/js/src/bitso.js +7 -4
  155. package/js/src/bitstamp.js +7 -4
  156. package/js/src/bitteam.js +1 -1
  157. package/js/src/bittrade.js +2 -2
  158. package/js/src/bitvavo.d.ts +114 -21
  159. package/js/src/bitvavo.js +457 -34
  160. package/js/src/blofin.d.ts +1 -0
  161. package/js/src/blofin.js +28 -4
  162. package/js/src/bullish.js +6 -5
  163. package/js/src/bybit.d.ts +1 -1
  164. package/js/src/bybit.js +19 -17
  165. package/js/src/bybiteu.js +1 -0
  166. package/js/src/bydfi.js +1 -1
  167. package/js/src/cex.js +3 -3
  168. package/js/src/coinbase.d.ts +63 -56
  169. package/js/src/coinbase.js +75 -65
  170. package/js/src/coinbaseexchange.js +4 -3
  171. package/js/src/coinbaseinternational.d.ts +1 -1
  172. package/js/src/coinbaseinternational.js +17 -10
  173. package/js/src/coinex.d.ts +2 -1
  174. package/js/src/coinex.js +79 -77
  175. package/js/src/coinmetro.d.ts +1 -1
  176. package/js/src/coinmetro.js +1 -1
  177. package/js/src/coinsph.js +5 -5
  178. package/js/src/cryptocom.d.ts +1 -0
  179. package/js/src/cryptocom.js +52 -54
  180. package/js/src/cryptomus.d.ts +2 -1
  181. package/js/src/cryptomus.js +43 -39
  182. package/js/src/deepcoin.js +9 -5
  183. package/js/src/delta.d.ts +1 -0
  184. package/js/src/delta.js +53 -53
  185. package/js/src/deribit.d.ts +1 -0
  186. package/js/src/deribit.js +35 -35
  187. package/js/src/derive.d.ts +1 -0
  188. package/js/src/derive.js +31 -31
  189. package/js/src/digifinex.d.ts +1 -0
  190. package/js/src/digifinex.js +45 -45
  191. package/js/src/exmo.d.ts +1 -0
  192. package/js/src/exmo.js +104 -122
  193. package/js/src/extended.d.ts +554 -0
  194. package/js/src/extended.js +3490 -0
  195. package/js/src/foxbit.d.ts +1 -0
  196. package/js/src/foxbit.js +72 -76
  197. package/js/src/gate.d.ts +1 -0
  198. package/js/src/gate.js +53 -53
  199. package/js/src/gemini.d.ts +2 -1
  200. package/js/src/gemini.js +45 -45
  201. package/js/src/grvt.d.ts +1 -1
  202. package/js/src/grvt.js +17 -11
  203. package/js/src/hashkey.d.ts +1 -0
  204. package/js/src/hashkey.js +56 -58
  205. package/js/src/hibachi.d.ts +1 -1
  206. package/js/src/hibachi.js +1 -1
  207. package/js/src/hitbtc.d.ts +0 -1
  208. package/js/src/hitbtc.js +5 -14
  209. package/js/src/hollaex.d.ts +1 -0
  210. package/js/src/hollaex.js +51 -54
  211. package/js/src/htx.d.ts +1 -0
  212. package/js/src/htx.js +84 -72
  213. package/js/src/hyperliquid.d.ts +5 -4
  214. package/js/src/hyperliquid.js +60 -55
  215. package/js/src/indodax.js +4 -3
  216. package/js/src/kraken.d.ts +2 -1
  217. package/js/src/kraken.js +71 -71
  218. package/js/src/krakenfutures.js +2 -1
  219. package/js/src/kucoin.js +3 -2
  220. package/js/src/latoken.d.ts +1 -0
  221. package/js/src/latoken.js +30 -32
  222. package/js/src/lbank.d.ts +1 -0
  223. package/js/src/lbank.js +64 -60
  224. package/js/src/lighter.d.ts +2 -1
  225. package/js/src/lighter.js +36 -38
  226. package/js/src/luno.d.ts +1 -0
  227. package/js/src/luno.js +36 -44
  228. package/js/src/mercado.js +2 -1
  229. package/js/src/mexc.d.ts +4 -3
  230. package/js/src/mexc.js +72 -63
  231. package/js/src/modetrade.d.ts +1 -0
  232. package/js/src/modetrade.js +51 -53
  233. package/js/src/ndax.d.ts +1 -0
  234. package/js/src/ndax.js +35 -37
  235. package/js/src/okx.js +23 -5
  236. package/js/src/onetrading.d.ts +2 -1
  237. package/js/src/onetrading.js +21 -23
  238. package/js/src/p2b.js +8 -4
  239. package/js/src/paradex.js +3 -2
  240. package/js/src/phemex.d.ts +1 -0
  241. package/js/src/phemex.js +47 -47
  242. package/js/src/poloniex.js +19 -13
  243. package/js/src/pro/alpaca.js +1 -1
  244. package/js/src/pro/apex.js +11 -2
  245. package/js/src/pro/arkham.js +1 -1
  246. package/js/src/pro/aster.js +10 -9
  247. package/js/src/pro/backpack.js +1 -1
  248. package/js/src/pro/binance.d.ts +1 -1
  249. package/js/src/pro/binance.js +6 -6
  250. package/js/src/pro/bingx.js +7 -2
  251. package/js/src/pro/bitget.js +1 -1
  252. package/js/src/pro/bithumb.js +1 -1
  253. package/js/src/pro/bitmart.js +10 -0
  254. package/js/src/pro/bitmex.js +1 -1
  255. package/js/src/pro/bitstamp.js +1 -1
  256. package/js/src/pro/blockchaincom.js +1 -1
  257. package/js/src/pro/bybit.js +1 -1
  258. package/js/src/pro/cex.js +1 -1
  259. package/js/src/pro/coinex.js +1 -1
  260. package/js/src/pro/coinone.js +1 -1
  261. package/js/src/pro/cryptocom.js +3 -1
  262. package/js/src/pro/dydx.js +1 -1
  263. package/js/src/pro/exmo.js +1 -1
  264. package/js/src/pro/extended.d.ts +126 -0
  265. package/js/src/pro/extended.js +858 -0
  266. package/js/src/pro/gate.js +1 -1
  267. package/js/src/pro/grvt.js +8 -0
  268. package/js/src/pro/htx.d.ts +4 -4
  269. package/js/src/pro/htx.js +4 -4
  270. package/js/src/pro/independentreserve.js +1 -1
  271. package/js/src/pro/krakenfutures.d.ts +4 -4
  272. package/js/src/pro/krakenfutures.js +16 -4
  273. package/js/src/pro/kucoin.js +1 -1
  274. package/js/src/pro/luno.d.ts +1 -1
  275. package/js/src/pro/luno.js +3 -3
  276. package/js/src/pro/modetrade.d.ts +3 -3
  277. package/js/src/pro/modetrade.js +3 -3
  278. package/js/src/pro/okx.d.ts +4 -4
  279. package/js/src/pro/okx.js +4 -4
  280. package/js/src/pro/onetrading.js +1 -1
  281. package/js/src/pro/toobit.js +1 -1
  282. package/js/src/pro/weex.js +1 -1
  283. package/js/src/pro/woo.d.ts +4 -4
  284. package/js/src/pro/woo.js +4 -4
  285. package/js/src/pro/woofipro.d.ts +3 -3
  286. package/js/src/pro/woofipro.js +3 -3
  287. package/js/src/pro/xt.js +1 -1
  288. package/js/src/tokocrypto.js +1 -1
  289. package/js/src/toobit.d.ts +1 -1
  290. package/js/src/toobit.js +3 -3
  291. package/js/src/upbit.js +3 -3
  292. package/js/src/weex.d.ts +1 -0
  293. package/js/src/weex.js +57 -62
  294. package/js/src/whitebit.d.ts +1 -0
  295. package/js/src/whitebit.js +61 -63
  296. package/js/src/woo.d.ts +1 -0
  297. package/js/src/woo.js +66 -55
  298. package/js/src/woofipro.d.ts +1 -0
  299. package/js/src/woofipro.js +54 -48
  300. package/js/src/xt.js +3 -2
  301. package/js/src/yobit.js +4 -2
  302. package/js/src/zebpay.d.ts +2 -1
  303. package/js/src/zebpay.js +73 -75
  304. package/package.json +25 -11
  305. package/dist/cjs/src/gateio.js +0 -18
  306. package/dist/cjs/src/oxfun.js +0 -2931
  307. package/dist/cjs/src/pro/gateio.js +0 -18
  308. package/dist/cjs/src/pro/oxfun.js +0 -1113
  309. package/js/src/abstract/gateio.d.ts +0 -346
  310. package/js/src/abstract/gateio.js +0 -5
  311. package/js/src/abstract/oxfun.d.ts +0 -37
  312. package/js/src/gateio.d.ts +0 -4
  313. package/js/src/gateio.js +0 -11
  314. package/js/src/oxfun.d.ts +0 -442
  315. package/js/src/oxfun.js +0 -2924
  316. package/js/src/pro/gateio.d.ts +0 -4
  317. package/js/src/pro/gateio.js +0 -11
  318. package/js/src/pro/oxfun.d.ts +0 -234
  319. package/js/src/pro/oxfun.js +0 -1106
  320. /package/dist/cjs/src/abstract/{oxfun.js → extended.js} +0 -0
  321. /package/js/src/abstract/{oxfun.js → extended.js} +0 -0
@@ -0,0 +1,554 @@
1
+ import Exchange from './abstract/extended.js';
2
+ import type { Account, Balances, Currencies, Currency, Dict, FundingHistory, FundingRateHistory, Int, int, LedgerEntry, Leverage, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, TradingFees, Transaction, TransferEntry } from './base/types.js';
3
+ /**
4
+ * @class extended
5
+ * @augments Exchange
6
+ */
7
+ export default class extended extends Exchange {
8
+ describe(): any;
9
+ loadMarkets(reload?: boolean, params?: {}): Promise<import("./base/types.js").Dictionary<import("./base/types.js").MarketInterface>>;
10
+ indexByStringifiedNumericId(input: any): Dict;
11
+ /**
12
+ * @method
13
+ * @name extended#fetchMarkets
14
+ * @description retrieves data on all markets for extended
15
+ * @see https://api.docs.extended.exchange/#get-markets
16
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
17
+ * @returns {object[]} an array of objects representing market data
18
+ */
19
+ fetchMarkets(params?: {}): Promise<Market[]>;
20
+ parseMarket(market: Dict): Market;
21
+ /**
22
+ * @method
23
+ * @name extended#fetchCurrencies
24
+ * @description fetches all available currencies on an exchange
25
+ * @see https://api.docs.extended.exchange/#get-assets
26
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
27
+ * @returns {object} an associative dictionary of currencies
28
+ */
29
+ fetchCurrencies(params?: {}): Promise<Currencies>;
30
+ parseCurrency(currency: Dict): Currency;
31
+ /**
32
+ * @method
33
+ * @name extended#fetchTicker
34
+ * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
35
+ * @see https://api.docs.extended.exchange/#get-market-statistics
36
+ * @param {string} symbol unified symbol of the market to fetch the ticker for
37
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
38
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
39
+ */
40
+ fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
41
+ /**
42
+ * @method
43
+ * @name extended#fetchTickers
44
+ * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for all markets
45
+ * @see https://api.docs.extended.exchange/#get-markets
46
+ * @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
47
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
48
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
49
+ */
50
+ fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
51
+ parseTicker(ticker: any, market?: any): Ticker;
52
+ /**
53
+ * @method
54
+ * @name extended#fetchOrderBook
55
+ * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
56
+ * @see https://api.docs.extended.exchange/#get-market-order-book
57
+ * @param {string} symbol unified symbol of the market to fetch the order book for
58
+ * @param {int} [limit] the maximum amount of order book entries to return
59
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
60
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
61
+ */
62
+ fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
63
+ /**
64
+ * @method
65
+ * @name extended#fetchTrades
66
+ * @description get the list of most recent trades for a particular symbol
67
+ * @see https://api.docs.extended.exchange/#get-market-last-trades
68
+ * @param {string} symbol unified symbol of the market to fetch trades for
69
+ * @param {int} [since] timestamp in ms of the earliest trade to fetch
70
+ * @param {int} [limit] the maximum amount of trades to fetch
71
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
72
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
73
+ */
74
+ fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
75
+ /**
76
+ * @method
77
+ * @name extended#fetchMyTrades
78
+ * @description fetch all trades made by the user
79
+ * @see https://api.docs.extended.exchange/#get-trades
80
+ * @param {string} [symbol] unified market symbol of the trades
81
+ * @param {int} [since] the earliest time in ms to fetch trades for
82
+ * @param {int} [limit] the maximum number of trade structures to retrieve
83
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
84
+ * @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)
85
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
86
+ */
87
+ fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
88
+ /**
89
+ * @method
90
+ * @name extended#fetchFundingHistory
91
+ * @description fetch the funding payments history
92
+ * @see https://api.docs.extended.exchange/#get-funding-payments
93
+ * @param {string} [symbol] unified market symbol
94
+ * @param {int} [since] the earliest time in ms to fetch funding history for
95
+ * @param {int} [limit] the maximum number of funding history structures to retrieve
96
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
97
+ * @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)
98
+ * @returns {FundingHistory[]} a list of [funding history structures]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
99
+ */
100
+ fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingHistory[]>;
101
+ parseFundingHistory(history: any, market?: Market): FundingHistory;
102
+ parseFundingHistories(histories: any, market?: Market, since?: Int, limit?: Int): FundingHistory[];
103
+ parseTrade(trade: any, market?: any): Trade;
104
+ /**
105
+ * @method
106
+ * @name extended#fetchOHLCV
107
+ * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
108
+ * @see https://api.docs.extended.exchange/#get-candles-history
109
+ * @param {string} symbol unified symbol of the market to fetch OHLCV data for
110
+ * @param {string} timeframe the length of time each candle represents
111
+ * @param {int} [since] timestamp in ms of the earliest candle to fetch
112
+ * @param {int} [limit] the maximum amount of candles to fetch, default 100
113
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
114
+ * @param {string} [params.candleType] candle type: 'trades' (default), 'mark-prices', or 'index-prices'
115
+ * @param {string} [params.price] *ignored if params.candleType is set* 'mark' or 'index' for mark price and index price candles
116
+ * @param {int} [params.until] end timestamp in ms for the requested period
117
+ * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
118
+ */
119
+ fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
120
+ parseOHLCV(ohlcv: any, market?: any): OHLCV;
121
+ /**
122
+ * @method
123
+ * @name extended#fetchFundingRateHistory
124
+ * @description fetches historical funding rate prices
125
+ * @see https://api.docs.extended.exchange/#get-funding-rates-history
126
+ * @param {string} symbol unified symbol of the market to fetch funding rate history for
127
+ * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
128
+ * @param {int} [limit] the maximum amount of entries to fetch
129
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
130
+ * @param {int} [params.until] timestamp in ms of the latest funding rate to fetch
131
+ * @param {int} [params.endTime] exchange-specific end timestamp in ms of the latest funding rate to fetch
132
+ * @param {int} [params.cursor] offset of the result set
133
+ * @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)
134
+ * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
135
+ */
136
+ fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
137
+ parseFundingRateHistory(info: any, market?: Market): FundingRateHistory;
138
+ /**
139
+ * @method
140
+ * @name extended#fetchOpenInterestHistory
141
+ * @description Retrieves the open interest history of a currency
142
+ * @see https://api.docs.extended.exchange/#get-open-interest-history
143
+ * @param {string} symbol unified CCXT market symbol
144
+ * @param {string} timeframe '1h' or '1d'
145
+ * @param {int} [since] the time(ms) of the earliest record to retrieve as a unix timestamp
146
+ * @param {int} [limit] the maximum amount of open interest structures to retrieve
147
+ * @param {object} [params] exchange specific parameters
148
+ * @param {int} [params.until] timestamp in ms of the latest open interest record to fetch
149
+ * @returns {object[]} an array of [open interest structures]{@link https://docs.ccxt.com/#/?id=open-interest-structure}
150
+ */
151
+ fetchOpenInterestHistory(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").OpenInterest[]>;
152
+ parseOpenInterest(interest: any, market?: Market): import("./base/types.js").OpenInterest;
153
+ /**
154
+ * @method
155
+ * @name extended#fetchBalance
156
+ * @description query for balance and get the amount of funds available for trading or funds locked in orders
157
+ * @see https://api.docs.extended.exchange/#get-spot-balances
158
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
159
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
160
+ */
161
+ fetchBalance(params?: {}): Promise<Balances>;
162
+ parseBalance(response: any): Balances;
163
+ /**
164
+ * @method
165
+ * @name extended#fetchAccount
166
+ * @description fetch the current authenticated sub-account
167
+ * @see https://api.docs.extended.exchange/#get-account-details
168
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
169
+ * @returns {object} an [account structure]{@link https://docs.ccxt.com/#/?id=account-structure}
170
+ */
171
+ fetchAccount(params?: {}): Promise<Account>;
172
+ /**
173
+ * @method
174
+ * @name extended#fetchAccounts
175
+ * @description fetch the current authenticated sub-account, extended private endpoints only return records for the authenticated sub-account
176
+ * @see https://api.docs.extended.exchange/#get-sub-accounts
177
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
178
+ * @returns {object[]} a list of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure}
179
+ */
180
+ fetchAccounts(params?: {}): Promise<Account[]>;
181
+ parseAccount(account: Dict): Account;
182
+ /**
183
+ * @method
184
+ * @name extended#fetchLedger
185
+ * @description fetch the history of changes, actions done by the user or operations that altered the balance of the user
186
+ * @see https://api.docs.extended.exchange/#get-deposits-withdrawals-transfers-history
187
+ * @param {string} [code] unified currency code
188
+ * @param {int} [since] timestamp in ms of the earliest ledger entry
189
+ * @param {int} [limit] max number of ledger entries to return
190
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
191
+ * @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)
192
+ * @returns {object[]} a list of [ledger structures]{@link https://docs.ccxt.com/#/?id=ledger}
193
+ */
194
+ fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
195
+ parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry;
196
+ /**
197
+ * @method
198
+ * @name extended#fetchTransactions
199
+ * @description fetch history of deposits, withdrawals, and transfers
200
+ * @see https://api.docs.extended.exchange/#get-deposits-withdrawals-transfers-history
201
+ * @param {string} [code] unified currency code
202
+ * @param {int} [since] the earliest time in ms to fetch transactions for
203
+ * @param {int} [limit] the maximum number of transaction structures to retrieve
204
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
205
+ * @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)
206
+ * @returns {Transaction[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
207
+ */
208
+ fetchTransactions(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
209
+ /**
210
+ * @method
211
+ * @name extended#fetchDeposits
212
+ * @description fetch all deposits made to an account
213
+ * @see https://api.docs.extended.exchange/#get-deposits-withdrawals-transfers-history
214
+ * @param {string} [code] unified currency code
215
+ * @param {int} [since] the earliest time in ms to fetch deposits for
216
+ * @param {int} [limit] the maximum number of deposit structures to retrieve
217
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
218
+ * @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)
219
+ * @returns {Transaction[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
220
+ */
221
+ fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
222
+ /**
223
+ * @method
224
+ * @name extended#fetchWithdrawals
225
+ * @description fetch all withdrawals made from an account
226
+ * @see https://api.docs.extended.exchange/#get-deposits-withdrawals-transfers-history
227
+ * @param {string} [code] unified currency code
228
+ * @param {int} [since] the earliest time in ms to fetch withdrawals for
229
+ * @param {int} [limit] the maximum number of withdrawal structures to retrieve
230
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
231
+ * @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)
232
+ * @returns {Transaction[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
233
+ */
234
+ fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
235
+ /**
236
+ * @method
237
+ * @name extended#withdraw
238
+ * @description make a Starknet withdrawal
239
+ * @see https://api.docs.extended.exchange/#withdrawals
240
+ * @param {string} code unified currency code
241
+ * @param {float} amount the amount to withdraw
242
+ * @param {string} address the Starknet address to withdraw to
243
+ * @param {string} tag unused
244
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
245
+ * @param {string} [params.chainId] only STRK is supported
246
+ * @param {int} [params.settlementExpiration] settlement expiration timestamp in seconds, defaults to now + 14 days + 60 seconds
247
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
248
+ */
249
+ withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
250
+ /**
251
+ * @method
252
+ * @name extended#fetchTransfers
253
+ * @description fetch a history of internal transfers made on an account
254
+ * @see https://api.docs.extended.exchange/#get-deposits-withdrawals-transfers-history
255
+ * @param {string} [code] unified currency code
256
+ * @param {int} [since] the earliest time in ms to fetch transfers for
257
+ * @param {int} [limit] the maximum number of transfer structures to retrieve
258
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
259
+ * @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)
260
+ * @returns {TransferEntry[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
261
+ */
262
+ fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntry[]>;
263
+ /**
264
+ * @method
265
+ * @name extended#transfer
266
+ * @description transfer collateral between sub-accounts associated with the same wallet
267
+ * @see https://api.docs.extended.exchange/#create-transfer
268
+ * @param {string} code unified currency code
269
+ * @param {float} amount the amount to transfer
270
+ * @param {string} fromAccount source account id, defaults to the authenticated account id
271
+ * @param {string} toAccount destination account id
272
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
273
+ * @param {string} params.toVault destination account L2 vault
274
+ * @param {string} params.toL2Key destination account L2 public key
275
+ * @param {int} [params.settlementExpiration] settlement expiration timestamp in seconds, defaults to now + 21 days
276
+ * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
277
+ */
278
+ transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
279
+ parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
280
+ getExtendedCurrencyCodeById(assetId: Str, currency?: Currency): Str;
281
+ parseTransactionStatus(status: Str): Str;
282
+ parseTransactionType(type: Str): Str;
283
+ parseTransaction(transaction: Dict, currency?: Currency): Transaction;
284
+ /**
285
+ * @method
286
+ * @name extended#fetchTradingFee
287
+ * @description fetch the trading fees for a market
288
+ * @see https://api.docs.extended.exchange/#get-fees
289
+ * @param {string} symbol unified market symbol
290
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
291
+ * @param {string} [params.builderId] builder client id
292
+ * @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
293
+ */
294
+ fetchTradingFee(symbol: string, params?: {}): Promise<TradingFeeInterface>;
295
+ /**
296
+ * @method
297
+ * @name extended#fetchTradingFees
298
+ * @description fetch the trading fees for multiple markets
299
+ * @see https://api.docs.extended.exchange/#get-fees
300
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
301
+ * @param {string} [params.market] exchange market id
302
+ * @param {string} [params.builderId] builder client id
303
+ * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
304
+ */
305
+ fetchTradingFees(params?: {}): Promise<TradingFees>;
306
+ parseTradingFee(fee: any, market?: any): TradingFeeInterface;
307
+ /**
308
+ * @method
309
+ * @name extended#fetchLeverage
310
+ * @description fetch the set leverage for a market
311
+ * @see https://api.docs.extended.exchange/#get-leverage
312
+ * @param {string} symbol unified market symbol
313
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
314
+ * @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
315
+ */
316
+ fetchLeverage(symbol: string, params?: {}): Promise<Leverage>;
317
+ /**
318
+ * @method
319
+ * @name extended#setLeverage
320
+ * @description set the level of leverage for a market
321
+ * @see https://api.docs.extended.exchange/#update-leverage
322
+ * @param {int} 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<Leverage>;
328
+ parseLeverage(leverage: any, market?: any): Leverage;
329
+ /**
330
+ * @method
331
+ * @name extended#fetchPositions
332
+ * @description fetch all open positions
333
+ * @see https://api.docs.extended.exchange/#get-positions
334
+ * @param {string[]|undefined} symbols list of unified market symbols
335
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
336
+ * @returns {Position[]} a list of [position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
337
+ */
338
+ fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
339
+ /**
340
+ * @method
341
+ * @name extended#fetchPosition
342
+ * @description fetch data on an open position
343
+ * @see https://api.docs.extended.exchange/#get-positions
344
+ * @param {string} symbol unified market symbol of the market the position is held in
345
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
346
+ * @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
347
+ */
348
+ fetchPosition(symbol: string, params?: {}): Promise<Position>;
349
+ /**
350
+ * @method
351
+ * @name extended#fetchPositionsHistory
352
+ * @description fetch historical positions
353
+ * @see https://api.docs.extended.exchange/#get-positions-history
354
+ * @param {string[]|undefined} symbols list of unified market symbols
355
+ * @param {int} [since] the earliest time in ms to fetch positions for
356
+ * @param {int} [limit] the maximum number of position structures to retrieve
357
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
358
+ * @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)
359
+ * @returns {Position[]} a list of [position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
360
+ */
361
+ fetchPositionsHistory(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
362
+ parsePosition(position: any, market?: any): Position;
363
+ getExtendedStarkAmount(amount: string, resolution: any, roundUp?: boolean): string;
364
+ fetchExtendedAccount(params?: {}): Promise<any>;
365
+ createOrderSettlementData(isBuy: boolean, amountString: string, priceString: string, params?: {}): {
366
+ starkKey: string;
367
+ collateralPosition: string;
368
+ baseAssetId: string;
369
+ baseAmount: string;
370
+ quoteAssetId: string;
371
+ quoteAmount: string;
372
+ feeAssetId: string;
373
+ feeAmount: string;
374
+ expiration: string;
375
+ salt: number;
376
+ };
377
+ createWithdrawalSettlementData(address: string, amountString: string, currency: Currency, account: Dict, params?: {}): Dict;
378
+ createTransferSettlementData(amountString: string, currency: Currency, account: Dict, toVault: string, toL2Key: string, params?: {}): Dict;
379
+ createExtendedOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: Num, price?: Num, params?: {}): Promise<Dict>;
380
+ /**
381
+ * @method
382
+ * @name extended#createOrder
383
+ * @description create a trade order
384
+ * @see https://api.docs.extended.exchange/#create-or-edit-order
385
+ * @param {string} symbol unified symbol of the market to create an order in
386
+ * @param {string} type 'limit' or 'market'
387
+ * @param {string} side 'buy' or 'sell'
388
+ * @param {float} amount how much of currency you want to trade in units of base currency
389
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, required for all order types
390
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
391
+ * @param {string} [params.clientOrderId] client order id, sent as the exchange order id
392
+ * @param {string} [params.cancelId] previous external order id to replace
393
+ * @param {string} [params.timeInForce] 'GTT' or 'IOC'
394
+ * @param {boolean} [params.postOnly] true if the order should only make liquidity
395
+ * @param {boolean} [params.reduceOnly] true if the order should only reduce a position
396
+ * @param {string} [params.fee] max fee rate for the order, default is 0.0005
397
+ * @param {int} [params.expiryEpochMillis] order expiration timestamp in milliseconds, default is now + 1 hour
398
+ * @param {float} [params.triggerPrice] *swap only* The price at which a trigger order is triggered at
399
+ * @param {float} [params.stopLossPrice] *swap only* The price at which a stop loss order is triggered at
400
+ * @param {float} [params.takeProfitPrice] *swap only* The price at which a take profit order is triggered at
401
+ * @param {object} [params.takeProfit] *takeProfit object in params* containing the triggerPrice at which the attached take profit order will be triggered (perpetual swap markets only)
402
+ * @param {float} [params.takeProfit.triggerPrice] *swap only* take profit trigger price
403
+ * @param {float} [params.takeProfit.price] *swap only* the execution price for a take profit attached to a trigger order
404
+ * @param {string} [params.takeProfit.type] *swap only* the type for a take profit attached to a trigger order, 'LAST', 'MARK' or 'INDEX', default is ''
405
+ * @param {object} [params.stopLoss] *stopLoss object in params* containing the triggerPrice at which the attached stop loss order will be triggered (perpetual swap markets only)
406
+ * @param {float} [params.stopLoss.triggerPrice] *swap only* stop loss trigger price
407
+ * @param {float} [params.stopLoss.price] *swap only* the execution price for a stop loss attached to a trigger order
408
+ * @param {string} [params.stopLoss.type] *swap only* the type for a stop loss attached to a trigger order, 'LAST', 'MARK' or 'INDEX', default is ''
409
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
410
+ */
411
+ createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
412
+ /**
413
+ * @method
414
+ * @name extended#editOrder
415
+ * @description edit a trade order
416
+ * @see https://api.docs.extended.exchange/#create-or-edit-order
417
+ * @param {string} id order id assigned by Extended
418
+ * @param {string} symbol unified symbol of the market to edit an order in
419
+ * @param {string} type 'limit' or 'market'
420
+ * @param {string} side 'buy' or 'sell'
421
+ * @param {float} [amount] how much of currency you want to trade in units of base currency
422
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency
423
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
424
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
425
+ */
426
+ editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
427
+ /**
428
+ * @method
429
+ * @name extended#cancelOrder
430
+ * @description cancels an open order
431
+ * @see https://api.docs.extended.exchange/#cancel-order-by-id
432
+ * @see https://api.docs.extended.exchange/#cancel-order-by-external-id
433
+ * @param {string} id order id assigned by Extended
434
+ * @param {string} [symbol] unified symbol of the market the order was made in
435
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
436
+ * @param {string} [params.clientOrderId] user-defined order id, cancels by external id
437
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
438
+ */
439
+ cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
440
+ /**
441
+ * @method
442
+ * @name extended#cancelOrders
443
+ * @description cancel multiple orders by order ids or client order ids
444
+ * @see https://api.docs.extended.exchange/#mass-cancel
445
+ * @param {string[]} ids order ids
446
+ * @param {string} [symbol] unified market symbol, only used to populate the returned orders
447
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
448
+ * @param {string[]} [params.clientOrderIds] client order ids
449
+ * @param {string} [params.clientOrderId] single client order id
450
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
451
+ */
452
+ cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
453
+ /**
454
+ * @method
455
+ * @name extended#cancelAllOrders
456
+ * @description cancels all open orders, optionally filtered by symbol
457
+ * @see https://api.docs.extended.exchange/#mass-cancel
458
+ * @param {string} [symbol] unified market symbol of the market to cancel orders in
459
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
460
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
461
+ */
462
+ cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
463
+ /**
464
+ * @method
465
+ * @name extended#cancelAllOrdersAfter
466
+ * @description dead man's switch, cancel all orders after the given timeout
467
+ * @see https://api.docs.extended.exchange/#mass-auto-cancel-dead-man-39-s-switch
468
+ * @param {number} timeout time in milliseconds, 0 represents cancel the timer
469
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
470
+ * @returns {object} the api result
471
+ */
472
+ cancelAllOrdersAfter(timeout: Int, params?: {}): Promise<any>;
473
+ /**
474
+ * @method
475
+ * @name extended#fetchOrder
476
+ * @description fetches information on an order made by the user
477
+ * @see https://api.docs.extended.exchange/#get-order-by-id
478
+ * @see https://api.docs.extended.exchange/#get-orders-by-external-id
479
+ * @param {string} id order id assigned by Extended
480
+ * @param {string} [symbol] unified symbol of the market the order was made in
481
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
482
+ * @param {string} [params.clientOrderId] user-defined order id, fetches by external id
483
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
484
+ */
485
+ fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
486
+ /**
487
+ * @method
488
+ * @name extended#fetchOpenOrders
489
+ * @description fetch all unfilled currently open orders
490
+ * @see https://api.docs.extended.exchange/#get-open-orders
491
+ * @param {string} [symbol] unified market symbol of the orders
492
+ * @param {int} [since] the earliest time in ms to fetch orders for
493
+ * @param {int} [limit] the maximum number of open order structures to retrieve
494
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
495
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
496
+ */
497
+ fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
498
+ /**
499
+ * @method
500
+ * @name extended#fetchOrders
501
+ * @description fetches information on multiple orders made by the user
502
+ * @see https://api.docs.extended.exchange/#get-orders-history
503
+ * @param {string} [symbol] unified market symbol of the orders
504
+ * @param {int} [since] the earliest time in ms to fetch orders for
505
+ * @param {int} [limit] the maximum number of order structures to retrieve
506
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
507
+ * @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)
508
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
509
+ */
510
+ fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
511
+ /**
512
+ * @method
513
+ * @name extended#fetchClosedOrders
514
+ * @description fetches information on multiple closed orders made by the user
515
+ * @see https://api.docs.extended.exchange/#get-orders-history
516
+ * @param {string} [symbol] unified market symbol of the orders
517
+ * @param {int} [since] the earliest time in ms to fetch orders for
518
+ * @param {int} [limit] the maximum number of order structures to retrieve
519
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
520
+ * @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)
521
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
522
+ */
523
+ fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
524
+ /**
525
+ * @method
526
+ * @name extended#fetchCanceledOrders
527
+ * @description fetches information on multiple canceled orders made by the user
528
+ * @see https://api.docs.extended.exchange/#get-orders-history
529
+ * @param {string} [symbol] unified market symbol of the orders
530
+ * @param {int} [since] the earliest time in ms to fetch orders for
531
+ * @param {int} [limit] the maximum number of order structures to retrieve
532
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
533
+ * @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)
534
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
535
+ */
536
+ fetchCanceledOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
537
+ parseOrderStatus(status: Str): Str;
538
+ parseOrder(order: any, market?: any): Order;
539
+ getExtendedStringToFelt(value: string): bigint;
540
+ getExtendedEncodeI64(value: any): any;
541
+ getExtendedDecimalToBase16(value: any): string;
542
+ getExtendedSignatureHex(signature: any): string;
543
+ getExtendedDomainHash(): bigint;
544
+ getExtendedOrderMsgHash(settlement: Dict): string;
545
+ getExtendedWithdrawalMsgHash(settlement: Dict, starkKey: string): string;
546
+ getExtendedTransferMsgHash(settlement: Dict): string;
547
+ handleErrors(httpCode: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
548
+ sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
549
+ url: string;
550
+ method: string;
551
+ body: any;
552
+ headers: any;
553
+ };
554
+ }