ccxt 4.1.41 → 4.1.44

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 (363) hide show
  1. package/README.md +6 -5
  2. package/change.sh +2 -4
  3. package/dist/ccxt.browser.js +14841 -12517
  4. package/dist/ccxt.browser.min.js +3 -3
  5. package/dist/cjs/ccxt.js +4 -1
  6. package/dist/cjs/src/abstract/coinlist.js +9 -0
  7. package/dist/cjs/src/ace.js +3 -3
  8. package/dist/cjs/src/ascendex.js +226 -96
  9. package/dist/cjs/src/bigone.js +107 -107
  10. package/dist/cjs/src/binance.js +258 -257
  11. package/dist/cjs/src/bingx.js +117 -117
  12. package/dist/cjs/src/bit2c.js +4 -4
  13. package/dist/cjs/src/bitbank.js +19 -19
  14. package/dist/cjs/src/bitfinex.js +72 -72
  15. package/dist/cjs/src/bitfinex2.js +59 -59
  16. package/dist/cjs/src/bitget.js +355 -355
  17. package/dist/cjs/src/bithumb.js +35 -35
  18. package/dist/cjs/src/bitmart.js +37 -37
  19. package/dist/cjs/src/bitmex.js +111 -111
  20. package/dist/cjs/src/bitopro.js +12 -12
  21. package/dist/cjs/src/bitpanda.js +8 -8
  22. package/dist/cjs/src/bitrue.js +17 -17
  23. package/dist/cjs/src/bitso.js +212 -212
  24. package/dist/cjs/src/bitstamp.js +95 -95
  25. package/dist/cjs/src/bittrex.js +28 -28
  26. package/dist/cjs/src/bitvavo.js +34 -33
  27. package/dist/cjs/src/bl3p.js +18 -18
  28. package/dist/cjs/src/blockchaincom.js +24 -24
  29. package/dist/cjs/src/btcalpha.js +27 -27
  30. package/dist/cjs/src/btcturk.js +6 -6
  31. package/dist/cjs/src/bybit.js +46 -247
  32. package/dist/cjs/src/cex.js +105 -105
  33. package/dist/cjs/src/coinbase.js +179 -179
  34. package/dist/cjs/src/coinbasepro.js +113 -113
  35. package/dist/cjs/src/coincheck.js +21 -21
  36. package/dist/cjs/src/coinex.js +19 -19
  37. package/dist/cjs/src/coinfalcon.js +53 -53
  38. package/dist/cjs/src/coinlist.js +2327 -0
  39. package/dist/cjs/src/coinmate.js +67 -67
  40. package/dist/cjs/src/coinone.js +9 -9
  41. package/dist/cjs/src/coinsph.js +108 -108
  42. package/dist/cjs/src/coinspot.js +28 -28
  43. package/dist/cjs/src/cryptocom.js +32 -32
  44. package/dist/cjs/src/currencycom.js +52 -52
  45. package/dist/cjs/src/delta.js +3 -3
  46. package/dist/cjs/src/deribit.js +285 -284
  47. package/dist/cjs/src/exmo.js +41 -41
  48. package/dist/cjs/src/gate.js +174 -174
  49. package/dist/cjs/src/gemini.js +4 -4
  50. package/dist/cjs/src/hitbtc.js +26 -27
  51. package/dist/cjs/src/hollaex.js +78 -78
  52. package/dist/cjs/src/huobi.js +267 -267
  53. package/dist/cjs/src/huobijp.js +125 -125
  54. package/dist/cjs/src/idex.js +202 -202
  55. package/dist/cjs/src/kraken.js +161 -161
  56. package/dist/cjs/src/krakenfutures.js +223 -223
  57. package/dist/cjs/src/kucoin.js +122 -122
  58. package/dist/cjs/src/kucoinfutures.js +128 -128
  59. package/dist/cjs/src/kuna.js +23 -24
  60. package/dist/cjs/src/latoken.js +70 -70
  61. package/dist/cjs/src/lbank.js +6 -6
  62. package/dist/cjs/src/lbank2.js +35 -35
  63. package/dist/cjs/src/luno.js +5 -5
  64. package/dist/cjs/src/lykke.js +4 -4
  65. package/dist/cjs/src/mercado.js +17 -17
  66. package/dist/cjs/src/mexc.js +172 -172
  67. package/dist/cjs/src/ndax.js +9 -8
  68. package/dist/cjs/src/oceanex.js +9 -9
  69. package/dist/cjs/src/okcoin.js +65 -65
  70. package/dist/cjs/src/okx.js +67 -67
  71. package/dist/cjs/src/phemex.js +110 -110
  72. package/dist/cjs/src/poloniex.js +43 -43
  73. package/dist/cjs/src/poloniexfutures.js +96 -96
  74. package/dist/cjs/src/pro/alpaca.js +174 -174
  75. package/dist/cjs/src/pro/ascendex.js +151 -151
  76. package/dist/cjs/src/pro/binance.js +278 -278
  77. package/dist/cjs/src/pro/bingx.js +136 -136
  78. package/dist/cjs/src/pro/bitfinex.js +38 -38
  79. package/dist/cjs/src/pro/bitfinex2.js +57 -57
  80. package/dist/cjs/src/pro/bitget.js +227 -227
  81. package/dist/cjs/src/pro/bitmart.js +98 -98
  82. package/dist/cjs/src/pro/bitmex.js +584 -584
  83. package/dist/cjs/src/pro/bitopro.js +49 -49
  84. package/dist/cjs/src/pro/bitpanda.js +249 -249
  85. package/dist/cjs/src/pro/bitrue.js +79 -79
  86. package/dist/cjs/src/pro/bitstamp.js +59 -59
  87. package/dist/cjs/src/pro/bittrex.js +107 -107
  88. package/dist/cjs/src/pro/bitvavo.js +115 -115
  89. package/dist/cjs/src/pro/blockchaincom.js +169 -169
  90. package/dist/cjs/src/pro/bybit.js +57 -57
  91. package/dist/cjs/src/pro/cex.js +199 -199
  92. package/dist/cjs/src/pro/coinbase.js +4 -4
  93. package/dist/cjs/src/pro/coinbasepro.js +95 -95
  94. package/dist/cjs/src/pro/coinex.js +232 -232
  95. package/dist/cjs/src/pro/cryptocom.js +32 -32
  96. package/dist/cjs/src/pro/currencycom.js +108 -108
  97. package/dist/cjs/src/pro/deribit.js +140 -140
  98. package/dist/cjs/src/pro/exmo.js +72 -72
  99. package/dist/cjs/src/pro/gate.js +160 -160
  100. package/dist/cjs/src/pro/gemini.js +135 -135
  101. package/dist/cjs/src/pro/hitbtc.js +10 -10
  102. package/dist/cjs/src/pro/hollaex.js +88 -88
  103. package/dist/cjs/src/pro/huobi.js +277 -277
  104. package/dist/cjs/src/pro/huobijp.js +71 -71
  105. package/dist/cjs/src/pro/idex.js +58 -58
  106. package/dist/cjs/src/pro/independentreserve.js +29 -29
  107. package/dist/cjs/src/pro/kraken.js +113 -113
  108. package/dist/cjs/src/pro/krakenfutures.js +58 -58
  109. package/dist/cjs/src/pro/kucoin.js +95 -95
  110. package/dist/cjs/src/pro/kucoinfutures.js +100 -100
  111. package/dist/cjs/src/pro/luno.js +42 -42
  112. package/dist/cjs/src/pro/mexc.js +98 -98
  113. package/dist/cjs/src/pro/ndax.js +24 -24
  114. package/dist/cjs/src/pro/okcoin.js +104 -104
  115. package/dist/cjs/src/pro/okx.js +161 -161
  116. package/dist/cjs/src/pro/phemex.js +295 -295
  117. package/dist/cjs/src/pro/poloniex.js +79 -79
  118. package/dist/cjs/src/pro/poloniexfutures.js +172 -172
  119. package/dist/cjs/src/pro/probit.js +87 -87
  120. package/dist/cjs/src/pro/upbit.js +66 -66
  121. package/dist/cjs/src/pro/wazirx.js +11 -11
  122. package/dist/cjs/src/pro/whitebit.js +77 -77
  123. package/dist/cjs/src/pro/woo.js +78 -78
  124. package/dist/cjs/src/probit.js +78 -44
  125. package/dist/cjs/src/tidex.js +9 -9
  126. package/dist/cjs/src/tokocrypto.js +57 -57
  127. package/dist/cjs/src/upbit.js +157 -157
  128. package/dist/cjs/src/wavesexchange.js +125 -125
  129. package/dist/cjs/src/whitebit.js +63 -63
  130. package/dist/cjs/src/woo.js +244 -243
  131. package/dist/cjs/src/yobit.js +9 -9
  132. package/dist/cjs/src/zonda.js +103 -103
  133. package/js/ccxt.d.ts +5 -2
  134. package/js/ccxt.js +4 -2
  135. package/js/src/abstract/bybit.d.ts +13 -195
  136. package/js/src/abstract/coinlist.d.ts +49 -0
  137. package/js/src/abstract/coinlist.js +11 -0
  138. package/js/src/ace.d.ts +9 -9
  139. package/js/src/ace.js +3 -3
  140. package/js/src/alpaca.d.ts +3 -3
  141. package/js/src/ascendex.d.ts +13 -35
  142. package/js/src/ascendex.js +227 -97
  143. package/js/src/base/types.d.ts +8 -0
  144. package/js/src/bigone.d.ts +11 -49
  145. package/js/src/bigone.js +107 -107
  146. package/js/src/binance.d.ts +8 -65
  147. package/js/src/binance.js +258 -257
  148. package/js/src/bingx.d.ts +10 -34
  149. package/js/src/bingx.js +117 -117
  150. package/js/src/bit2c.d.ts +8 -8
  151. package/js/src/bit2c.js +4 -4
  152. package/js/src/bitbank.d.ts +10 -50
  153. package/js/src/bitbank.js +19 -19
  154. package/js/src/bitbns.d.ts +9 -29
  155. package/js/src/bitfinex.d.ts +9 -57
  156. package/js/src/bitfinex.js +72 -72
  157. package/js/src/bitfinex2.d.ts +5 -29
  158. package/js/src/bitfinex2.js +59 -59
  159. package/js/src/bitflyer.d.ts +10 -50
  160. package/js/src/bitforex.d.ts +8 -8
  161. package/js/src/bitget.d.ts +7 -27
  162. package/js/src/bitget.js +355 -355
  163. package/js/src/bithumb.d.ts +10 -50
  164. package/js/src/bithumb.js +35 -35
  165. package/js/src/bitmart.d.ts +11 -68
  166. package/js/src/bitmart.js +37 -37
  167. package/js/src/bitmex.d.ts +8 -56
  168. package/js/src/bitmex.js +111 -111
  169. package/js/src/bitopro.d.ts +12 -84
  170. package/js/src/bitopro.js +12 -12
  171. package/js/src/bitpanda.d.ts +12 -50
  172. package/js/src/bitpanda.js +8 -8
  173. package/js/src/bitrue.d.ts +12 -52
  174. package/js/src/bitrue.js +17 -17
  175. package/js/src/bitso.d.ts +12 -72
  176. package/js/src/bitso.js +212 -212
  177. package/js/src/bitstamp.d.ts +13 -65
  178. package/js/src/bitstamp.js +95 -95
  179. package/js/src/bitstamp1.d.ts +8 -8
  180. package/js/src/bittrex.d.ts +13 -57
  181. package/js/src/bittrex.js +28 -28
  182. package/js/src/bitvavo.d.ts +8 -44
  183. package/js/src/bitvavo.js +34 -33
  184. package/js/src/bl3p.d.ts +7 -7
  185. package/js/src/bl3p.js +18 -18
  186. package/js/src/blockchaincom.d.ts +10 -90
  187. package/js/src/blockchaincom.js +24 -24
  188. package/js/src/btcalpha.d.ts +10 -30
  189. package/js/src/btcalpha.js +27 -27
  190. package/js/src/btcbox.d.ts +7 -7
  191. package/js/src/btcmarkets.d.ts +11 -59
  192. package/js/src/btctradeua.d.ts +7 -7
  193. package/js/src/btcturk.d.ts +6 -6
  194. package/js/src/btcturk.js +6 -6
  195. package/js/src/bybit.d.ts +8 -46
  196. package/js/src/bybit.js +46 -247
  197. package/js/src/cex.d.ts +8 -8
  198. package/js/src/cex.js +105 -105
  199. package/js/src/coinbase.d.ts +9 -9
  200. package/js/src/coinbase.js +179 -179
  201. package/js/src/coinbasepro.d.ts +8 -56
  202. package/js/src/coinbasepro.js +113 -113
  203. package/js/src/coincheck.d.ts +9 -29
  204. package/js/src/coincheck.js +21 -21
  205. package/js/src/coinex.d.ts +9 -53
  206. package/js/src/coinex.js +19 -19
  207. package/js/src/coinfalcon.d.ts +8 -52
  208. package/js/src/coinfalcon.js +53 -53
  209. package/js/src/coinlist.d.ts +104 -0
  210. package/js/src/coinlist.js +2328 -0
  211. package/js/src/coinmate.d.ts +8 -56
  212. package/js/src/coinmate.js +67 -67
  213. package/js/src/coinone.d.ts +9 -9
  214. package/js/src/coinone.js +9 -9
  215. package/js/src/coinsph.d.ts +13 -73
  216. package/js/src/coinsph.js +108 -108
  217. package/js/src/coinspot.d.ts +9 -9
  218. package/js/src/coinspot.js +28 -28
  219. package/js/src/cryptocom.d.ts +5 -45
  220. package/js/src/cryptocom.js +32 -32
  221. package/js/src/currencycom.d.ts +8 -32
  222. package/js/src/currencycom.js +52 -52
  223. package/js/src/delta.d.ts +9 -9
  224. package/js/src/delta.js +3 -3
  225. package/js/src/deribit.d.ts +12 -48
  226. package/js/src/deribit.js +285 -284
  227. package/js/src/digifinex.d.ts +11 -49
  228. package/js/src/exmo.d.ts +10 -106
  229. package/js/src/exmo.js +41 -41
  230. package/js/src/gate.d.ts +6 -50
  231. package/js/src/gate.js +174 -174
  232. package/js/src/gemini.d.ts +8 -46
  233. package/js/src/gemini.js +4 -4
  234. package/js/src/hitbtc.d.ts +5 -55
  235. package/js/src/hitbtc.js +26 -27
  236. package/js/src/hollaex.d.ts +13 -70
  237. package/js/src/hollaex.js +78 -78
  238. package/js/src/huobi.d.ts +6 -52
  239. package/js/src/huobi.js +267 -267
  240. package/js/src/huobijp.d.ts +8 -54
  241. package/js/src/huobijp.js +125 -125
  242. package/js/src/idex.d.ts +13 -89
  243. package/js/src/idex.js +202 -202
  244. package/js/src/independentreserve.d.ts +8 -8
  245. package/js/src/indodax.d.ts +10 -50
  246. package/js/src/kraken.d.ts +8 -52
  247. package/js/src/kraken.js +161 -161
  248. package/js/src/krakenfutures.d.ts +5 -5
  249. package/js/src/krakenfutures.js +223 -223
  250. package/js/src/kucoin.d.ts +6 -46
  251. package/js/src/kucoin.js +122 -122
  252. package/js/src/kucoinfutures.d.ts +5 -5
  253. package/js/src/kucoinfutures.js +128 -128
  254. package/js/src/kuna.d.ts +13 -105
  255. package/js/src/kuna.js +24 -24
  256. package/js/src/latoken.d.ts +8 -32
  257. package/js/src/latoken.js +70 -70
  258. package/js/src/lbank.d.ts +10 -64
  259. package/js/src/lbank.js +6 -6
  260. package/js/src/lbank2.d.ts +7 -28
  261. package/js/src/lbank2.js +35 -35
  262. package/js/src/luno.d.ts +9 -9
  263. package/js/src/luno.js +5 -5
  264. package/js/src/lykke.d.ts +11 -49
  265. package/js/src/lykke.js +4 -4
  266. package/js/src/mercado.d.ts +7 -47
  267. package/js/src/mercado.js +17 -17
  268. package/js/src/mexc.d.ts +11 -49
  269. package/js/src/mexc.js +172 -172
  270. package/js/src/ndax.d.ts +11 -47
  271. package/js/src/ndax.js +9 -8
  272. package/js/src/novadax.d.ts +12 -60
  273. package/js/src/oceanex.d.ts +5 -5
  274. package/js/src/oceanex.js +9 -9
  275. package/js/src/okcoin.d.ts +10 -54
  276. package/js/src/okcoin.js +65 -65
  277. package/js/src/okx.d.ts +9 -97
  278. package/js/src/okx.js +67 -67
  279. package/js/src/paymium.d.ts +7 -7
  280. package/js/src/phemex.d.ts +8 -27
  281. package/js/src/phemex.js +110 -110
  282. package/js/src/poloniex.d.ts +8 -56
  283. package/js/src/poloniex.js +43 -43
  284. package/js/src/poloniexfutures.d.ts +9 -9
  285. package/js/src/poloniexfutures.js +96 -96
  286. package/js/src/pro/alpaca.d.ts +2 -2
  287. package/js/src/pro/alpaca.js +174 -174
  288. package/js/src/pro/ascendex.js +151 -151
  289. package/js/src/pro/binance.d.ts +2 -19
  290. package/js/src/pro/binance.js +278 -278
  291. package/js/src/pro/bingx.js +136 -136
  292. package/js/src/pro/bitfinex.d.ts +2 -2
  293. package/js/src/pro/bitfinex.js +38 -38
  294. package/js/src/pro/bitfinex2.js +57 -57
  295. package/js/src/pro/bitget.js +227 -227
  296. package/js/src/pro/bitmart.js +98 -98
  297. package/js/src/pro/bitmex.js +584 -584
  298. package/js/src/pro/bitopro.js +49 -49
  299. package/js/src/pro/bitpanda.js +249 -249
  300. package/js/src/pro/bitrue.js +79 -79
  301. package/js/src/pro/bitstamp.js +59 -59
  302. package/js/src/pro/bittrex.js +107 -107
  303. package/js/src/pro/bitvavo.js +115 -115
  304. package/js/src/pro/blockchaincom.js +169 -169
  305. package/js/src/pro/bybit.js +57 -57
  306. package/js/src/pro/cex.js +199 -199
  307. package/js/src/pro/coinbase.js +4 -4
  308. package/js/src/pro/coinbasepro.d.ts +2 -2
  309. package/js/src/pro/coinbasepro.js +95 -95
  310. package/js/src/pro/coinex.js +232 -232
  311. package/js/src/pro/cryptocom.js +32 -32
  312. package/js/src/pro/currencycom.js +108 -108
  313. package/js/src/pro/deribit.js +140 -140
  314. package/js/src/pro/exmo.js +72 -72
  315. package/js/src/pro/gate.js +160 -160
  316. package/js/src/pro/gemini.js +135 -135
  317. package/js/src/pro/hitbtc.js +10 -10
  318. package/js/src/pro/hollaex.js +88 -88
  319. package/js/src/pro/huobi.js +277 -277
  320. package/js/src/pro/huobijp.js +71 -71
  321. package/js/src/pro/idex.js +58 -58
  322. package/js/src/pro/independentreserve.js +29 -29
  323. package/js/src/pro/kraken.js +113 -113
  324. package/js/src/pro/krakenfutures.js +58 -58
  325. package/js/src/pro/kucoin.js +95 -95
  326. package/js/src/pro/kucoinfutures.js +100 -100
  327. package/js/src/pro/luno.d.ts +2 -2
  328. package/js/src/pro/luno.js +42 -42
  329. package/js/src/pro/mexc.js +98 -98
  330. package/js/src/pro/ndax.js +24 -24
  331. package/js/src/pro/okcoin.js +104 -104
  332. package/js/src/pro/okx.js +161 -161
  333. package/js/src/pro/phemex.js +295 -295
  334. package/js/src/pro/poloniex.js +79 -79
  335. package/js/src/pro/poloniexfutures.js +172 -172
  336. package/js/src/pro/probit.js +87 -87
  337. package/js/src/pro/upbit.js +66 -66
  338. package/js/src/pro/wazirx.js +11 -11
  339. package/js/src/pro/whitebit.js +77 -77
  340. package/js/src/pro/woo.js +78 -78
  341. package/js/src/probit.d.ts +11 -49
  342. package/js/src/probit.js +78 -44
  343. package/js/src/tidex.d.ts +8 -62
  344. package/js/src/tidex.js +9 -9
  345. package/js/src/timex.d.ts +10 -43
  346. package/js/src/tokocrypto.d.ts +10 -60
  347. package/js/src/tokocrypto.js +57 -57
  348. package/js/src/upbit.d.ts +7 -51
  349. package/js/src/upbit.js +157 -157
  350. package/js/src/wavesexchange.d.ts +9 -49
  351. package/js/src/wavesexchange.js +125 -125
  352. package/js/src/wazirx.d.ts +8 -8
  353. package/js/src/whitebit.d.ts +8 -54
  354. package/js/src/whitebit.js +63 -63
  355. package/js/src/woo.d.ts +9 -47
  356. package/js/src/woo.js +244 -243
  357. package/js/src/yobit.d.ts +3 -3
  358. package/js/src/yobit.js +9 -9
  359. package/js/src/zaif.d.ts +9 -49
  360. package/js/src/zonda.d.ts +8 -48
  361. package/js/src/zonda.js +103 -103
  362. package/package.json +2 -1
  363. package/skip-tests.json +11 -0
@@ -6,7 +6,7 @@
6
6
 
7
7
  // ---------------------------------------------------------------------------
8
8
  import Exchange from './abstract/ascendex.js';
9
- import { ArgumentsRequired, AuthenticationError, ExchangeError, InsufficientFunds, InvalidOrder, BadSymbol, PermissionDenied, BadRequest } from './base/errors.js';
9
+ import { ArgumentsRequired, AuthenticationError, ExchangeError, InsufficientFunds, InvalidOrder, BadSymbol, PermissionDenied, BadRequest, NotSupported } from './base/errors.js';
10
10
  import { Precise } from './base/Precise.js';
11
11
  import { TICK_SIZE } from './base/functions/number.js';
12
12
  import { sha256 } from './static_dependencies/noble-hashes/sha256.js';
@@ -38,6 +38,7 @@ export default class ascendex extends Exchange {
38
38
  'cancelAllOrders': true,
39
39
  'cancelOrder': true,
40
40
  'createOrder': true,
41
+ 'createOrders': true,
41
42
  'createPostOnlyOrder': true,
42
43
  'createReduceOnlyOrder': true,
43
44
  'createStopLimitOrder': true,
@@ -835,12 +836,12 @@ export default class ascendex extends Exchange {
835
836
  // cash
836
837
  //
837
838
  // {
838
- // 'code': 0,
839
- // 'data': [
839
+ // "code": 0,
840
+ // "data": [
840
841
  // {
841
- // 'asset': 'BCHSV',
842
- // 'totalBalance': '64.298000048',
843
- // 'availableBalance': '64.298000048',
842
+ // "asset": "BCHSV",
843
+ // "totalBalance": "64.298000048",
844
+ // "availableBalance": "64.298000048",
844
845
  // },
845
846
  // ]
846
847
  // }
@@ -848,14 +849,14 @@ export default class ascendex extends Exchange {
848
849
  // margin
849
850
  //
850
851
  // {
851
- // 'code': 0,
852
- // 'data': [
852
+ // "code": 0,
853
+ // "data": [
853
854
  // {
854
- // 'asset': 'BCHSV',
855
- // 'totalBalance': '64.298000048',
856
- // 'availableBalance': '64.298000048',
857
- // 'borrowed': '0',
858
- // 'interest': '0',
855
+ // "asset": "BCHSV",
856
+ // "totalBalance": "64.298000048",
857
+ // "availableBalance": "64.298000048",
858
+ // "borrowed": "0",
859
+ // "interest": "0",
859
860
  // },
860
861
  // ]
861
862
  // }
@@ -1432,15 +1433,15 @@ export default class ascendex extends Exchange {
1432
1433
  const response = await this.v1PrivateAccountGroupGetSpotFee(this.extend(request, params));
1433
1434
  //
1434
1435
  // {
1435
- // code: '0',
1436
- // data: {
1437
- // domain: 'spot',
1438
- // userUID: 'U1479576458',
1439
- // vipLevel: '0',
1440
- // fees: [
1441
- // { symbol: 'HT/USDT', fee: { taker: '0.001', maker: '0.001' } },
1442
- // { symbol: 'LAMB/BTC', fee: { taker: '0.002', maker: '0.002' } },
1443
- // { symbol: 'STOS/USDT', fee: { taker: '0.002', maker: '0.002' } },
1436
+ // "code": "0",
1437
+ // "data": {
1438
+ // "domain": "spot",
1439
+ // "userUID": "U1479576458",
1440
+ // "vipLevel": "0",
1441
+ // "fees": [
1442
+ // { symbol: 'HT/USDT', fee: { taker: '0.001', maker: "0.001" } },
1443
+ // { symbol: 'LAMB/BTC', fee: { taker: '0.002', maker: "0.002" } },
1444
+ // { symbol: 'STOS/USDT', fee: { taker: '0.002', maker: "0.002" } },
1444
1445
  // ...
1445
1446
  // ]
1446
1447
  // }
@@ -1463,30 +1464,33 @@ export default class ascendex extends Exchange {
1463
1464
  }
1464
1465
  return result;
1465
1466
  }
1466
- async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
1467
+ createOrderRequest(symbol, type, side, amount, price = undefined, params = {}) {
1467
1468
  /**
1468
1469
  * @method
1469
- * @name ascendex#createOrder
1470
- * @description Create an order on the exchange
1471
- * @param {string} symbol Unified CCXT market symbol
1472
- * @param {string} type "limit" or "market"
1473
- * @param {string} side "buy" or "sell"
1474
- * @param {float} amount the amount of currency to trade
1475
- * @param {float} [price] *ignored in "market" orders* the price at which the order is to be fullfilled at in units of the quote currency
1476
- * @param {object} [params] Extra parameters specific to the exchange API endpoint
1470
+ * @ignore
1471
+ * @name ascendex#createOrderRequest
1472
+ * @description helper function to build request
1473
+ * @param {string} symbol unified symbol of the market to create an order in
1474
+ * @param {string} type 'market' or 'limit'
1475
+ * @param {string} side 'buy' or 'sell'
1476
+ * @param {float} amount how much you want to trade in units of the base currency
1477
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1478
+ * @param {object} [params] extra parameters specific to the ascendex api endpoint
1477
1479
  * @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
1478
1480
  * @param {bool} [params.postOnly] true or false
1479
- * @param {float} [params.stopPrice] The price at which a trigger order is triggered at
1480
- * @returns [An order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1481
+ * @param {float} [params.stopPrice] the price at which a trigger order is triggered at
1482
+ * @returns {object} request to be sent to the exchange
1481
1483
  */
1482
- await this.loadMarkets();
1483
- await this.loadAccounts();
1484
1484
  const market = this.market(symbol);
1485
+ let marginMode = undefined;
1485
1486
  let marketType = undefined;
1486
- [marketType, params] = this.handleMarketTypeAndParams('createOrder', market, params);
1487
- const options = this.safeValue(this.options, 'createOrder', {});
1487
+ [marginMode, params] = this.handleMarginModeAndParams('createOrderRequest', params);
1488
+ [marketType, params] = this.handleMarketTypeAndParams('createOrderRequest', market, params);
1488
1489
  const accountsByType = this.safeValue(this.options, 'accountsByType', {});
1489
- const accountCategory = this.safeString(accountsByType, marketType, 'cash');
1490
+ let accountCategory = this.safeString(accountsByType, marketType, 'cash');
1491
+ if (marginMode !== undefined) {
1492
+ accountCategory = 'margin';
1493
+ }
1490
1494
  const account = this.safeValue(this.accounts, 0, {});
1491
1495
  const accountGroup = this.safeValue(account, 'id');
1492
1496
  const clientOrderId = this.safeString2(params, 'clientOrderId', 'id');
@@ -1507,13 +1511,6 @@ export default class ascendex extends Exchange {
1507
1511
  const postOnly = this.isPostOnly(isMarketOrder, false, params);
1508
1512
  const reduceOnly = this.safeValue(params, 'reduceOnly', false);
1509
1513
  const stopPrice = this.safeValue2(params, 'triggerPrice', 'stopPrice');
1510
- params = this.omit(params, ['timeInForce', 'postOnly', 'reduceOnly', 'stopPrice', 'triggerPrice']);
1511
- if (reduceOnly) {
1512
- if (marketType !== 'swap') {
1513
- throw new InvalidOrder(this.id + ' createOrder() does not support reduceOnly for ' + marketType + ' orders, reduceOnly orders are supported for perpetuals only');
1514
- }
1515
- request['execInst'] = 'ReduceOnly';
1516
- }
1517
1514
  if (isLimitOrder) {
1518
1515
  request['orderPrice'] = this.priceToPrecision(symbol, price);
1519
1516
  }
@@ -1538,21 +1535,56 @@ export default class ascendex extends Exchange {
1538
1535
  if (clientOrderId !== undefined) {
1539
1536
  request['id'] = clientOrderId;
1540
1537
  }
1541
- const defaultMethod = this.safeString(options, 'method', 'v1PrivateAccountCategoryPostOrder');
1542
- const method = this.getSupportedMapping(marketType, {
1543
- 'spot': defaultMethod,
1544
- 'margin': defaultMethod,
1545
- 'swap': 'v2PrivateAccountGroupPostFuturesOrder',
1546
- });
1547
- if (method === 'v1PrivateAccountCategoryPostOrder') {
1538
+ if (market['spot']) {
1548
1539
  if (accountCategory !== undefined) {
1549
1540
  request['category'] = accountCategory;
1550
1541
  }
1551
1542
  }
1552
1543
  else {
1553
1544
  request['account-category'] = accountCategory;
1545
+ if (reduceOnly) {
1546
+ request['execInst'] = 'ReduceOnly';
1547
+ }
1548
+ if (postOnly) {
1549
+ request['execInst'] = 'Post';
1550
+ }
1551
+ }
1552
+ params = this.omit(params, ['reduceOnly', 'triggerPrice']);
1553
+ return this.extend(request, params);
1554
+ }
1555
+ async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
1556
+ /**
1557
+ * @method
1558
+ * @name ascendex#createOrder
1559
+ * @description create a trade order on the exchange
1560
+ * @see https://ascendex.github.io/ascendex-pro-api/#place-order
1561
+ * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#new-order
1562
+ * @param {string} symbol unified CCXT market symbol
1563
+ * @param {string} type "limit" or "market"
1564
+ * @param {string} side "buy" or "sell"
1565
+ * @param {float} amount the amount of currency to trade
1566
+ * @param {float} [price] *ignored in "market" orders* the price at which the order is to be fullfilled at in units of the quote currency
1567
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1568
+ * @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
1569
+ * @param {bool} [params.postOnly] true or false
1570
+ * @param {float} [params.stopPrice] the price at which a trigger order is triggered at
1571
+ * @param {object} [params.takeProfit] *takeProfit object in params* containing the triggerPrice that the attached take profit order will be triggered (perpetual swap markets only)
1572
+ * @param {float} [params.takeProfit.triggerPrice] *swap only* take profit trigger price
1573
+ * @param {object} [params.stopLoss] *stopLoss object in params* containing the triggerPrice that the attached stop loss order will be triggered (perpetual swap markets only)
1574
+ * @param {float} [params.stopLoss.triggerPrice] *swap only* stop loss trigger price
1575
+ * @returns [An order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1576
+ */
1577
+ await this.loadMarkets();
1578
+ await this.loadAccounts();
1579
+ const market = this.market(symbol);
1580
+ const request = this.createOrderRequest(symbol, type, side, amount, price, params);
1581
+ let response = undefined;
1582
+ if (market['swap']) {
1583
+ response = await this.v2PrivateAccountGroupPostFuturesOrder(request);
1584
+ }
1585
+ else {
1586
+ response = await this.v1PrivateAccountCategoryPostOrder(request);
1554
1587
  }
1555
- const response = await this[method](this.extend(request, params));
1556
1588
  //
1557
1589
  // spot
1558
1590
  //
@@ -1573,7 +1605,6 @@ export default class ascendex extends Exchange {
1573
1605
  // }
1574
1606
  // }
1575
1607
  //
1576
- //
1577
1608
  // swap
1578
1609
  //
1579
1610
  // {
@@ -1621,6 +1652,105 @@ export default class ascendex extends Exchange {
1621
1652
  const order = this.safeValue2(data, 'order', 'info', {});
1622
1653
  return this.parseOrder(order, market);
1623
1654
  }
1655
+ async createOrders(orders, params = {}) {
1656
+ /**
1657
+ * @method
1658
+ * @name ascendex#createOrders
1659
+ * @description create a list of trade orders
1660
+ * @see https://ascendex.github.io/ascendex-pro-api/#place-batch-orders
1661
+ * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#place-batch-orders
1662
+ * @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
1663
+ * @param {object} [params] extra parameters specific to the ascendex api endpoint
1664
+ * @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
1665
+ * @param {bool} [params.postOnly] true or false
1666
+ * @param {float} [params.stopPrice] the price at which a trigger order is triggered at
1667
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1668
+ */
1669
+ await this.loadMarkets();
1670
+ await this.loadAccounts();
1671
+ const ordersRequests = [];
1672
+ let symbol = undefined;
1673
+ let marginMode = undefined;
1674
+ for (let i = 0; i < orders.length; i++) {
1675
+ const rawOrder = orders[i];
1676
+ const marketId = this.safeString(rawOrder, 'symbol');
1677
+ if (symbol === undefined) {
1678
+ symbol = marketId;
1679
+ }
1680
+ else {
1681
+ if (symbol !== marketId) {
1682
+ throw new BadRequest(this.id + ' createOrders() requires all orders to have the same symbol');
1683
+ }
1684
+ }
1685
+ const type = this.safeString(rawOrder, 'type');
1686
+ const side = this.safeString(rawOrder, 'side');
1687
+ const amount = this.safeValue(rawOrder, 'amount');
1688
+ const price = this.safeValue(rawOrder, 'price');
1689
+ const orderParams = this.safeValue(rawOrder, 'params', {});
1690
+ const marginResult = this.handleMarginModeAndParams('createOrders', orderParams);
1691
+ const currentMarginMode = marginResult[0];
1692
+ if (currentMarginMode !== undefined) {
1693
+ if (marginMode === undefined) {
1694
+ marginMode = currentMarginMode;
1695
+ }
1696
+ else {
1697
+ if (marginMode !== currentMarginMode) {
1698
+ throw new BadRequest(this.id + ' createOrders() requires all orders to have the same margin mode (isolated or cross)');
1699
+ }
1700
+ }
1701
+ }
1702
+ const orderRequest = this.createOrderRequest(marketId, type, side, amount, price, orderParams);
1703
+ ordersRequests.push(orderRequest);
1704
+ }
1705
+ const market = this.market(symbol);
1706
+ const accountsByType = this.safeValue(this.options, 'accountsByType', {});
1707
+ let accountCategory = this.safeString(accountsByType, market['type'], 'cash');
1708
+ if (marginMode !== undefined) {
1709
+ accountCategory = 'margin';
1710
+ }
1711
+ const account = this.safeValue(this.accounts, 0, {});
1712
+ const accountGroup = this.safeValue(account, 'id');
1713
+ const request = {};
1714
+ let response = undefined;
1715
+ if (market['swap']) {
1716
+ throw new NotSupported(this.id + ' createOrders() is not currently supported for swap markets on ascendex');
1717
+ // request['account-group'] = accountGroup;
1718
+ // request['category'] = accountCategory;
1719
+ // request['orders'] = ordersRequests;
1720
+ // response = await this.v2PrivateAccountGroupPostFuturesOrderBatch (request);
1721
+ }
1722
+ else {
1723
+ request['account-group'] = accountGroup;
1724
+ request['account-category'] = accountCategory;
1725
+ request['orders'] = ordersRequests;
1726
+ response = await this.v1PrivateAccountCategoryPostOrderBatch(request);
1727
+ }
1728
+ //
1729
+ // spot
1730
+ //
1731
+ // {
1732
+ // "code": 0,
1733
+ // "data": {
1734
+ // "accountId": "cshdAKBO43TKIh2kJtq7FVVb42KIePyS",
1735
+ // "ac": "CASH",
1736
+ // "action": "batch-place-order",
1737
+ // "status": "Ack",
1738
+ // "info": [
1739
+ // {
1740
+ // "symbol": "BTC/USDT",
1741
+ // "orderType": "Limit",
1742
+ // "timestamp": 1699326589344,
1743
+ // "id": "",
1744
+ // "orderId": "a18ba7c1f6efU0711043490p3HvjjN5x"
1745
+ // }
1746
+ // ]
1747
+ // }
1748
+ // }
1749
+ //
1750
+ const data = this.safeValue(response, 'data', {});
1751
+ const info = this.safeValue(data, 'info', []);
1752
+ return this.parseOrders(info, market);
1753
+ }
1624
1754
  async fetchOrder(id, symbol = undefined, params = {}) {
1625
1755
  /**
1626
1756
  * @method
@@ -2218,15 +2348,15 @@ export default class ascendex extends Exchange {
2218
2348
  parseDepositAddress(depositAddress, currency = undefined) {
2219
2349
  //
2220
2350
  // {
2221
- // address: "0xe7c70b4e73b6b450ee46c3b5c0f5fb127ca55722",
2222
- // destTag: "",
2223
- // tagType: "",
2224
- // tagId: "",
2225
- // chainName: "ERC20",
2226
- // numConfirmations: 20,
2227
- // withdrawalFee: 1,
2228
- // nativeScale: 4,
2229
- // tips: []
2351
+ // "address": "0xe7c70b4e73b6b450ee46c3b5c0f5fb127ca55722",
2352
+ // "destTag": "",
2353
+ // "tagType": "",
2354
+ // "tagId": "",
2355
+ // "chainName": "ERC20",
2356
+ // "numConfirmations": 20,
2357
+ // "withdrawalFee": 1,
2358
+ // "nativeScale": 4,
2359
+ // "tips": []
2230
2360
  // }
2231
2361
  //
2232
2362
  const address = this.safeString(depositAddress, 'address');
@@ -2399,26 +2529,26 @@ export default class ascendex extends Exchange {
2399
2529
  const response = await this.v1PrivateGetWalletTransactions(this.extend(request, params));
2400
2530
  //
2401
2531
  // {
2402
- // code: 0,
2403
- // data: {
2404
- // data: [
2532
+ // "code": 0,
2533
+ // "data": {
2534
+ // "data": [
2405
2535
  // {
2406
- // requestId: "wuzd1Ojsqtz4bCA3UXwtUnnJDmU8PiyB",
2407
- // time: 1591606166000,
2408
- // asset: "USDT",
2409
- // transactionType: "deposit",
2410
- // amount: "25",
2411
- // commission: "0",
2412
- // networkTransactionId: "0xbc4eabdce92f14dbcc01d799a5f8ca1f02f4a3a804b6350ea202be4d3c738fce",
2413
- // status: "pending",
2414
- // numConfirmed: 8,
2415
- // numConfirmations: 20,
2416
- // destAddress: { address: "0xe7c70b4e73b6b450ee46c3b5c0f5fb127ca55722" }
2536
+ // "requestId": "wuzd1Ojsqtz4bCA3UXwtUnnJDmU8PiyB",
2537
+ // "time": 1591606166000,
2538
+ // "asset": "USDT",
2539
+ // "transactionType": "deposit",
2540
+ // "amount": "25",
2541
+ // "commission": "0",
2542
+ // "networkTransactionId": "0xbc4eabdce92f14dbcc01d799a5f8ca1f02f4a3a804b6350ea202be4d3c738fce",
2543
+ // "status": "pending",
2544
+ // "numConfirmed": 8,
2545
+ // "numConfirmations": 20,
2546
+ // "destAddress": { address: "0xe7c70b4e73b6b450ee46c3b5c0f5fb127ca55722" }
2417
2547
  // }
2418
2548
  // ],
2419
- // page: 1,
2420
- // pageSize: 20,
2421
- // hasNext: false
2549
+ // "page": 1,
2550
+ // "pageSize": 20,
2551
+ // "hasNext": false
2422
2552
  // }
2423
2553
  // }
2424
2554
  //
@@ -2438,19 +2568,19 @@ export default class ascendex extends Exchange {
2438
2568
  parseTransaction(transaction, currency = undefined) {
2439
2569
  //
2440
2570
  // {
2441
- // requestId: "wuzd1Ojsqtz4bCA3UXwtUnnJDmU8PiyB",
2442
- // time: 1591606166000,
2443
- // asset: "USDT",
2444
- // transactionType: "deposit",
2445
- // amount: "25",
2446
- // commission: "0",
2447
- // networkTransactionId: "0xbc4eabdce92f14dbcc01d799a5f8ca1f02f4a3a804b6350ea202be4d3c738fce",
2448
- // status: "pending",
2449
- // numConfirmed: 8,
2450
- // numConfirmations: 20,
2451
- // destAddress: {
2452
- // address: "0xe7c70b4e73b6b450ee46c3b5c0f5fb127ca55722",
2453
- // destTag: "..." // for currencies that have it
2571
+ // "requestId": "wuzd1Ojsqtz4bCA3UXwtUnnJDmU8PiyB",
2572
+ // "time": 1591606166000,
2573
+ // "asset": "USDT",
2574
+ // "transactionType": "deposit",
2575
+ // "amount": "25",
2576
+ // "commission": "0",
2577
+ // "networkTransactionId": "0xbc4eabdce92f14dbcc01d799a5f8ca1f02f4a3a804b6350ea202be4d3c738fce",
2578
+ // "status": "pending",
2579
+ // "numConfirmed": 8,
2580
+ // "numConfirmations": 20,
2581
+ // "destAddress": {
2582
+ // "address": "0xe7c70b4e73b6b450ee46c3b5c0f5fb127ca55722",
2583
+ // "destTag": "..." // for currencies that have it
2454
2584
  // }
2455
2585
  // }
2456
2586
  //
@@ -3012,7 +3142,7 @@ export default class ascendex extends Exchange {
3012
3142
  };
3013
3143
  const response = await this.v1PrivateAccountGroupPostTransfer(this.extend(request, params));
3014
3144
  //
3015
- // { code: '0' }
3145
+ // { "code": "0" }
3016
3146
  //
3017
3147
  const transferOptions = this.safeValue(this.options, 'transfer', {});
3018
3148
  const fillResponseFromRequest = this.safeValue(transferOptions, 'fillResponseFromRequest', true);
@@ -3027,7 +3157,7 @@ export default class ascendex extends Exchange {
3027
3157
  }
3028
3158
  parseTransfer(transfer, currency = undefined) {
3029
3159
  //
3030
- // { code: '0' }
3160
+ // { "code": "0" }
3031
3161
  //
3032
3162
  const status = this.safeInteger(transfer, 'code');
3033
3163
  const currencyCode = this.safeCurrencyCode(undefined, currency);
@@ -3199,8 +3329,8 @@ export default class ascendex extends Exchange {
3199
3329
  return undefined; // fallback to default error handler
3200
3330
  }
3201
3331
  //
3202
- // {'code': 6010, 'message': 'Not enough balance.'}
3203
- // {'code': 60060, 'message': 'The order is already filled or canceled.'}
3332
+ // {"code": 6010, "message": "Not enough balance."}
3333
+ // {"code": 60060, "message": "The order is already filled or canceled."}
3204
3334
  // {"code":2100,"message":"ApiKeyFailure"}
3205
3335
  // {"code":300001,"message":"Price is too low from market price.","reason":"INVALID_PRICE","accountId":"cshrHKLZCjlZ2ejqkmvIHHtPmLYqdnda","ac":"CASH","action":"place-order","status":"Err","info":{"symbol":"BTC/USDT"}}
3206
3336
  //
@@ -130,12 +130,20 @@ export interface Transaction {
130
130
  timestamp: number;
131
131
  datetime: string;
132
132
  address: string;
133
+ addressFrom: string;
134
+ addressTo: string;
135
+ tag: string;
136
+ tagFrom: string;
137
+ tagTo: string;
133
138
  type: 'deposit' | 'withdrawal' | string;
134
139
  amount: number;
135
140
  currency: string;
136
141
  status: 'pending' | 'ok' | string;
137
142
  updated: number;
138
143
  fee: Fee;
144
+ network: string;
145
+ comment?: string;
146
+ internal?: boolean;
139
147
  }
140
148
  export interface Tickers extends Dictionary<Ticker> {
141
149
  info: any;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/bigone.js';
2
- import { Int, OHLCV, Order, OrderSide, OrderType } from './base/types.js';
2
+ import { Balances, Int, OHLCV, Order, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
3
3
  /**
4
4
  * @class bigone
5
5
  * @extends Exchange
@@ -9,17 +9,17 @@ export default class bigone extends Exchange {
9
9
  fetchCurrencies(params?: {}): Promise<{}>;
10
10
  fetchMarkets(params?: {}): Promise<any[]>;
11
11
  loadMarkets(reload?: boolean, params?: {}): Promise<import("./base/types.js").Dictionary<import("./base/types.js").Market>>;
12
- parseTicker(ticker: any, market?: any): import("./base/types.js").Ticker;
13
- fetchTicker(symbol: string, params?: {}): Promise<import("./base/types.js").Ticker>;
14
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<import("./base/types.js").Ticker>>;
12
+ parseTicker(ticker: any, market?: any): Ticker;
13
+ fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
14
+ fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
15
15
  fetchTime(params?: {}): Promise<number>;
16
16
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<import("./base/types.js").OrderBook>;
17
- parseTrade(trade: any, market?: any): import("./base/types.js").Trade;
18
- fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Trade[]>;
17
+ parseTrade(trade: any, market?: any): Trade;
18
+ fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
19
19
  parseOHLCV(ohlcv: any, market?: any): OHLCV;
20
20
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
21
- parseBalance(response: any): import("./base/types.js").Balances;
22
- fetchBalance(params?: {}): Promise<import("./base/types.js").Balances>;
21
+ parseBalance(response: any): Balances;
22
+ fetchBalance(params?: {}): Promise<Balances>;
23
23
  parseType(type: string): string;
24
24
  parseOrder(order: any, market?: any): Order;
25
25
  createOrder(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): Promise<Order>;
@@ -27,7 +27,7 @@ export default class bigone extends Exchange {
27
27
  cancelAllOrders(symbol?: string, params?: {}): Promise<any>;
28
28
  fetchOrder(id: string, symbol?: string, params?: {}): Promise<Order>;
29
29
  fetchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
30
- fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Trade[]>;
30
+ fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
31
31
  parseOrderStatus(status: any): string;
32
32
  fetchOpenOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
33
33
  fetchClosedOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
@@ -46,26 +46,7 @@ export default class bigone extends Exchange {
46
46
  info: any;
47
47
  }>;
48
48
  parseTransactionStatus(status: any): string;
49
- parseTransaction(transaction: any, currency?: any): {
50
- info: any;
51
- id: number;
52
- txid: string;
53
- timestamp: number;
54
- datetime: string;
55
- network: any;
56
- addressFrom: any;
57
- address: any;
58
- addressTo: string;
59
- tagFrom: any;
60
- tag: string;
61
- tagTo: any;
62
- type: string;
63
- amount: number;
64
- currency: any;
65
- status: string;
66
- updated: number;
67
- fee: any;
68
- };
49
+ parseTransaction(transaction: any, currency?: any): Transaction;
69
50
  fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
70
51
  fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
71
52
  transfer(code: string, amount: any, fromAccount: any, toAccount: any, params?: {}): Promise<{
@@ -91,25 +72,6 @@ export default class bigone extends Exchange {
91
72
  status: string;
92
73
  };
93
74
  parseTransferStatus(status: any): string;
94
- withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<{
95
- info: any;
96
- id: number;
97
- txid: string;
98
- timestamp: number;
99
- datetime: string;
100
- network: any;
101
- addressFrom: any;
102
- address: any;
103
- addressTo: string;
104
- tagFrom: any;
105
- tag: string;
106
- tagTo: any;
107
- type: string;
108
- amount: number;
109
- currency: any;
110
- status: string;
111
- updated: number;
112
- fee: any;
113
- }>;
75
+ withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
114
76
  handleErrors(httpCode: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
115
77
  }