ccxt 4.4.50 → 4.4.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.
- package/README.md +227 -142
- package/dist/ccxt.browser.min.js +8 -8
- package/dist/cjs/ccxt.js +1 -4
- package/dist/cjs/src/ace.js +3 -0
- package/dist/cjs/src/alpaca.js +6 -1
- package/dist/cjs/src/ascendex.js +2 -1
- package/dist/cjs/src/base/Exchange.js +151 -59
- package/dist/cjs/src/bigone.js +5 -0
- package/dist/cjs/src/binance.js +87 -68
- package/dist/cjs/src/bingx.js +27 -30
- package/dist/cjs/src/bit2c.js +3 -0
- package/dist/cjs/src/bitbank.js +3 -0
- package/dist/cjs/src/bitbns.js +3 -0
- package/dist/cjs/src/bitfinex.js +7 -2
- package/dist/cjs/src/bitflyer.js +5 -0
- package/dist/cjs/src/bitget.js +9 -5
- package/dist/cjs/src/bithumb.js +2 -0
- package/dist/cjs/src/bitmart.js +20 -8
- package/dist/cjs/src/bitmex.js +99 -93
- package/dist/cjs/src/bitopro.js +5 -0
- package/dist/cjs/src/bitrue.js +4 -0
- package/dist/cjs/src/bitso.js +3 -0
- package/dist/cjs/src/bitstamp.js +3 -0
- package/dist/cjs/src/bitteam.js +5 -0
- package/dist/cjs/src/bitvavo.js +4 -0
- package/dist/cjs/src/blockchaincom.js +5 -1
- package/dist/cjs/src/blofin.js +7 -0
- package/dist/cjs/src/btcalpha.js +5 -0
- package/dist/cjs/src/btcbox.js +3 -3
- package/dist/cjs/src/btcmarkets.js +5 -0
- package/dist/cjs/src/btcturk.js +3 -0
- package/dist/cjs/src/bybit.js +12 -2
- package/dist/cjs/src/cex.js +2 -0
- package/dist/cjs/src/coinbase.js +16 -8
- package/dist/cjs/src/coinbaseexchange.js +5 -0
- package/dist/cjs/src/coinbaseinternational.js +7 -3
- package/dist/cjs/src/coincatch.js +4 -1
- package/dist/cjs/src/coincheck.js +2 -0
- package/dist/cjs/src/coinex.js +6 -2
- package/dist/cjs/src/coinlist.js +5 -0
- package/dist/cjs/src/coinmate.js +5 -1
- package/dist/cjs/src/coinmetro.js +29 -8
- package/dist/cjs/src/coinone.js +4 -1
- package/dist/cjs/src/coinsph.js +5 -1
- package/dist/cjs/src/coinspot.js +2 -1
- package/dist/cjs/src/cryptocom.js +5 -0
- package/dist/cjs/src/currencycom.js +4 -1
- package/dist/cjs/src/defx.js +5 -0
- package/dist/cjs/src/delta.js +3 -0
- package/dist/cjs/src/deribit.js +37 -36
- package/dist/cjs/src/digifinex.js +10 -5
- package/dist/cjs/src/ellipx.js +9 -5
- package/dist/cjs/src/exmo.js +5 -2
- package/dist/cjs/src/gate.js +5 -1
- package/dist/cjs/src/gemini.js +3 -0
- package/dist/cjs/src/hashkey.js +5 -4
- package/dist/cjs/src/hitbtc.js +4 -0
- package/dist/cjs/src/hollaex.js +8 -2
- package/dist/cjs/src/htx.js +15 -5
- package/dist/cjs/src/huobijp.js +5 -0
- package/dist/cjs/src/hyperliquid.js +9 -4
- package/dist/cjs/src/idex.js +6 -2
- package/dist/cjs/src/independentreserve.js +4 -0
- package/dist/cjs/src/indodax.js +3 -0
- package/dist/cjs/src/kraken.js +7 -5
- package/dist/cjs/src/krakenfutures.js +5 -2
- package/dist/cjs/src/kucoin.js +18 -10
- package/dist/cjs/src/kucoinfutures.js +5 -1
- package/dist/cjs/src/kuna.js +3 -0
- package/dist/cjs/src/latoken.js +4 -0
- package/dist/cjs/src/lbank.js +6 -1
- package/dist/cjs/src/luno.js +7 -2
- package/dist/cjs/src/mercado.js +5 -1
- package/dist/cjs/src/mexc.js +36 -15
- package/dist/cjs/src/ndax.js +7 -2
- package/dist/cjs/src/novadax.js +6 -1
- package/dist/cjs/src/oceanex.js +4 -0
- package/dist/cjs/src/okcoin.js +6 -2
- package/dist/cjs/src/okx.js +18 -4
- package/dist/cjs/src/onetrading.js +6 -2
- package/dist/cjs/src/oxfun.js +3 -0
- package/dist/cjs/src/p2b.js +3 -0
- package/dist/cjs/src/paradex.js +10 -4
- package/dist/cjs/src/phemex.js +12 -5
- package/dist/cjs/src/poloniex.js +6 -3
- package/dist/cjs/src/poloniexfutures.js +5 -1
- package/dist/cjs/src/pro/binance.js +4 -2
- package/dist/cjs/src/pro/bitcoincom.js +1 -4
- package/dist/cjs/src/pro/bitget.js +3 -3
- package/dist/cjs/src/pro/bitopro.js +1 -1
- package/dist/cjs/src/pro/blofin.js +8 -0
- package/dist/cjs/src/pro/bybit.js +10 -2
- package/dist/cjs/src/pro/cex.js +1 -1
- package/dist/cjs/src/pro/coincatch.js +3 -3
- package/dist/cjs/src/pro/coinex.js +4 -1
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/mexc.js +3 -3
- package/dist/cjs/src/pro/okx.js +1 -1
- package/dist/cjs/src/probit.js +14 -9
- package/dist/cjs/src/timex.js +5 -1
- package/dist/cjs/src/tokocrypto.js +6 -1
- package/dist/cjs/src/tradeogre.js +2 -0
- package/dist/cjs/src/upbit.js +3 -0
- package/dist/cjs/src/vertex.js +71 -4
- package/dist/cjs/src/wavesexchange.js +96 -3
- package/dist/cjs/src/wazirx.js +61 -3
- package/dist/cjs/src/whitebit.js +74 -4
- package/dist/cjs/src/woo.js +15 -5
- package/dist/cjs/src/woofipro.js +25 -9
- package/dist/cjs/src/xt.js +117 -0
- package/dist/cjs/src/yobit.js +59 -0
- package/dist/cjs/src/zaif.js +57 -0
- package/dist/cjs/src/zonda.js +58 -0
- package/js/ccxt.d.ts +3 -6
- package/js/ccxt.js +2 -4
- package/js/src/abstract/binance.d.ts +0 -1
- package/js/src/abstract/binancecoinm.d.ts +0 -1
- package/js/src/abstract/binanceus.d.ts +0 -1
- package/js/src/abstract/binanceusdm.d.ts +0 -1
- package/js/src/ace.js +3 -0
- package/js/src/alpaca.js +6 -1
- package/js/src/ascendex.js +2 -1
- package/js/src/base/Exchange.d.ts +9 -3
- package/js/src/base/Exchange.js +151 -59
- package/js/src/base/types.d.ts +2 -0
- package/js/src/bigone.d.ts +1 -1
- package/js/src/bigone.js +5 -0
- package/js/src/binance.d.ts +33 -33
- package/js/src/binance.js +87 -68
- package/js/src/bingx.d.ts +1 -1
- package/js/src/bingx.js +27 -30
- package/js/src/bit2c.js +3 -0
- package/js/src/bitbank.js +3 -0
- package/js/src/bitbns.js +3 -0
- package/js/src/bitfinex.js +7 -2
- package/js/src/bitflyer.js +5 -0
- package/js/src/bitget.js +9 -5
- package/js/src/bithumb.js +2 -0
- package/js/src/bitmart.d.ts +5 -5
- package/js/src/bitmart.js +20 -8
- package/js/src/bitmex.js +99 -93
- package/js/src/bitopro.d.ts +2 -2
- package/js/src/bitopro.js +5 -0
- package/js/src/bitrue.js +4 -0
- package/js/src/bitso.d.ts +2 -2
- package/js/src/bitso.js +3 -0
- package/js/src/bitstamp.js +3 -0
- package/js/src/bitteam.js +5 -0
- package/js/src/bitvavo.js +4 -0
- package/js/src/blockchaincom.js +5 -1
- package/js/src/blofin.js +7 -0
- package/js/src/btcalpha.js +5 -0
- package/js/src/btcbox.js +3 -3
- package/js/src/btcmarkets.js +5 -0
- package/js/src/btcturk.js +3 -0
- package/js/src/bybit.d.ts +3 -3
- package/js/src/bybit.js +12 -2
- package/js/src/cex.js +2 -0
- package/js/src/coinbase.d.ts +4 -4
- package/js/src/coinbase.js +16 -8
- package/js/src/coinbaseexchange.js +5 -0
- package/js/src/coinbaseinternational.d.ts +1 -1
- package/js/src/coinbaseinternational.js +7 -3
- package/js/src/coincatch.js +4 -1
- package/js/src/coincheck.js +2 -0
- package/js/src/coinex.d.ts +1 -1
- package/js/src/coinex.js +6 -2
- package/js/src/coinlist.js +5 -0
- package/js/src/coinmate.js +5 -1
- package/js/src/coinmetro.js +29 -8
- package/js/src/coinone.js +4 -1
- package/js/src/coinsph.js +5 -1
- package/js/src/coinspot.js +2 -1
- package/js/src/cryptocom.js +5 -0
- package/js/src/currencycom.js +4 -1
- package/js/src/defx.js +5 -0
- package/js/src/delta.js +3 -0
- package/js/src/deribit.d.ts +5 -3
- package/js/src/deribit.js +37 -36
- package/js/src/digifinex.js +10 -5
- package/js/src/ellipx.d.ts +1 -1
- package/js/src/ellipx.js +9 -5
- package/js/src/exmo.d.ts +3 -3
- package/js/src/exmo.js +5 -2
- package/js/src/gate.js +5 -1
- package/js/src/gemini.js +3 -0
- package/js/src/hashkey.js +5 -4
- package/js/src/hitbtc.d.ts +2 -2
- package/js/src/hitbtc.js +4 -0
- package/js/src/hollaex.d.ts +2 -2
- package/js/src/hollaex.js +8 -2
- package/js/src/htx.d.ts +1 -1
- package/js/src/htx.js +15 -5
- package/js/src/huobijp.js +5 -0
- package/js/src/hyperliquid.d.ts +1 -1
- package/js/src/hyperliquid.js +9 -4
- package/js/src/idex.d.ts +1 -1
- package/js/src/idex.js +6 -2
- package/js/src/independentreserve.js +4 -0
- package/js/src/indodax.js +3 -0
- package/js/src/kraken.js +7 -5
- package/js/src/krakenfutures.js +5 -2
- package/js/src/kucoin.d.ts +2 -1
- package/js/src/kucoin.js +18 -10
- package/js/src/kucoinfutures.d.ts +1 -1
- package/js/src/kucoinfutures.js +5 -1
- package/js/src/kuna.js +3 -0
- package/js/src/latoken.js +4 -0
- package/js/src/lbank.js +6 -1
- package/js/src/luno.d.ts +1 -1
- package/js/src/luno.js +7 -2
- package/js/src/mercado.js +5 -1
- package/js/src/mexc.d.ts +1 -1
- package/js/src/mexc.js +36 -15
- package/js/src/ndax.js +7 -2
- package/js/src/novadax.js +6 -1
- package/js/src/oceanex.d.ts +2 -2
- package/js/src/oceanex.js +4 -0
- package/js/src/okcoin.js +6 -2
- package/js/src/okx.js +18 -4
- package/js/src/onetrading.d.ts +1 -1
- package/js/src/onetrading.js +6 -2
- package/js/src/oxfun.js +3 -0
- package/js/src/p2b.js +3 -0
- package/js/src/paradex.js +10 -4
- package/js/src/phemex.d.ts +1 -1
- package/js/src/phemex.js +12 -5
- package/js/src/poloniex.js +6 -3
- package/js/src/poloniexfutures.d.ts +1 -1
- package/js/src/poloniexfutures.js +5 -1
- package/js/src/pro/binance.js +4 -2
- package/js/src/pro/bitcoincom.js +1 -4
- package/js/src/pro/bitget.js +3 -3
- package/js/src/pro/bitopro.js +1 -1
- package/js/src/pro/blofin.js +8 -0
- package/js/src/pro/bybit.js +10 -2
- package/js/src/pro/cex.js +1 -1
- package/js/src/pro/coincatch.js +3 -3
- package/js/src/pro/coinex.js +4 -1
- package/js/src/pro/htx.d.ts +8 -8
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/mexc.js +3 -3
- package/js/src/pro/okx.js +1 -1
- package/js/src/probit.d.ts +1 -0
- package/js/src/probit.js +14 -9
- package/js/src/static_dependencies/node-fetch/headers.d.ts +5 -0
- package/js/src/static_dependencies/proxies/agent-base/helpers.d.ts +1 -0
- package/js/src/static_dependencies/proxies/https-proxy-agent/parse-proxy-response.d.ts +1 -0
- package/js/src/timex.js +5 -1
- package/js/src/tokocrypto.js +6 -1
- package/js/src/tradeogre.js +2 -0
- package/js/src/upbit.d.ts +2 -2
- package/js/src/upbit.js +3 -0
- package/js/src/vertex.js +71 -4
- package/js/src/wavesexchange.d.ts +2 -1
- package/js/src/wavesexchange.js +96 -3
- package/js/src/wazirx.js +61 -3
- package/js/src/whitebit.js +74 -4
- package/js/src/woo.d.ts +1 -1
- package/js/src/woo.js +15 -5
- package/js/src/woofipro.d.ts +1 -1
- package/js/src/woofipro.js +25 -9
- package/js/src/xt.js +117 -0
- package/js/src/yobit.d.ts +2 -2
- package/js/src/yobit.js +59 -0
- package/js/src/zaif.js +57 -0
- package/js/src/zonda.d.ts +1 -0
- package/js/src/zonda.js +58 -0
- package/package.json +25 -7
- package/dist/cjs/src/abstract/lykke.js +0 -9
- package/dist/cjs/src/lykke.js +0 -1401
- package/js/src/abstract/lykke.d.ts +0 -32
- package/js/src/abstract/lykke.js +0 -11
- package/js/src/hitbtc3.d.ts +0 -8
- package/js/src/hitbtc3.js +0 -20
- package/js/src/lykke.d.ts +0 -212
- package/js/src/lykke.js +0 -1402
package/dist/cjs/src/yobit.js
CHANGED
|
@@ -308,6 +308,65 @@ class yobit extends yobit$1 {
|
|
|
308
308
|
'Rate Limited': errors.RateLimitExceeded,
|
|
309
309
|
},
|
|
310
310
|
},
|
|
311
|
+
'features': {
|
|
312
|
+
'spot': {
|
|
313
|
+
'sandbox': false,
|
|
314
|
+
'createOrder': {
|
|
315
|
+
'marginMode': false,
|
|
316
|
+
'triggerPrice': false,
|
|
317
|
+
'triggerDirection': false,
|
|
318
|
+
'triggerPriceType': undefined,
|
|
319
|
+
'stopLossPrice': false,
|
|
320
|
+
'takeProfitPrice': false,
|
|
321
|
+
'attachedStopLossTakeProfit': undefined,
|
|
322
|
+
'timeInForce': {
|
|
323
|
+
'IOC': false,
|
|
324
|
+
'FOK': false,
|
|
325
|
+
'PO': false,
|
|
326
|
+
'GTD': false,
|
|
327
|
+
},
|
|
328
|
+
'hedged': false,
|
|
329
|
+
'trailing': false,
|
|
330
|
+
'leverage': false,
|
|
331
|
+
'marketBuyByCost': false,
|
|
332
|
+
'marketBuyRequiresPrice': false,
|
|
333
|
+
'selfTradePrevention': false,
|
|
334
|
+
'iceberg': false,
|
|
335
|
+
},
|
|
336
|
+
'createOrders': undefined,
|
|
337
|
+
'fetchMyTrades': {
|
|
338
|
+
'marginMode': false,
|
|
339
|
+
'limit': 1000,
|
|
340
|
+
'daysBack': 100000,
|
|
341
|
+
'untilDays': 100000,
|
|
342
|
+
'symbolRequired': true,
|
|
343
|
+
},
|
|
344
|
+
'fetchOrder': {
|
|
345
|
+
'marginMode': false,
|
|
346
|
+
'trigger': false,
|
|
347
|
+
'trailing': false,
|
|
348
|
+
'symbolRequired': false,
|
|
349
|
+
},
|
|
350
|
+
'fetchOpenOrders': {
|
|
351
|
+
'marginMode': false,
|
|
352
|
+
'limit': undefined,
|
|
353
|
+
'trigger': false,
|
|
354
|
+
'trailing': false,
|
|
355
|
+
'symbolRequired': true,
|
|
356
|
+
},
|
|
357
|
+
'fetchOrders': undefined,
|
|
358
|
+
'fetchClosedOrders': undefined,
|
|
359
|
+
'fetchOHLCV': undefined,
|
|
360
|
+
},
|
|
361
|
+
'swap': {
|
|
362
|
+
'linear': undefined,
|
|
363
|
+
'inverse': undefined,
|
|
364
|
+
},
|
|
365
|
+
'future': {
|
|
366
|
+
'linear': undefined,
|
|
367
|
+
'inverse': undefined,
|
|
368
|
+
},
|
|
369
|
+
},
|
|
311
370
|
'orders': {}, // orders cache / emulation
|
|
312
371
|
});
|
|
313
372
|
}
|
package/dist/cjs/src/zaif.js
CHANGED
|
@@ -129,6 +129,63 @@ class zaif extends zaif$1 {
|
|
|
129
129
|
},
|
|
130
130
|
},
|
|
131
131
|
'options': {},
|
|
132
|
+
'features': {
|
|
133
|
+
'spot': {
|
|
134
|
+
'sandbox': false,
|
|
135
|
+
'createOrder': {
|
|
136
|
+
'marginMode': true,
|
|
137
|
+
'triggerPrice': true,
|
|
138
|
+
'triggerDirection': false,
|
|
139
|
+
'triggerPriceType': undefined,
|
|
140
|
+
'stopLossPrice': false,
|
|
141
|
+
'takeProfitPrice': false,
|
|
142
|
+
'attachedStopLossTakeProfit': undefined,
|
|
143
|
+
'timeInForce': {
|
|
144
|
+
'IOC': false,
|
|
145
|
+
'FOK': false,
|
|
146
|
+
'PO': false,
|
|
147
|
+
'GTD': false,
|
|
148
|
+
},
|
|
149
|
+
'hedged': false,
|
|
150
|
+
'trailing': false,
|
|
151
|
+
'leverage': true,
|
|
152
|
+
'marketBuyByCost': false,
|
|
153
|
+
'marketBuyRequiresPrice': false,
|
|
154
|
+
'selfTradePrevention': false,
|
|
155
|
+
'iceberg': false,
|
|
156
|
+
},
|
|
157
|
+
'createOrders': undefined,
|
|
158
|
+
'fetchMyTrades': undefined,
|
|
159
|
+
'fetchOrder': undefined,
|
|
160
|
+
'fetchOpenOrders': {
|
|
161
|
+
'marginMode': true,
|
|
162
|
+
'limit': undefined,
|
|
163
|
+
'trigger': false,
|
|
164
|
+
'trailing': false,
|
|
165
|
+
'symbolRequired': false,
|
|
166
|
+
},
|
|
167
|
+
'fetchOrders': undefined,
|
|
168
|
+
'fetchClosedOrders': {
|
|
169
|
+
'marginMode': true,
|
|
170
|
+
'limit': 1000,
|
|
171
|
+
'daysBack': 100000,
|
|
172
|
+
'daysBackCanceled': 1,
|
|
173
|
+
'untilDays': 100000,
|
|
174
|
+
'trigger': false,
|
|
175
|
+
'trailing': false,
|
|
176
|
+
'symbolRequired': false,
|
|
177
|
+
},
|
|
178
|
+
'fetchOHLCV': undefined,
|
|
179
|
+
},
|
|
180
|
+
'swap': {
|
|
181
|
+
'linear': undefined,
|
|
182
|
+
'inverse': undefined,
|
|
183
|
+
},
|
|
184
|
+
'future': {
|
|
185
|
+
'linear': undefined,
|
|
186
|
+
'inverse': undefined,
|
|
187
|
+
},
|
|
188
|
+
},
|
|
132
189
|
'precisionMode': number.TICK_SIZE,
|
|
133
190
|
'exceptions': {
|
|
134
191
|
'exact': {
|
package/dist/cjs/src/zonda.js
CHANGED
|
@@ -289,6 +289,62 @@ class zonda extends zonda$1 {
|
|
|
289
289
|
'fillResponseFromRequest': true,
|
|
290
290
|
},
|
|
291
291
|
},
|
|
292
|
+
'features': {
|
|
293
|
+
'spot': {
|
|
294
|
+
'sandbox': false,
|
|
295
|
+
'createOrder': {
|
|
296
|
+
'marginMode': false,
|
|
297
|
+
'triggerPrice': true,
|
|
298
|
+
'triggerDirection': false,
|
|
299
|
+
'triggerPriceType': undefined,
|
|
300
|
+
'stopLossPrice': false,
|
|
301
|
+
'takeProfitPrice': false,
|
|
302
|
+
'attachedStopLossTakeProfit': undefined,
|
|
303
|
+
'timeInForce': {
|
|
304
|
+
'IOC': true,
|
|
305
|
+
'FOK': true,
|
|
306
|
+
'PO': true,
|
|
307
|
+
'GTD': false,
|
|
308
|
+
},
|
|
309
|
+
'hedged': false,
|
|
310
|
+
'trailing': false,
|
|
311
|
+
'leverage': false,
|
|
312
|
+
'marketBuyByCost': true,
|
|
313
|
+
'marketBuyRequiresPrice': false,
|
|
314
|
+
'selfTradePrevention': false,
|
|
315
|
+
'iceberg': false,
|
|
316
|
+
},
|
|
317
|
+
'createOrders': undefined,
|
|
318
|
+
'fetchMyTrades': {
|
|
319
|
+
'marginMode': false,
|
|
320
|
+
'limit': undefined,
|
|
321
|
+
'daysBack': 100000,
|
|
322
|
+
'untilDays': 100000,
|
|
323
|
+
'symbolRequired': false,
|
|
324
|
+
},
|
|
325
|
+
'fetchOrder': undefined,
|
|
326
|
+
'fetchOpenOrders': {
|
|
327
|
+
'marginMode': false,
|
|
328
|
+
'limit': 100,
|
|
329
|
+
'trigger': false,
|
|
330
|
+
'trailing': false,
|
|
331
|
+
'symbolRequired': false,
|
|
332
|
+
},
|
|
333
|
+
'fetchOrders': undefined,
|
|
334
|
+
'fetchClosedOrders': undefined,
|
|
335
|
+
'fetchOHLCV': {
|
|
336
|
+
'limit': undefined,
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
'swap': {
|
|
340
|
+
'linear': undefined,
|
|
341
|
+
'inverse': undefined,
|
|
342
|
+
},
|
|
343
|
+
'future': {
|
|
344
|
+
'linear': undefined,
|
|
345
|
+
'inverse': undefined,
|
|
346
|
+
},
|
|
347
|
+
},
|
|
292
348
|
'precisionMode': number.TICK_SIZE,
|
|
293
349
|
'exceptions': {
|
|
294
350
|
'400': errors.ExchangeError,
|
|
@@ -442,6 +498,7 @@ class zonda extends zonda$1 {
|
|
|
442
498
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
443
499
|
await this.loadMarkets();
|
|
444
500
|
const request = {};
|
|
501
|
+
// todo pair
|
|
445
502
|
const response = await this.v1_01PrivateGetTradingOffer(this.extend(request, params));
|
|
446
503
|
const items = this.safeList(response, 'items', []);
|
|
447
504
|
return this.parseOrders(items, undefined, since, limit, { 'status': 'open' });
|
|
@@ -1375,6 +1432,7 @@ class zonda extends zonda$1 {
|
|
|
1375
1432
|
* @method
|
|
1376
1433
|
* @name zonda#createOrder
|
|
1377
1434
|
* @description create a trade order
|
|
1435
|
+
* @see https://docs.zondacrypto.exchange/reference/new-order
|
|
1378
1436
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
1379
1437
|
* @param {string} type 'market' or 'limit'
|
|
1380
1438
|
* @param {string} side 'buy' or 'sell'
|
package/js/ccxt.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { Exchange } from './src/base/Exchange.js';
|
|
|
2
2
|
import { Precise } from './src/base/Precise.js';
|
|
3
3
|
import * as functions from './src/base/functions.js';
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
|
-
import type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarketMarginModes, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, LongShortRatio, OpenInterests } from './src/base/types.js';
|
|
5
|
+
import type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarketMarginModes, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, LongShortRatio, OrderBooks, OpenInterests } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.4.
|
|
7
|
+
declare const version = "4.4.56";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
|
@@ -85,7 +85,6 @@ import kuna from './src/kuna.js';
|
|
|
85
85
|
import latoken from './src/latoken.js';
|
|
86
86
|
import lbank from './src/lbank.js';
|
|
87
87
|
import luno from './src/luno.js';
|
|
88
|
-
import lykke from './src/lykke.js';
|
|
89
88
|
import mercado from './src/mercado.js';
|
|
90
89
|
import mexc from './src/mexc.js';
|
|
91
90
|
import myokx from './src/myokx.js';
|
|
@@ -273,7 +272,6 @@ declare const exchanges: {
|
|
|
273
272
|
latoken: typeof latoken;
|
|
274
273
|
lbank: typeof lbank;
|
|
275
274
|
luno: typeof luno;
|
|
276
|
-
lykke: typeof lykke;
|
|
277
275
|
mercado: typeof mercado;
|
|
278
276
|
mexc: typeof mexc;
|
|
279
277
|
myokx: typeof myokx;
|
|
@@ -546,7 +544,6 @@ declare const ccxt: {
|
|
|
546
544
|
latoken: typeof latoken;
|
|
547
545
|
lbank: typeof lbank;
|
|
548
546
|
luno: typeof luno;
|
|
549
|
-
lykke: typeof lykke;
|
|
550
547
|
mercado: typeof mercado;
|
|
551
548
|
mexc: typeof mexc;
|
|
552
549
|
myokx: typeof myokx;
|
|
@@ -579,5 +576,5 @@ declare const ccxt: {
|
|
|
579
576
|
zaif: typeof zaif;
|
|
580
577
|
zonda: typeof zonda;
|
|
581
578
|
} & typeof functions & typeof errors;
|
|
582
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, OpenInterests, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitcoincom, bitfinex, bitfinex1, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, defx, delta, deribit, digifinex, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno,
|
|
579
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, OrderBooks, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, OpenInterests, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitcoincom, bitfinex, bitfinex1, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, defx, delta, deribit, digifinex, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, mercado, mexc, myokx, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, vertex, wavesexchange, wazirx, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
583
580
|
export default ccxt;
|
package/js/ccxt.js
CHANGED
|
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
|
|
|
38
38
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.4.
|
|
41
|
+
const version = '4.4.57';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
|
@@ -121,7 +121,6 @@ import kuna from './src/kuna.js';
|
|
|
121
121
|
import latoken from './src/latoken.js';
|
|
122
122
|
import lbank from './src/lbank.js';
|
|
123
123
|
import luno from './src/luno.js';
|
|
124
|
-
import lykke from './src/lykke.js';
|
|
125
124
|
import mercado from './src/mercado.js';
|
|
126
125
|
import mexc from './src/mexc.js';
|
|
127
126
|
import myokx from './src/myokx.js';
|
|
@@ -310,7 +309,6 @@ const exchanges = {
|
|
|
310
309
|
'latoken': latoken,
|
|
311
310
|
'lbank': lbank,
|
|
312
311
|
'luno': luno,
|
|
313
|
-
'lykke': lykke,
|
|
314
312
|
'mercado': mercado,
|
|
315
313
|
'mexc': mexc,
|
|
316
314
|
'myokx': myokx,
|
|
@@ -432,6 +430,6 @@ pro.exchanges = Object.keys(pro);
|
|
|
432
430
|
pro['Exchange'] = Exchange; // now the same for rest and ts
|
|
433
431
|
//-----------------------------------------------------------------------------
|
|
434
432
|
const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
|
|
435
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitcoincom, bitfinex, bitfinex1, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, defx, delta, deribit, digifinex, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno,
|
|
433
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitcoincom, bitfinex, bitfinex1, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, defx, delta, deribit, digifinex, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, mercado, mexc, myokx, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, vertex, wavesexchange, wazirx, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
436
434
|
export default ccxt;
|
|
437
435
|
//-----------------------------------------------------------------------------
|
|
@@ -763,7 +763,6 @@ interface Exchange {
|
|
|
763
763
|
papiDeleteMarginAllOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
764
764
|
papiDeleteMarginOrderList(params?: {}): Promise<implicitReturnType>;
|
|
765
765
|
papiDeleteListenKey(params?: {}): Promise<implicitReturnType>;
|
|
766
|
-
papiV2GetUmAccount(params?: {}): Promise<implicitReturnType>;
|
|
767
766
|
}
|
|
768
767
|
declare abstract class Exchange extends _Exchange {
|
|
769
768
|
}
|
|
@@ -763,7 +763,6 @@ interface binance {
|
|
|
763
763
|
papiDeleteMarginAllOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
764
764
|
papiDeleteMarginOrderList(params?: {}): Promise<implicitReturnType>;
|
|
765
765
|
papiDeleteListenKey(params?: {}): Promise<implicitReturnType>;
|
|
766
|
-
papiV2GetUmAccount(params?: {}): Promise<implicitReturnType>;
|
|
767
766
|
}
|
|
768
767
|
declare abstract class binance extends _binance {
|
|
769
768
|
}
|
|
@@ -815,7 +815,6 @@ interface binance {
|
|
|
815
815
|
papiDeleteMarginAllOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
816
816
|
papiDeleteMarginOrderList(params?: {}): Promise<implicitReturnType>;
|
|
817
817
|
papiDeleteListenKey(params?: {}): Promise<implicitReturnType>;
|
|
818
|
-
papiV2GetUmAccount(params?: {}): Promise<implicitReturnType>;
|
|
819
818
|
}
|
|
820
819
|
declare abstract class binance extends _binance {
|
|
821
820
|
}
|
|
@@ -763,7 +763,6 @@ interface binance {
|
|
|
763
763
|
papiDeleteMarginAllOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
764
764
|
papiDeleteMarginOrderList(params?: {}): Promise<implicitReturnType>;
|
|
765
765
|
papiDeleteListenKey(params?: {}): Promise<implicitReturnType>;
|
|
766
|
-
papiV2GetUmAccount(params?: {}): Promise<implicitReturnType>;
|
|
767
766
|
}
|
|
768
767
|
declare abstract class binance extends _binance {
|
|
769
768
|
}
|
package/js/src/ace.js
CHANGED
|
@@ -183,17 +183,20 @@ export default class ace extends Exchange {
|
|
|
183
183
|
'limit': 500,
|
|
184
184
|
'daysBack': undefined,
|
|
185
185
|
'untilDays': undefined,
|
|
186
|
+
'symbolRequired': true,
|
|
186
187
|
},
|
|
187
188
|
'fetchOrder': {
|
|
188
189
|
'marginMode': false,
|
|
189
190
|
'trigger': false,
|
|
190
191
|
'trailing': false,
|
|
192
|
+
'symbolRequired': false,
|
|
191
193
|
},
|
|
192
194
|
'fetchOpenOrders': {
|
|
193
195
|
'marginMode': false,
|
|
194
196
|
'limit': undefined,
|
|
195
197
|
'trigger': false,
|
|
196
198
|
'trailing': false,
|
|
199
|
+
'symbolRequired': false,
|
|
197
200
|
},
|
|
198
201
|
'fetchOrders': undefined,
|
|
199
202
|
'fetchClosedOrders': undefined,
|
package/js/src/alpaca.js
CHANGED
|
@@ -307,17 +307,20 @@ export default class alpaca extends Exchange {
|
|
|
307
307
|
'limit': 100,
|
|
308
308
|
'daysBack': 100000,
|
|
309
309
|
'untilDays': 100000,
|
|
310
|
+
'symbolRequired': false,
|
|
310
311
|
},
|
|
311
312
|
'fetchOrder': {
|
|
312
313
|
'marginMode': false,
|
|
313
314
|
'trigger': false,
|
|
314
315
|
'trailing': false,
|
|
316
|
+
'symbolRequired': false,
|
|
315
317
|
},
|
|
316
318
|
'fetchOpenOrders': {
|
|
317
319
|
'marginMode': false,
|
|
318
320
|
'limit': 500,
|
|
319
321
|
'trigger': false,
|
|
320
322
|
'trailing': false,
|
|
323
|
+
'symbolRequired': false,
|
|
321
324
|
},
|
|
322
325
|
'fetchOrders': {
|
|
323
326
|
'marginMode': false,
|
|
@@ -326,6 +329,7 @@ export default class alpaca extends Exchange {
|
|
|
326
329
|
'untilDays': 100000,
|
|
327
330
|
'trigger': false,
|
|
328
331
|
'trailing': false,
|
|
332
|
+
'symbolRequired': false,
|
|
329
333
|
},
|
|
330
334
|
'fetchClosedOrders': {
|
|
331
335
|
'marginMode': false,
|
|
@@ -335,6 +339,7 @@ export default class alpaca extends Exchange {
|
|
|
335
339
|
'untilDays': 100000,
|
|
336
340
|
'trigger': false,
|
|
337
341
|
'trailing': false,
|
|
342
|
+
'symbolRequired': false,
|
|
338
343
|
},
|
|
339
344
|
'fetchOHLCV': {
|
|
340
345
|
'limit': 1000,
|
|
@@ -439,7 +444,7 @@ export default class alpaca extends Exchange {
|
|
|
439
444
|
// "status": "active",
|
|
440
445
|
// "tradable": true,
|
|
441
446
|
// "marginable": false,
|
|
442
|
-
// "maintenance_margin_requirement":
|
|
447
|
+
// "maintenance_margin_requirement": 101,
|
|
443
448
|
// "shortable": false,
|
|
444
449
|
// "easy_to_borrow": false,
|
|
445
450
|
// "fractionable": true,
|
package/js/src/ascendex.js
CHANGED
|
@@ -286,7 +286,6 @@ export default class ascendex extends Exchange {
|
|
|
286
286
|
'AVAX': 'avalanche C chain',
|
|
287
287
|
'OMNI': 'Omni',
|
|
288
288
|
// 'TRC': 'TRC20',
|
|
289
|
-
'TRX': 'TRC20',
|
|
290
289
|
'TRC20': 'TRC20',
|
|
291
290
|
'ERC20': 'ERC20',
|
|
292
291
|
'GO20': 'GO20',
|
|
@@ -332,6 +331,7 @@ export default class ascendex extends Exchange {
|
|
|
332
331
|
'trigger': false,
|
|
333
332
|
'trailing': false,
|
|
334
333
|
'marketType': true,
|
|
334
|
+
'symbolRequired': false,
|
|
335
335
|
},
|
|
336
336
|
'fetchOpenOrders': {
|
|
337
337
|
'marginMode': false,
|
|
@@ -339,6 +339,7 @@ export default class ascendex extends Exchange {
|
|
|
339
339
|
'trigger': false,
|
|
340
340
|
'trailing': false,
|
|
341
341
|
'marketType': true,
|
|
342
|
+
'symbolRequired': false,
|
|
342
343
|
},
|
|
343
344
|
'fetchOrders': undefined,
|
|
344
345
|
'fetchClosedOrders': undefined,
|
|
@@ -3,7 +3,7 @@ import { // eslint-disable-line object-curly-newline
|
|
|
3
3
|
ExchangeError, AuthenticationError, DDoSProtection, RequestTimeout, ExchangeNotAvailable, RateLimitExceeded } from "./errors.js";
|
|
4
4
|
import WsClient from './ws/WsClient.js';
|
|
5
5
|
import { OrderBook as WsOrderBook, IndexedOrderBook, CountedOrderBook } from './ws/OrderBook.js';
|
|
6
|
-
import type { Market, Trade, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balance, Balances, Dictionary, Transaction, DepositAddressResponse, Currency, MinMax, IndexType, Int, OrderType, OrderSide, Position, FundingRate, DepositWithdrawFeeNetwork, LedgerEntry, BorrowInterest, OpenInterest, LeverageTier, TransferEntry, FundingRateHistory, Liquidation, FundingHistory, OrderRequest, MarginMode, Tickers, Greeks, Option, OptionChain, Str, Num, MarketInterface, CurrencyInterface, BalanceAccount, MarginModes, MarketType, Leverage, Leverages, LastPrice, LastPrices, Account, Strings, MarginModification, TradingFeeInterface, Currencies, TradingFees, Conversion, CancellationRequest, IsolatedBorrowRate, IsolatedBorrowRates, CrossBorrowRates, CrossBorrowRate, Dict, FundingRates, LeverageTiers, Bool, int, DepositAddress, LongShortRatio, OpenInterests } from './types.js';
|
|
6
|
+
import type { Market, Trade, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balance, Balances, Dictionary, Transaction, DepositAddressResponse, Currency, MinMax, IndexType, Int, OrderType, OrderSide, Position, FundingRate, DepositWithdrawFeeNetwork, LedgerEntry, BorrowInterest, OpenInterest, LeverageTier, TransferEntry, FundingRateHistory, Liquidation, FundingHistory, OrderRequest, MarginMode, Tickers, Greeks, Option, OptionChain, Str, Num, MarketInterface, CurrencyInterface, BalanceAccount, MarginModes, MarketType, Leverage, Leverages, LastPrice, LastPrices, Account, Strings, MarginModification, TradingFeeInterface, Currencies, TradingFees, Conversion, CancellationRequest, IsolatedBorrowRate, IsolatedBorrowRates, CrossBorrowRates, CrossBorrowRate, Dict, FundingRates, LeverageTiers, Bool, int, DepositAddress, LongShortRatio, OrderBooks, OpenInterests } from './types.js';
|
|
7
7
|
export type { Market, Trade, Fee, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balance, Balances, Dictionary, Transaction, DepositAddressResponse, Currency, MinMax, IndexType, Int, Bool, OrderType, OrderSide, Position, LedgerEntry, BorrowInterest, OpenInterest, LeverageTier, TransferEntry, CrossBorrowRate, FundingRateHistory, Liquidation, FundingHistory, OrderRequest, MarginMode, Tickers, Greeks, Option, OptionChain, Str, Num, MarketInterface, CurrencyInterface, BalanceAccount, MarginModes, MarketType, Leverage, Leverages, LastPrice, LastPrices, Account, Strings, Conversion, DepositAddress, LongShortRatio } from './types.js';
|
|
8
8
|
import { ArrayCache, ArrayCacheByTimestamp } from './ws/Cache.js';
|
|
9
9
|
import { OrderBook as Ob } from './ws/OrderBook.js';
|
|
@@ -822,6 +822,7 @@ export default class Exchange {
|
|
|
822
822
|
parseToInt(number: any): number;
|
|
823
823
|
parseToNumeric(number: any): number;
|
|
824
824
|
isRoundNumber(value: number): boolean;
|
|
825
|
+
safeNumberOmitZero(obj: object, key: IndexType, defaultValue?: Num): Num;
|
|
825
826
|
safeIntegerOmitZero(obj: object, key: IndexType, defaultValue?: Int): Int;
|
|
826
827
|
afterConstruct(): void;
|
|
827
828
|
featuresGenerator(): void;
|
|
@@ -964,7 +965,7 @@ export default class Exchange {
|
|
|
964
965
|
fetchLedgerEntry(id: string, code?: Str, params?: {}): Promise<LedgerEntry>;
|
|
965
966
|
parseBidAsk(bidask: any, priceKey?: IndexType, amountKey?: IndexType, countOrIdKey?: IndexType): number[];
|
|
966
967
|
safeCurrency(currencyId: Str, currency?: Currency): CurrencyInterface;
|
|
967
|
-
safeMarket(marketId
|
|
968
|
+
safeMarket(marketId?: Str, market?: Market, delimiter?: Str, marketType?: Str): MarketInterface;
|
|
968
969
|
checkRequiredCredentials(error?: boolean): boolean;
|
|
969
970
|
oath(): string;
|
|
970
971
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
@@ -1001,7 +1002,7 @@ export default class Exchange {
|
|
|
1001
1002
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
1002
1003
|
fetchMarkPrices(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
1003
1004
|
fetchTickersWs(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
1004
|
-
fetchOrderBooks(symbols?: Strings, limit?: Int, params?: {}): Promise<
|
|
1005
|
+
fetchOrderBooks(symbols?: Strings, limit?: Int, params?: {}): Promise<OrderBooks>;
|
|
1005
1006
|
watchBidsAsks(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
1006
1007
|
watchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
1007
1008
|
unWatchTickers(symbols?: Strings, params?: {}): Promise<any>;
|
|
@@ -1010,6 +1011,10 @@ export default class Exchange {
|
|
|
1010
1011
|
fetchOrderStatus(id: string, symbol?: Str, params?: {}): Promise<string>;
|
|
1011
1012
|
fetchUnifiedOrder(order: any, params?: {}): Promise<Order>;
|
|
1012
1013
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
1014
|
+
createConvertTrade(id: string, fromCode: string, toCode: string, amount?: Num, params?: {}): Promise<Conversion>;
|
|
1015
|
+
fetchConvertTrade(id: string, code?: Str, params?: {}): Promise<Conversion>;
|
|
1016
|
+
fetchConvertTradeHistory(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Conversion[]>;
|
|
1017
|
+
fetchPositionMode(symbol?: Str, params?: {}): Promise<{}>;
|
|
1013
1018
|
createTrailingAmountOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, trailingAmount?: any, trailingTriggerPrice?: any, params?: {}): Promise<Order>;
|
|
1014
1019
|
createTrailingAmountOrderWs(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, trailingAmount?: any, trailingTriggerPrice?: any, params?: {}): Promise<Order>;
|
|
1015
1020
|
createTrailingPercentOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, trailingPercent?: any, trailingTriggerPrice?: any, params?: {}): Promise<Order>;
|
|
@@ -1128,6 +1133,7 @@ export default class Exchange {
|
|
|
1128
1133
|
parseFundingRates(response: any, symbols?: Strings): FundingRates;
|
|
1129
1134
|
parseLongShortRatio(info: Dict, market?: Market): LongShortRatio;
|
|
1130
1135
|
parseLongShortRatioHistory(response: any, market?: any, since?: Int, limit?: Int): LongShortRatio[];
|
|
1136
|
+
handleTriggerDirectionAndParams(params: any, exchangeSpecificKey?: Str, allowEmpty?: Bool): any[];
|
|
1131
1137
|
handleTriggerAndParams(params: any): any[];
|
|
1132
1138
|
isTriggerOrder(params: any): any[];
|
|
1133
1139
|
isPostOnly(isMarketOrder: boolean, exchangeSpecificParam: any, params?: {}): boolean;
|