ccxt 4.4.30 → 4.4.32
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 +9 -3
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +123 -123
- package/dist/cjs/src/alpaca.js +237 -237
- package/dist/cjs/src/ascendex.js +342 -341
- package/dist/cjs/src/bigone.js +242 -242
- package/dist/cjs/src/binance.js +1339 -1291
- package/dist/cjs/src/bingx.js +639 -639
- package/dist/cjs/src/bit2c.js +111 -111
- package/dist/cjs/src/bitbank.js +142 -142
- package/dist/cjs/src/bitbns.js +140 -140
- package/dist/cjs/src/bitfinex.js +231 -231
- package/dist/cjs/src/bitfinex2.js +403 -403
- package/dist/cjs/src/bitflyer.js +184 -184
- package/dist/cjs/src/bitget.js +848 -846
- package/dist/cjs/src/bithumb.js +125 -124
- package/dist/cjs/src/bitmart.js +525 -525
- package/dist/cjs/src/bitmex.js +317 -317
- package/dist/cjs/src/bitopro.js +221 -221
- package/dist/cjs/src/bitrue.js +315 -315
- package/dist/cjs/src/bitso.js +220 -220
- package/dist/cjs/src/bitstamp.js +251 -251
- package/dist/cjs/src/bitteam.js +183 -183
- package/dist/cjs/src/bitvavo.js +247 -251
- package/dist/cjs/src/bl3p.js +82 -82
- package/dist/cjs/src/blockchaincom.js +211 -211
- package/dist/cjs/src/blofin.js +332 -331
- package/dist/cjs/src/btcalpha.js +166 -166
- package/dist/cjs/src/btcbox.js +108 -108
- package/dist/cjs/src/btcmarkets.js +198 -198
- package/dist/cjs/src/btcturk.js +124 -124
- package/dist/cjs/src/bybit.js +906 -900
- package/dist/cjs/src/cex.js +227 -226
- package/dist/cjs/src/coinbase.js +481 -481
- package/dist/cjs/src/coinbaseexchange.js +274 -274
- package/dist/cjs/src/coinbaseinternational.js +304 -304
- package/dist/cjs/src/coincatch.js +650 -650
- package/dist/cjs/src/coincheck.js +113 -113
- package/dist/cjs/src/coinex.js +611 -601
- package/dist/cjs/src/coinlist.js +304 -303
- package/dist/cjs/src/coinmate.js +162 -161
- package/dist/cjs/src/coinmetro.js +187 -187
- package/dist/cjs/src/coinone.js +124 -123
- package/dist/cjs/src/coinsph.js +237 -237
- package/dist/cjs/src/coinspot.js +82 -82
- package/dist/cjs/src/cryptocom.js +342 -341
- package/dist/cjs/src/currencycom.js +225 -224
- package/dist/cjs/src/delta.js +320 -320
- package/dist/cjs/src/deribit.js +411 -408
- package/dist/cjs/src/digifinex.js +432 -431
- package/dist/cjs/src/exmo.js +328 -327
- package/dist/cjs/src/gate.js +830 -791
- package/dist/cjs/src/gemini.js +199 -198
- package/dist/cjs/src/hashkey.js +520 -517
- package/dist/cjs/src/hitbtc.js +465 -462
- package/dist/cjs/src/hollaex.js +253 -252
- package/dist/cjs/src/htx.js +791 -848
- package/dist/cjs/src/huobijp.js +219 -218
- package/dist/cjs/src/hyperliquid.js +421 -417
- package/dist/cjs/src/idex.js +238 -237
- package/dist/cjs/src/independentreserve.js +133 -132
- package/dist/cjs/src/indodax.js +177 -171
- package/dist/cjs/src/kraken.js +381 -377
- package/dist/cjs/src/krakenfutures.js +285 -279
- package/dist/cjs/src/kucoin.js +632 -622
- package/dist/cjs/src/kucoinfutures.js +533 -457
- package/dist/cjs/src/kuna.js +283 -282
- package/dist/cjs/src/latoken.js +211 -210
- package/dist/cjs/src/lbank.js +268 -267
- package/dist/cjs/src/luno.js +174 -173
- package/dist/cjs/src/lykke.js +172 -171
- package/dist/cjs/src/mercado.js +123 -122
- package/dist/cjs/src/mexc.js +650 -646
- package/dist/cjs/src/ndax.js +229 -228
- package/dist/cjs/src/novadax.js +230 -229
- package/dist/cjs/src/oceanex.js +187 -186
- package/dist/cjs/src/okcoin.js +286 -285
- package/dist/cjs/src/okx.js +909 -904
- package/dist/cjs/src/onetrading.js +218 -218
- package/dist/cjs/src/oxfun.js +335 -334
- package/dist/cjs/src/p2b.js +154 -154
- package/dist/cjs/src/paradex.js +249 -244
- package/dist/cjs/src/paymium.js +101 -101
- package/dist/cjs/src/phemex.js +388 -390
- package/dist/cjs/src/poloniex.js +270 -270
- package/dist/cjs/src/poloniexfutures.js +250 -250
- package/dist/cjs/src/pro/alpaca.js +64 -64
- package/dist/cjs/src/pro/ascendex.js +64 -64
- package/dist/cjs/src/pro/binance.js +546 -543
- package/dist/cjs/src/pro/bingx.js +116 -116
- package/dist/cjs/src/pro/bitfinex.js +42 -42
- package/dist/cjs/src/pro/bitfinex2.js +66 -66
- package/dist/cjs/src/pro/bitget.js +188 -181
- package/dist/cjs/src/pro/bithumb.js +40 -40
- package/dist/cjs/src/pro/bitmart.js +121 -119
- package/dist/cjs/src/pro/bitmex.js +135 -133
- package/dist/cjs/src/pro/bitopro.js +49 -49
- package/dist/cjs/src/pro/bitrue.js +19 -19
- package/dist/cjs/src/pro/bitstamp.js +29 -29
- package/dist/cjs/src/pro/bitvavo.js +299 -301
- package/dist/cjs/src/pro/blockchaincom.js +62 -62
- package/dist/cjs/src/pro/blofin.js +132 -130
- package/dist/cjs/src/pro/bybit.js +317 -313
- package/dist/cjs/src/pro/cex.js +168 -168
- package/dist/cjs/src/pro/coinbase.js +93 -91
- package/dist/cjs/src/pro/coinbaseexchange.js +95 -95
- package/dist/cjs/src/pro/coinbaseinternational.js +111 -111
- package/dist/cjs/src/pro/coincatch.js +150 -143
- package/dist/cjs/src/pro/coincheck.js +21 -21
- package/dist/cjs/src/pro/coinex.js +110 -110
- package/dist/cjs/src/pro/coinone.js +30 -30
- package/dist/cjs/src/pro/cryptocom.js +227 -227
- package/dist/cjs/src/pro/currencycom.js +45 -45
- package/dist/cjs/src/pro/deribit.js +127 -127
- package/dist/cjs/src/pro/exmo.js +66 -66
- package/dist/cjs/src/pro/gate.js +287 -283
- package/dist/cjs/src/pro/gemini.js +74 -74
- package/dist/cjs/src/pro/hashkey.js +87 -85
- package/dist/cjs/src/pro/hitbtc.js +190 -190
- package/dist/cjs/src/pro/hollaex.js +51 -51
- package/dist/cjs/src/pro/htx.js +96 -94
- package/dist/cjs/src/pro/huobijp.js +38 -38
- package/dist/cjs/src/pro/hyperliquid.js +151 -150
- package/dist/cjs/src/pro/idex.js +48 -48
- package/dist/cjs/src/pro/independentreserve.js +19 -19
- package/dist/cjs/src/pro/kraken.js +167 -167
- package/dist/cjs/src/pro/krakenfutures.js +137 -138
- package/dist/cjs/src/pro/kucoin.js +167 -168
- package/dist/cjs/src/pro/kucoinfutures.js +147 -147
- package/dist/cjs/src/pro/lbank.js +95 -95
- package/dist/cjs/src/pro/luno.js +21 -21
- package/dist/cjs/src/pro/mexc.js +102 -103
- package/dist/cjs/src/pro/ndax.js +42 -42
- package/dist/cjs/src/pro/okcoin.js +61 -61
- package/dist/cjs/src/pro/okx.js +332 -330
- package/dist/cjs/src/pro/onetrading.js +71 -71
- package/dist/cjs/src/pro/oxfun.js +193 -191
- package/dist/cjs/src/pro/p2b.js +77 -77
- package/dist/cjs/src/pro/paradex.js +39 -39
- package/dist/cjs/src/pro/phemex.js +94 -94
- package/dist/cjs/src/pro/poloniex.js +171 -171
- package/dist/cjs/src/pro/poloniexfutures.js +62 -62
- package/dist/cjs/src/pro/probit.js +63 -63
- package/dist/cjs/src/pro/upbit.js +80 -80
- package/dist/cjs/src/pro/vertex.js +65 -63
- package/dist/cjs/src/pro/wazirx.js +70 -70
- package/dist/cjs/src/pro/whitebit.js +83 -83
- package/dist/cjs/src/pro/woo.js +106 -104
- package/dist/cjs/src/pro/woofipro.js +105 -103
- package/dist/cjs/src/pro/xt.js +119 -119
- package/dist/cjs/src/probit.js +229 -229
- package/dist/cjs/src/timex.js +198 -197
- package/dist/cjs/src/tokocrypto.js +214 -213
- package/dist/cjs/src/tradeogre.js +92 -91
- package/dist/cjs/src/upbit.js +243 -242
- package/dist/cjs/src/vertex.js +258 -258
- package/dist/cjs/src/wavesexchange.js +176 -172
- package/dist/cjs/src/wazirx.js +168 -168
- package/dist/cjs/src/whitebit.js +361 -361
- package/dist/cjs/src/woo.js +571 -572
- package/dist/cjs/src/woofipro.js +392 -391
- package/dist/cjs/src/xt.js +436 -435
- package/dist/cjs/src/yobit.js +159 -158
- package/dist/cjs/src/zaif.js +103 -103
- package/dist/cjs/src/zonda.js +168 -168
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/ace.d.ts +123 -0
- package/js/src/ace.js +123 -123
- package/js/src/alpaca.d.ts +237 -0
- package/js/src/alpaca.js +237 -237
- package/js/src/ascendex.d.ts +339 -0
- package/js/src/ascendex.js +342 -341
- package/js/src/base/types.d.ts +1 -0
- package/js/src/bigone.d.ts +242 -0
- package/js/src/bigone.js +242 -242
- package/js/src/binance.d.ts +1306 -0
- package/js/src/binance.js +1339 -1291
- package/js/src/bingx.d.ts +639 -0
- package/js/src/bingx.js +639 -639
- package/js/src/bit2c.d.ts +111 -0
- package/js/src/bit2c.js +111 -111
- package/js/src/bitbank.d.ts +142 -0
- package/js/src/bitbank.js +142 -142
- package/js/src/bitbns.d.ts +140 -0
- package/js/src/bitbns.js +140 -140
- package/js/src/bitfinex.d.ts +231 -0
- package/js/src/bitfinex.js +231 -231
- package/js/src/bitfinex2.d.ts +403 -0
- package/js/src/bitfinex2.js +403 -403
- package/js/src/bitflyer.d.ts +184 -0
- package/js/src/bitflyer.js +184 -184
- package/js/src/bitget.d.ts +846 -0
- package/js/src/bitget.js +848 -846
- package/js/src/bithumb.d.ts +125 -0
- package/js/src/bithumb.js +125 -124
- package/js/src/bitmart.d.ts +525 -0
- package/js/src/bitmart.js +525 -525
- package/js/src/bitmex.d.ts +317 -0
- package/js/src/bitmex.js +317 -317
- package/js/src/bitopro.d.ts +221 -0
- package/js/src/bitopro.js +221 -221
- package/js/src/bitrue.d.ts +315 -0
- package/js/src/bitrue.js +315 -315
- package/js/src/bitso.d.ts +220 -0
- package/js/src/bitso.js +220 -220
- package/js/src/bitstamp.d.ts +251 -0
- package/js/src/bitstamp.js +251 -251
- package/js/src/bitteam.d.ts +183 -0
- package/js/src/bitteam.js +183 -183
- package/js/src/bitvavo.d.ts +247 -0
- package/js/src/bitvavo.js +247 -251
- package/js/src/bl3p.d.ts +82 -0
- package/js/src/bl3p.js +82 -82
- package/js/src/blockchaincom.d.ts +211 -0
- package/js/src/blockchaincom.js +211 -211
- package/js/src/blofin.d.ts +332 -0
- package/js/src/blofin.js +332 -331
- package/js/src/btcalpha.d.ts +166 -0
- package/js/src/btcalpha.js +166 -166
- package/js/src/btcbox.d.ts +108 -0
- package/js/src/btcbox.js +108 -108
- package/js/src/btcmarkets.d.ts +198 -0
- package/js/src/btcmarkets.js +198 -198
- package/js/src/btcturk.d.ts +124 -0
- package/js/src/btcturk.js +124 -124
- package/js/src/bybit.d.ts +906 -1
- package/js/src/bybit.js +906 -900
- package/js/src/cex.d.ts +227 -0
- package/js/src/cex.js +227 -226
- package/js/src/coinbase.d.ts +481 -0
- package/js/src/coinbase.js +481 -481
- package/js/src/coinbaseexchange.d.ts +274 -0
- package/js/src/coinbaseexchange.js +274 -274
- package/js/src/coinbaseinternational.d.ts +304 -0
- package/js/src/coinbaseinternational.js +304 -304
- package/js/src/coincatch.d.ts +646 -0
- package/js/src/coincatch.js +650 -650
- package/js/src/coincheck.d.ts +113 -0
- package/js/src/coincheck.js +113 -113
- package/js/src/coinex.d.ts +603 -0
- package/js/src/coinex.js +611 -601
- package/js/src/coinlist.d.ts +304 -0
- package/js/src/coinlist.js +304 -303
- package/js/src/coinmate.d.ts +162 -0
- package/js/src/coinmate.js +162 -161
- package/js/src/coinmetro.d.ts +187 -0
- package/js/src/coinmetro.js +187 -187
- package/js/src/coinone.d.ts +124 -0
- package/js/src/coinone.js +124 -123
- package/js/src/coinsph.d.ts +237 -0
- package/js/src/coinsph.js +237 -237
- package/js/src/coinspot.d.ts +82 -0
- package/js/src/coinspot.js +82 -82
- package/js/src/cryptocom.d.ts +342 -0
- package/js/src/cryptocom.js +342 -341
- package/js/src/currencycom.d.ts +225 -0
- package/js/src/currencycom.js +225 -224
- package/js/src/delta.d.ts +320 -0
- package/js/src/delta.js +320 -320
- package/js/src/deribit.d.ts +411 -0
- package/js/src/deribit.js +411 -408
- package/js/src/digifinex.d.ts +430 -0
- package/js/src/digifinex.js +432 -431
- package/js/src/exmo.d.ts +328 -0
- package/js/src/exmo.js +328 -327
- package/js/src/gate.d.ts +803 -1
- package/js/src/gate.js +830 -791
- package/js/src/gemini.d.ts +199 -0
- package/js/src/gemini.js +199 -198
- package/js/src/hashkey.d.ts +516 -0
- package/js/src/hashkey.js +520 -517
- package/js/src/hitbtc.d.ts +465 -0
- package/js/src/hitbtc.js +465 -462
- package/js/src/hollaex.d.ts +253 -0
- package/js/src/hollaex.js +253 -252
- package/js/src/htx.d.ts +765 -2
- package/js/src/htx.js +791 -848
- package/js/src/huobijp.d.ts +219 -0
- package/js/src/huobijp.js +219 -218
- package/js/src/hyperliquid.d.ts +419 -0
- package/js/src/hyperliquid.js +421 -417
- package/js/src/idex.d.ts +238 -0
- package/js/src/idex.js +238 -237
- package/js/src/independentreserve.d.ts +133 -0
- package/js/src/independentreserve.js +133 -132
- package/js/src/indodax.d.ts +171 -0
- package/js/src/indodax.js +177 -171
- package/js/src/kraken.d.ts +381 -0
- package/js/src/kraken.js +381 -377
- package/js/src/krakenfutures.d.ts +282 -0
- package/js/src/krakenfutures.js +285 -279
- package/js/src/kucoin.d.ts +613 -0
- package/js/src/kucoin.js +632 -622
- package/js/src/kucoinfutures.d.ts +441 -0
- package/js/src/kucoinfutures.js +533 -457
- package/js/src/kuna.d.ts +283 -0
- package/js/src/kuna.js +283 -282
- package/js/src/latoken.d.ts +211 -0
- package/js/src/latoken.js +211 -210
- package/js/src/lbank.d.ts +268 -0
- package/js/src/lbank.js +268 -267
- package/js/src/luno.d.ts +174 -0
- package/js/src/luno.js +174 -173
- package/js/src/lykke.d.ts +172 -0
- package/js/src/lykke.js +172 -171
- package/js/src/mercado.d.ts +123 -0
- package/js/src/mercado.js +123 -122
- package/js/src/mexc.d.ts +647 -0
- package/js/src/mexc.js +650 -646
- package/js/src/ndax.d.ts +229 -0
- package/js/src/ndax.js +229 -228
- package/js/src/novadax.d.ts +230 -0
- package/js/src/novadax.js +230 -229
- package/js/src/oceanex.d.ts +187 -0
- package/js/src/oceanex.js +187 -186
- package/js/src/okcoin.d.ts +286 -0
- package/js/src/okcoin.js +286 -285
- package/js/src/okx.d.ts +907 -0
- package/js/src/okx.js +909 -904
- package/js/src/onetrading.d.ts +218 -0
- package/js/src/onetrading.js +218 -218
- package/js/src/oxfun.d.ts +336 -3
- package/js/src/oxfun.js +335 -334
- package/js/src/p2b.d.ts +154 -0
- package/js/src/p2b.js +154 -154
- package/js/src/paradex.d.ts +241 -0
- package/js/src/paradex.js +249 -244
- package/js/src/paymium.d.ts +101 -0
- package/js/src/paymium.js +101 -101
- package/js/src/phemex.d.ts +366 -0
- package/js/src/phemex.js +388 -390
- package/js/src/poloniex.d.ts +270 -0
- package/js/src/poloniex.js +270 -270
- package/js/src/poloniexfutures.d.ts +250 -0
- package/js/src/poloniexfutures.js +250 -250
- package/js/src/pro/alpaca.d.ts +64 -0
- package/js/src/pro/alpaca.js +64 -64
- package/js/src/pro/ascendex.d.ts +64 -0
- package/js/src/pro/ascendex.js +64 -64
- package/js/src/pro/binance.d.ts +546 -0
- package/js/src/pro/binance.js +546 -543
- package/js/src/pro/bingx.d.ts +116 -0
- package/js/src/pro/bingx.js +116 -116
- package/js/src/pro/bitfinex.d.ts +42 -0
- package/js/src/pro/bitfinex.js +42 -42
- package/js/src/pro/bitfinex2.d.ts +66 -0
- package/js/src/pro/bitfinex2.js +66 -66
- package/js/src/pro/bitget.d.ts +187 -0
- package/js/src/pro/bitget.js +188 -181
- package/js/src/pro/bithumb.d.ts +40 -0
- package/js/src/pro/bithumb.js +40 -40
- package/js/src/pro/bitmart.d.ts +121 -0
- package/js/src/pro/bitmart.js +121 -119
- package/js/src/pro/bitmex.d.ts +135 -0
- package/js/src/pro/bitmex.js +135 -133
- package/js/src/pro/bitopro.d.ts +49 -0
- package/js/src/pro/bitopro.js +49 -49
- package/js/src/pro/bitrue.d.ts +19 -0
- package/js/src/pro/bitrue.js +19 -19
- package/js/src/pro/bitstamp.d.ts +29 -0
- package/js/src/pro/bitstamp.js +29 -29
- package/js/src/pro/bitvavo.d.ts +254 -1
- package/js/src/pro/bitvavo.js +299 -301
- package/js/src/pro/blockchaincom.d.ts +62 -0
- package/js/src/pro/blockchaincom.js +62 -62
- package/js/src/pro/blofin.d.ts +132 -0
- package/js/src/pro/blofin.js +132 -130
- package/js/src/pro/bybit.d.ts +317 -0
- package/js/src/pro/bybit.js +317 -313
- package/js/src/pro/cex.d.ts +168 -0
- package/js/src/pro/cex.js +168 -168
- package/js/src/pro/coinbase.d.ts +93 -0
- package/js/src/pro/coinbase.js +93 -91
- package/js/src/pro/coinbaseexchange.d.ts +95 -0
- package/js/src/pro/coinbaseexchange.js +95 -95
- package/js/src/pro/coinbaseinternational.d.ts +111 -0
- package/js/src/pro/coinbaseinternational.js +111 -111
- package/js/src/pro/coincatch.d.ts +150 -0
- package/js/src/pro/coincatch.js +150 -143
- package/js/src/pro/coincheck.d.ts +21 -0
- package/js/src/pro/coincheck.js +21 -21
- package/js/src/pro/coinex.d.ts +110 -0
- package/js/src/pro/coinex.js +110 -110
- package/js/src/pro/coinone.d.ts +30 -0
- package/js/src/pro/coinone.js +30 -30
- package/js/src/pro/cryptocom.d.ts +227 -0
- package/js/src/pro/cryptocom.js +227 -227
- package/js/src/pro/currencycom.d.ts +45 -0
- package/js/src/pro/currencycom.js +45 -45
- package/js/src/pro/deribit.d.ts +127 -0
- package/js/src/pro/deribit.js +127 -127
- package/js/src/pro/exmo.d.ts +66 -0
- package/js/src/pro/exmo.js +66 -66
- package/js/src/pro/gate.d.ts +287 -0
- package/js/src/pro/gate.js +287 -283
- package/js/src/pro/gemini.d.ts +74 -0
- package/js/src/pro/gemini.js +74 -74
- package/js/src/pro/hashkey.d.ts +87 -0
- package/js/src/pro/hashkey.js +87 -85
- package/js/src/pro/hitbtc.d.ts +190 -0
- package/js/src/pro/hitbtc.js +190 -190
- package/js/src/pro/hollaex.d.ts +51 -0
- package/js/src/pro/hollaex.js +51 -51
- package/js/src/pro/htx.d.ts +96 -0
- package/js/src/pro/htx.js +96 -94
- package/js/src/pro/huobijp.d.ts +38 -0
- package/js/src/pro/huobijp.js +38 -38
- package/js/src/pro/hyperliquid.d.ts +151 -0
- package/js/src/pro/hyperliquid.js +151 -150
- package/js/src/pro/idex.d.ts +48 -0
- package/js/src/pro/idex.js +48 -48
- package/js/src/pro/independentreserve.d.ts +19 -0
- package/js/src/pro/independentreserve.js +19 -19
- package/js/src/pro/kraken.d.ts +167 -0
- package/js/src/pro/kraken.js +167 -167
- package/js/src/pro/krakenfutures.d.ts +137 -0
- package/js/src/pro/krakenfutures.js +137 -138
- package/js/src/pro/kucoin.d.ts +167 -0
- package/js/src/pro/kucoin.js +167 -168
- package/js/src/pro/kucoinfutures.d.ts +147 -0
- package/js/src/pro/kucoinfutures.js +147 -147
- package/js/src/pro/lbank.d.ts +95 -0
- package/js/src/pro/lbank.js +95 -95
- package/js/src/pro/luno.d.ts +21 -0
- package/js/src/pro/luno.js +21 -21
- package/js/src/pro/mexc.d.ts +101 -0
- package/js/src/pro/mexc.js +102 -103
- package/js/src/pro/ndax.d.ts +42 -0
- package/js/src/pro/ndax.js +42 -42
- package/js/src/pro/okcoin.d.ts +61 -0
- package/js/src/pro/okcoin.js +61 -61
- package/js/src/pro/okx.d.ts +332 -0
- package/js/src/pro/okx.js +332 -330
- package/js/src/pro/onetrading.d.ts +71 -0
- package/js/src/pro/onetrading.js +71 -71
- package/js/src/pro/oxfun.d.ts +193 -0
- package/js/src/pro/oxfun.js +193 -191
- package/js/src/pro/p2b.d.ts +77 -0
- package/js/src/pro/p2b.js +77 -77
- package/js/src/pro/paradex.d.ts +39 -0
- package/js/src/pro/paradex.js +39 -39
- package/js/src/pro/phemex.d.ts +94 -0
- package/js/src/pro/phemex.js +94 -94
- package/js/src/pro/poloniex.d.ts +171 -0
- package/js/src/pro/poloniex.js +171 -171
- package/js/src/pro/poloniexfutures.d.ts +62 -0
- package/js/src/pro/poloniexfutures.js +62 -62
- package/js/src/pro/probit.d.ts +63 -0
- package/js/src/pro/probit.js +63 -63
- package/js/src/pro/upbit.d.ts +80 -0
- package/js/src/pro/upbit.js +80 -80
- package/js/src/pro/vertex.d.ts +65 -0
- package/js/src/pro/vertex.js +65 -63
- package/js/src/pro/wazirx.d.ts +70 -0
- package/js/src/pro/wazirx.js +70 -70
- package/js/src/pro/whitebit.d.ts +83 -0
- package/js/src/pro/whitebit.js +83 -83
- package/js/src/pro/woo.d.ts +106 -0
- package/js/src/pro/woo.js +106 -104
- package/js/src/pro/woofipro.d.ts +105 -0
- package/js/src/pro/woofipro.js +105 -103
- package/js/src/pro/xt.d.ts +119 -0
- package/js/src/pro/xt.js +119 -119
- package/js/src/probit.d.ts +229 -0
- package/js/src/probit.js +229 -229
- package/js/src/timex.d.ts +198 -0
- package/js/src/timex.js +198 -197
- package/js/src/tokocrypto.d.ts +214 -0
- package/js/src/tokocrypto.js +214 -213
- package/js/src/tradeogre.d.ts +92 -0
- package/js/src/tradeogre.js +92 -91
- package/js/src/upbit.d.ts +243 -0
- package/js/src/upbit.js +243 -242
- package/js/src/vertex.d.ts +258 -0
- package/js/src/vertex.js +258 -258
- package/js/src/wavesexchange.d.ts +176 -0
- package/js/src/wavesexchange.js +176 -172
- package/js/src/wazirx.d.ts +168 -0
- package/js/src/wazirx.js +168 -168
- package/js/src/whitebit.d.ts +361 -0
- package/js/src/whitebit.js +361 -361
- package/js/src/woo.d.ts +571 -0
- package/js/src/woo.js +571 -572
- package/js/src/woofipro.d.ts +392 -0
- package/js/src/woofipro.js +392 -391
- package/js/src/xt.d.ts +439 -4
- package/js/src/xt.js +436 -435
- package/js/src/yobit.d.ts +159 -0
- package/js/src/yobit.js +159 -158
- package/js/src/zaif.d.ts +103 -0
- package/js/src/zaif.js +103 -103
- package/js/src/zonda.d.ts +168 -0
- package/js/src/zonda.js +168 -168
- package/package.json +1 -1
package/dist/cjs/src/delta.js
CHANGED
|
@@ -320,27 +320,27 @@ class delta extends delta$1 {
|
|
|
320
320
|
}
|
|
321
321
|
return super.safeMarket(marketId, market, delimiter, marketType);
|
|
322
322
|
}
|
|
323
|
+
/**
|
|
324
|
+
* @method
|
|
325
|
+
* @name delta#fetchTime
|
|
326
|
+
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
327
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
328
|
+
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
329
|
+
*/
|
|
323
330
|
async fetchTime(params = {}) {
|
|
324
|
-
/**
|
|
325
|
-
* @method
|
|
326
|
-
* @name delta#fetchTime
|
|
327
|
-
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
328
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
329
|
-
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
330
|
-
*/
|
|
331
331
|
const response = await this.publicGetSettings(params);
|
|
332
332
|
// full response sample under `fetchStatus`
|
|
333
333
|
const result = this.safeDict(response, 'result', {});
|
|
334
334
|
return this.safeIntegerProduct(result, 'server_time', 0.001);
|
|
335
335
|
}
|
|
336
|
+
/**
|
|
337
|
+
* @method
|
|
338
|
+
* @name delta#fetchStatus
|
|
339
|
+
* @description the latest known information on the availability of the exchange API
|
|
340
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
341
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
342
|
+
*/
|
|
336
343
|
async fetchStatus(params = {}) {
|
|
337
|
-
/**
|
|
338
|
-
* @method
|
|
339
|
-
* @name delta#fetchStatus
|
|
340
|
-
* @description the latest known information on the availability of the exchange API
|
|
341
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
342
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
343
|
-
*/
|
|
344
344
|
const response = await this.publicGetSettings(params);
|
|
345
345
|
//
|
|
346
346
|
// {
|
|
@@ -407,15 +407,15 @@ class delta extends delta$1 {
|
|
|
407
407
|
'info': response,
|
|
408
408
|
};
|
|
409
409
|
}
|
|
410
|
+
/**
|
|
411
|
+
* @method
|
|
412
|
+
* @name delta#fetchCurrencies
|
|
413
|
+
* @description fetches all available currencies on an exchange
|
|
414
|
+
* @see https://docs.delta.exchange/#get-list-of-all-assets
|
|
415
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
416
|
+
* @returns {object} an associative dictionary of currencies
|
|
417
|
+
*/
|
|
410
418
|
async fetchCurrencies(params = {}) {
|
|
411
|
-
/**
|
|
412
|
-
* @method
|
|
413
|
-
* @name delta#fetchCurrencies
|
|
414
|
-
* @description fetches all available currencies on an exchange
|
|
415
|
-
* @see https://docs.delta.exchange/#get-list-of-all-assets
|
|
416
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
417
|
-
* @returns {object} an associative dictionary of currencies
|
|
418
|
-
*/
|
|
419
419
|
const response = await this.publicGetAssets(params);
|
|
420
420
|
//
|
|
421
421
|
// {
|
|
@@ -511,15 +511,15 @@ class delta extends delta$1 {
|
|
|
511
511
|
}
|
|
512
512
|
return result;
|
|
513
513
|
}
|
|
514
|
+
/**
|
|
515
|
+
* @method
|
|
516
|
+
* @name delta#fetchMarkets
|
|
517
|
+
* @description retrieves data on all markets for delta
|
|
518
|
+
* @see https://docs.delta.exchange/#get-list-of-products
|
|
519
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
520
|
+
* @returns {object[]} an array of objects representing market data
|
|
521
|
+
*/
|
|
514
522
|
async fetchMarkets(params = {}) {
|
|
515
|
-
/**
|
|
516
|
-
* @method
|
|
517
|
-
* @name delta#fetchMarkets
|
|
518
|
-
* @description retrieves data on all markets for delta
|
|
519
|
-
* @see https://docs.delta.exchange/#get-list-of-products
|
|
520
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
521
|
-
* @returns {object[]} an array of objects representing market data
|
|
522
|
-
*/
|
|
523
523
|
const response = await this.publicGetProducts(params);
|
|
524
524
|
//
|
|
525
525
|
// {
|
|
@@ -970,16 +970,16 @@ class delta extends delta$1 {
|
|
|
970
970
|
'info': ticker,
|
|
971
971
|
}, market);
|
|
972
972
|
}
|
|
973
|
+
/**
|
|
974
|
+
* @method
|
|
975
|
+
* @name delta#fetchTicker
|
|
976
|
+
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
977
|
+
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
978
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
979
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
980
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
981
|
+
*/
|
|
973
982
|
async fetchTicker(symbol, params = {}) {
|
|
974
|
-
/**
|
|
975
|
-
* @method
|
|
976
|
-
* @name delta#fetchTicker
|
|
977
|
-
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
978
|
-
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
979
|
-
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
980
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
981
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
982
|
-
*/
|
|
983
983
|
await this.loadMarkets();
|
|
984
984
|
const market = this.market(symbol);
|
|
985
985
|
const request = {
|
|
@@ -1113,16 +1113,16 @@ class delta extends delta$1 {
|
|
|
1113
1113
|
const result = this.safeDict(response, 'result', {});
|
|
1114
1114
|
return this.parseTicker(result, market);
|
|
1115
1115
|
}
|
|
1116
|
+
/**
|
|
1117
|
+
* @method
|
|
1118
|
+
* @name delta#fetchTickers
|
|
1119
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1120
|
+
* @see https://docs.delta.exchange/#get-tickers-for-products
|
|
1121
|
+
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1122
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1123
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1124
|
+
*/
|
|
1116
1125
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
1117
|
-
/**
|
|
1118
|
-
* @method
|
|
1119
|
-
* @name delta#fetchTickers
|
|
1120
|
-
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1121
|
-
* @see https://docs.delta.exchange/#get-tickers-for-products
|
|
1122
|
-
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1123
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1124
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1125
|
-
*/
|
|
1126
1126
|
await this.loadMarkets();
|
|
1127
1127
|
symbols = this.marketSymbols(symbols);
|
|
1128
1128
|
const response = await this.publicGetTickers(params);
|
|
@@ -1265,17 +1265,17 @@ class delta extends delta$1 {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
return this.filterByArrayTickers(result, 'symbol', symbols);
|
|
1267
1267
|
}
|
|
1268
|
+
/**
|
|
1269
|
+
* @method
|
|
1270
|
+
* @name delta#fetchOrderBook
|
|
1271
|
+
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1272
|
+
* @see https://docs.delta.exchange/#get-l2-orderbook
|
|
1273
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1274
|
+
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1275
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1276
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1277
|
+
*/
|
|
1268
1278
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1269
|
-
/**
|
|
1270
|
-
* @method
|
|
1271
|
-
* @name delta#fetchOrderBook
|
|
1272
|
-
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1273
|
-
* @see https://docs.delta.exchange/#get-l2-orderbook
|
|
1274
|
-
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1275
|
-
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1276
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1277
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1278
|
-
*/
|
|
1279
1279
|
await this.loadMarkets();
|
|
1280
1280
|
const market = this.market(symbol);
|
|
1281
1281
|
const request = {
|
|
@@ -1406,18 +1406,18 @@ class delta extends delta$1 {
|
|
|
1406
1406
|
'info': trade,
|
|
1407
1407
|
}, market);
|
|
1408
1408
|
}
|
|
1409
|
+
/**
|
|
1410
|
+
* @method
|
|
1411
|
+
* @name delta#fetchTrades
|
|
1412
|
+
* @description get the list of most recent trades for a particular symbol
|
|
1413
|
+
* @see https://docs.delta.exchange/#get-public-trades
|
|
1414
|
+
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1415
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1416
|
+
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1417
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1418
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1419
|
+
*/
|
|
1409
1420
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
1410
|
-
/**
|
|
1411
|
-
* @method
|
|
1412
|
-
* @name delta#fetchTrades
|
|
1413
|
-
* @description get the list of most recent trades for a particular symbol
|
|
1414
|
-
* @see https://docs.delta.exchange/#get-public-trades
|
|
1415
|
-
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1416
|
-
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1417
|
-
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1418
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1419
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1420
|
-
*/
|
|
1421
1421
|
await this.loadMarkets();
|
|
1422
1422
|
const market = this.market(symbol);
|
|
1423
1423
|
const request = {
|
|
@@ -1462,19 +1462,19 @@ class delta extends delta$1 {
|
|
|
1462
1462
|
this.safeNumber(ohlcv, 'volume'),
|
|
1463
1463
|
];
|
|
1464
1464
|
}
|
|
1465
|
+
/**
|
|
1466
|
+
* @method
|
|
1467
|
+
* @name delta#fetchOHLCV
|
|
1468
|
+
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
1469
|
+
* @see https://docs.delta.exchange/#get-ohlc-candles
|
|
1470
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
1471
|
+
* @param {string} timeframe the length of time each candle represents
|
|
1472
|
+
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1473
|
+
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1474
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1475
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1476
|
+
*/
|
|
1465
1477
|
async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
|
|
1466
|
-
/**
|
|
1467
|
-
* @method
|
|
1468
|
-
* @name delta#fetchOHLCV
|
|
1469
|
-
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
1470
|
-
* @see https://docs.delta.exchange/#get-ohlc-candles
|
|
1471
|
-
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
1472
|
-
* @param {string} timeframe the length of time each candle represents
|
|
1473
|
-
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1474
|
-
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1475
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1476
|
-
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1477
|
-
*/
|
|
1478
1478
|
await this.loadMarkets();
|
|
1479
1479
|
const market = this.market(symbol);
|
|
1480
1480
|
const request = {
|
|
@@ -1533,15 +1533,15 @@ class delta extends delta$1 {
|
|
|
1533
1533
|
}
|
|
1534
1534
|
return this.safeBalance(result);
|
|
1535
1535
|
}
|
|
1536
|
+
/**
|
|
1537
|
+
* @method
|
|
1538
|
+
* @name delta#fetchBalance
|
|
1539
|
+
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1540
|
+
* @see https://docs.delta.exchange/#get-wallet-balances
|
|
1541
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1542
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1543
|
+
*/
|
|
1536
1544
|
async fetchBalance(params = {}) {
|
|
1537
|
-
/**
|
|
1538
|
-
* @method
|
|
1539
|
-
* @name delta#fetchBalance
|
|
1540
|
-
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1541
|
-
* @see https://docs.delta.exchange/#get-wallet-balances
|
|
1542
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1543
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1544
|
-
*/
|
|
1545
1545
|
await this.loadMarkets();
|
|
1546
1546
|
const response = await this.privateGetWalletBalances(params);
|
|
1547
1547
|
//
|
|
@@ -1567,16 +1567,16 @@ class delta extends delta$1 {
|
|
|
1567
1567
|
//
|
|
1568
1568
|
return this.parseBalance(response);
|
|
1569
1569
|
}
|
|
1570
|
+
/**
|
|
1571
|
+
* @method
|
|
1572
|
+
* @name delta#fetchPosition
|
|
1573
|
+
* @description fetch data on a single open contract trade position
|
|
1574
|
+
* @see https://docs.delta.exchange/#get-position
|
|
1575
|
+
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
1576
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1577
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
1578
|
+
*/
|
|
1570
1579
|
async fetchPosition(symbol, params = {}) {
|
|
1571
|
-
/**
|
|
1572
|
-
* @method
|
|
1573
|
-
* @name delta#fetchPosition
|
|
1574
|
-
* @description fetch data on a single open contract trade position
|
|
1575
|
-
* @see https://docs.delta.exchange/#get-position
|
|
1576
|
-
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
1577
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1578
|
-
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
1579
|
-
*/
|
|
1580
1580
|
await this.loadMarkets();
|
|
1581
1581
|
const market = this.market(symbol);
|
|
1582
1582
|
const request = {
|
|
@@ -1596,16 +1596,16 @@ class delta extends delta$1 {
|
|
|
1596
1596
|
const result = this.safeDict(response, 'result', {});
|
|
1597
1597
|
return this.parsePosition(result, market);
|
|
1598
1598
|
}
|
|
1599
|
+
/**
|
|
1600
|
+
* @method
|
|
1601
|
+
* @name delta#fetchPositions
|
|
1602
|
+
* @description fetch all open positions
|
|
1603
|
+
* @see https://docs.delta.exchange/#get-margined-positions
|
|
1604
|
+
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1605
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1606
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
1607
|
+
*/
|
|
1599
1608
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
1600
|
-
/**
|
|
1601
|
-
* @method
|
|
1602
|
-
* @name delta#fetchPositions
|
|
1603
|
-
* @description fetch all open positions
|
|
1604
|
-
* @see https://docs.delta.exchange/#get-margined-positions
|
|
1605
|
-
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1606
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1607
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
1608
|
-
*/
|
|
1609
1609
|
await this.loadMarkets();
|
|
1610
1610
|
const response = await this.privateGetPositionsMargined(params);
|
|
1611
1611
|
//
|
|
@@ -1797,21 +1797,21 @@ class delta extends delta$1 {
|
|
|
1797
1797
|
'trades': undefined,
|
|
1798
1798
|
}, market);
|
|
1799
1799
|
}
|
|
1800
|
+
/**
|
|
1801
|
+
* @method
|
|
1802
|
+
* @name delta#createOrder
|
|
1803
|
+
* @description create a trade order
|
|
1804
|
+
* @see https://docs.delta.exchange/#place-order
|
|
1805
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
1806
|
+
* @param {string} type 'market' or 'limit'
|
|
1807
|
+
* @param {string} side 'buy' or 'sell'
|
|
1808
|
+
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1809
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1810
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1811
|
+
* @param {bool} [params.reduceOnly] *contract only* indicates if this order is to reduce the size of a position
|
|
1812
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1813
|
+
*/
|
|
1800
1814
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1801
|
-
/**
|
|
1802
|
-
* @method
|
|
1803
|
-
* @name delta#createOrder
|
|
1804
|
-
* @description create a trade order
|
|
1805
|
-
* @see https://docs.delta.exchange/#place-order
|
|
1806
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
1807
|
-
* @param {string} type 'market' or 'limit'
|
|
1808
|
-
* @param {string} side 'buy' or 'sell'
|
|
1809
|
-
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1810
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1811
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1812
|
-
* @param {bool} [params.reduceOnly] *contract only* indicates if this order is to reduce the size of a position
|
|
1813
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1814
|
-
*/
|
|
1815
1815
|
await this.loadMarkets();
|
|
1816
1816
|
const orderType = type + '_order';
|
|
1817
1817
|
const market = this.market(symbol);
|
|
@@ -1879,21 +1879,21 @@ class delta extends delta$1 {
|
|
|
1879
1879
|
const result = this.safeDict(response, 'result', {});
|
|
1880
1880
|
return this.parseOrder(result, market);
|
|
1881
1881
|
}
|
|
1882
|
+
/**
|
|
1883
|
+
* @method
|
|
1884
|
+
* @name delta#editOrder
|
|
1885
|
+
* @description edit a trade order
|
|
1886
|
+
* @see https://docs.delta.exchange/#edit-order
|
|
1887
|
+
* @param {string} id order id
|
|
1888
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
1889
|
+
* @param {string} type 'market' or 'limit'
|
|
1890
|
+
* @param {string} side 'buy' or 'sell'
|
|
1891
|
+
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
1892
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency
|
|
1893
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1894
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1895
|
+
*/
|
|
1882
1896
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
1883
|
-
/**
|
|
1884
|
-
* @method
|
|
1885
|
-
* @name delta#editOrder
|
|
1886
|
-
* @description edit a trade order
|
|
1887
|
-
* @see https://docs.delta.exchange/#edit-order
|
|
1888
|
-
* @param {string} id order id
|
|
1889
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
1890
|
-
* @param {string} type 'market' or 'limit'
|
|
1891
|
-
* @param {string} side 'buy' or 'sell'
|
|
1892
|
-
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
1893
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency
|
|
1894
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1895
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1896
|
-
*/
|
|
1897
1897
|
await this.loadMarkets();
|
|
1898
1898
|
const market = this.market(symbol);
|
|
1899
1899
|
const request = {
|
|
@@ -1929,17 +1929,17 @@ class delta extends delta$1 {
|
|
|
1929
1929
|
const result = this.safeDict(response, 'result');
|
|
1930
1930
|
return this.parseOrder(result, market);
|
|
1931
1931
|
}
|
|
1932
|
+
/**
|
|
1933
|
+
* @method
|
|
1934
|
+
* @name delta#cancelOrder
|
|
1935
|
+
* @description cancels an open order
|
|
1936
|
+
* @see https://docs.delta.exchange/#cancel-order
|
|
1937
|
+
* @param {string} id order id
|
|
1938
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
1939
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1940
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1941
|
+
*/
|
|
1932
1942
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1933
|
-
/**
|
|
1934
|
-
* @method
|
|
1935
|
-
* @name delta#cancelOrder
|
|
1936
|
-
* @description cancels an open order
|
|
1937
|
-
* @see https://docs.delta.exchange/#cancel-order
|
|
1938
|
-
* @param {string} id order id
|
|
1939
|
-
* @param {string} symbol unified symbol of the market the order was made in
|
|
1940
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1941
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1942
|
-
*/
|
|
1943
1943
|
if (symbol === undefined) {
|
|
1944
1944
|
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
1945
1945
|
}
|
|
@@ -1989,16 +1989,16 @@ class delta extends delta$1 {
|
|
|
1989
1989
|
const result = this.safeDict(response, 'result');
|
|
1990
1990
|
return this.parseOrder(result, market);
|
|
1991
1991
|
}
|
|
1992
|
+
/**
|
|
1993
|
+
* @method
|
|
1994
|
+
* @name delta#cancelAllOrders
|
|
1995
|
+
* @description cancel all open orders in a market
|
|
1996
|
+
* @see https://docs.delta.exchange/#cancel-all-open-orders
|
|
1997
|
+
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
1998
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1999
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2000
|
+
*/
|
|
1992
2001
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
1993
|
-
/**
|
|
1994
|
-
* @method
|
|
1995
|
-
* @name delta#cancelAllOrders
|
|
1996
|
-
* @description cancel all open orders in a market
|
|
1997
|
-
* @see https://docs.delta.exchange/#cancel-all-open-orders
|
|
1998
|
-
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
1999
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2000
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2001
|
-
*/
|
|
2002
2002
|
if (symbol === undefined) {
|
|
2003
2003
|
throw new errors.ArgumentsRequired(this.id + ' cancelAllOrders() requires a symbol argument');
|
|
2004
2004
|
}
|
|
@@ -2022,32 +2022,32 @@ class delta extends delta$1 {
|
|
|
2022
2022
|
}),
|
|
2023
2023
|
];
|
|
2024
2024
|
}
|
|
2025
|
+
/**
|
|
2026
|
+
* @method
|
|
2027
|
+
* @name delta#fetchOpenOrders
|
|
2028
|
+
* @description fetch all unfilled currently open orders
|
|
2029
|
+
* @see https://docs.delta.exchange/#get-active-orders
|
|
2030
|
+
* @param {string} symbol unified market symbol
|
|
2031
|
+
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2032
|
+
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
2033
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2034
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2035
|
+
*/
|
|
2025
2036
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2026
|
-
/**
|
|
2027
|
-
* @method
|
|
2028
|
-
* @name delta#fetchOpenOrders
|
|
2029
|
-
* @description fetch all unfilled currently open orders
|
|
2030
|
-
* @see https://docs.delta.exchange/#get-active-orders
|
|
2031
|
-
* @param {string} symbol unified market symbol
|
|
2032
|
-
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2033
|
-
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
2034
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2035
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2036
|
-
*/
|
|
2037
2037
|
return await this.fetchOrdersWithMethod('privateGetOrders', symbol, since, limit, params);
|
|
2038
2038
|
}
|
|
2039
|
+
/**
|
|
2040
|
+
* @method
|
|
2041
|
+
* @name delta#fetchClosedOrders
|
|
2042
|
+
* @description fetches information on multiple closed orders made by the user
|
|
2043
|
+
* @see https://docs.delta.exchange/#get-order-history-cancelled-and-closed
|
|
2044
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2045
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2046
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2047
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2048
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2049
|
+
*/
|
|
2039
2050
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2040
|
-
/**
|
|
2041
|
-
* @method
|
|
2042
|
-
* @name delta#fetchClosedOrders
|
|
2043
|
-
* @description fetches information on multiple closed orders made by the user
|
|
2044
|
-
* @see https://docs.delta.exchange/#get-order-history-cancelled-and-closed
|
|
2045
|
-
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2046
|
-
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2047
|
-
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2048
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2049
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2050
|
-
*/
|
|
2051
2051
|
return await this.fetchOrdersWithMethod('privateGetOrdersHistory', symbol, since, limit, params);
|
|
2052
2052
|
}
|
|
2053
2053
|
async fetchOrdersWithMethod(method, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
@@ -2106,18 +2106,18 @@ class delta extends delta$1 {
|
|
|
2106
2106
|
const result = this.safeList(response, 'result', []);
|
|
2107
2107
|
return this.parseOrders(result, market, since, limit);
|
|
2108
2108
|
}
|
|
2109
|
+
/**
|
|
2110
|
+
* @method
|
|
2111
|
+
* @name delta#fetchMyTrades
|
|
2112
|
+
* @description fetch all trades made by the user
|
|
2113
|
+
* @see https://docs.delta.exchange/#get-user-fills-by-filters
|
|
2114
|
+
* @param {string} symbol unified market symbol
|
|
2115
|
+
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2116
|
+
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2117
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2118
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
2119
|
+
*/
|
|
2109
2120
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2110
|
-
/**
|
|
2111
|
-
* @method
|
|
2112
|
-
* @name delta#fetchMyTrades
|
|
2113
|
-
* @description fetch all trades made by the user
|
|
2114
|
-
* @see https://docs.delta.exchange/#get-user-fills-by-filters
|
|
2115
|
-
* @param {string} symbol unified market symbol
|
|
2116
|
-
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2117
|
-
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2118
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2119
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
2120
|
-
*/
|
|
2121
2121
|
await this.loadMarkets();
|
|
2122
2122
|
const request = {
|
|
2123
2123
|
// 'product_ids': market['id'], // comma-separated
|
|
@@ -2188,18 +2188,18 @@ class delta extends delta$1 {
|
|
|
2188
2188
|
const result = this.safeList(response, 'result', []);
|
|
2189
2189
|
return this.parseTrades(result, market, since, limit);
|
|
2190
2190
|
}
|
|
2191
|
+
/**
|
|
2192
|
+
* @method
|
|
2193
|
+
* @name delta#fetchLedger
|
|
2194
|
+
* @description fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
|
2195
|
+
* @see https://docs.delta.exchange/#get-wallet-transactions
|
|
2196
|
+
* @param {string} [code] unified currency code, default is undefined
|
|
2197
|
+
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
2198
|
+
* @param {int} [limit] max number of ledger entries to return, default is undefined
|
|
2199
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2200
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
2201
|
+
*/
|
|
2191
2202
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2192
|
-
/**
|
|
2193
|
-
* @method
|
|
2194
|
-
* @name delta#fetchLedger
|
|
2195
|
-
* @description fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
|
2196
|
-
* @see https://docs.delta.exchange/#get-wallet-transactions
|
|
2197
|
-
* @param {string} [code] unified currency code, default is undefined
|
|
2198
|
-
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
2199
|
-
* @param {int} [limit] max number of ledger entries to return, default is undefined
|
|
2200
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2201
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
2202
|
-
*/
|
|
2203
2203
|
await this.loadMarkets();
|
|
2204
2204
|
const request = {
|
|
2205
2205
|
// 'asset_id': currency['numericId'],
|
|
@@ -2313,16 +2313,16 @@ class delta extends delta$1 {
|
|
|
2313
2313
|
'fee': undefined,
|
|
2314
2314
|
}, currency);
|
|
2315
2315
|
}
|
|
2316
|
+
/**
|
|
2317
|
+
* @method
|
|
2318
|
+
* @name delta#fetchDepositAddress
|
|
2319
|
+
* @description fetch the deposit address for a currency associated with this account
|
|
2320
|
+
* @param {string} code unified currency code
|
|
2321
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2322
|
+
* @param {string} [params.network] unified network code
|
|
2323
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2324
|
+
*/
|
|
2316
2325
|
async fetchDepositAddress(code, params = {}) {
|
|
2317
|
-
/**
|
|
2318
|
-
* @method
|
|
2319
|
-
* @name delta#fetchDepositAddress
|
|
2320
|
-
* @description fetch the deposit address for a currency associated with this account
|
|
2321
|
-
* @param {string} code unified currency code
|
|
2322
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2323
|
-
* @param {string} [params.network] unified network code
|
|
2324
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2325
|
-
*/
|
|
2326
2326
|
await this.loadMarkets();
|
|
2327
2327
|
const currency = this.currency(code);
|
|
2328
2328
|
const request = {
|
|
@@ -2381,16 +2381,16 @@ class delta extends delta$1 {
|
|
|
2381
2381
|
'tag': this.safeString(depositAddress, 'memo'),
|
|
2382
2382
|
};
|
|
2383
2383
|
}
|
|
2384
|
+
/**
|
|
2385
|
+
* @method
|
|
2386
|
+
* @name delta#fetchFundingRate
|
|
2387
|
+
* @description fetch the current funding rate
|
|
2388
|
+
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
2389
|
+
* @param {string} symbol unified market symbol
|
|
2390
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2391
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
2392
|
+
*/
|
|
2384
2393
|
async fetchFundingRate(symbol, params = {}) {
|
|
2385
|
-
/**
|
|
2386
|
-
* @method
|
|
2387
|
-
* @name delta#fetchFundingRate
|
|
2388
|
-
* @description fetch the current funding rate
|
|
2389
|
-
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
2390
|
-
* @param {string} symbol unified market symbol
|
|
2391
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2392
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
2393
|
-
*/
|
|
2394
2394
|
await this.loadMarkets();
|
|
2395
2395
|
const market = this.market(symbol);
|
|
2396
2396
|
if (!market['swap']) {
|
|
@@ -2448,16 +2448,16 @@ class delta extends delta$1 {
|
|
|
2448
2448
|
const result = this.safeDict(response, 'result', {});
|
|
2449
2449
|
return this.parseFundingRate(result, market);
|
|
2450
2450
|
}
|
|
2451
|
+
/**
|
|
2452
|
+
* @method
|
|
2453
|
+
* @name delta#fetchFundingRates
|
|
2454
|
+
* @description fetch the funding rate for multiple markets
|
|
2455
|
+
* @see https://docs.delta.exchange/#get-tickers-for-products
|
|
2456
|
+
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2457
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2458
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexed by market symbols
|
|
2459
|
+
*/
|
|
2451
2460
|
async fetchFundingRates(symbols = undefined, params = {}) {
|
|
2452
|
-
/**
|
|
2453
|
-
* @method
|
|
2454
|
-
* @name delta#fetchFundingRates
|
|
2455
|
-
* @description fetch the funding rate for multiple markets
|
|
2456
|
-
* @see https://docs.delta.exchange/#get-tickers-for-products
|
|
2457
|
-
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2458
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2459
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexed by market symbols
|
|
2460
|
-
*/
|
|
2461
2461
|
await this.loadMarkets();
|
|
2462
2462
|
symbols = this.marketSymbols(symbols);
|
|
2463
2463
|
const request = {
|
|
@@ -2583,30 +2583,30 @@ class delta extends delta$1 {
|
|
|
2583
2583
|
'interval': undefined,
|
|
2584
2584
|
};
|
|
2585
2585
|
}
|
|
2586
|
+
/**
|
|
2587
|
+
* @method
|
|
2588
|
+
* @name delta#addMargin
|
|
2589
|
+
* @description add margin
|
|
2590
|
+
* @see https://docs.delta.exchange/#add-remove-position-margin
|
|
2591
|
+
* @param {string} symbol unified market symbol
|
|
2592
|
+
* @param {float} amount amount of margin to add
|
|
2593
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2594
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
2595
|
+
*/
|
|
2586
2596
|
async addMargin(symbol, amount, params = {}) {
|
|
2587
|
-
/**
|
|
2588
|
-
* @method
|
|
2589
|
-
* @name delta#addMargin
|
|
2590
|
-
* @description add margin
|
|
2591
|
-
* @see https://docs.delta.exchange/#add-remove-position-margin
|
|
2592
|
-
* @param {string} symbol unified market symbol
|
|
2593
|
-
* @param {float} amount amount of margin to add
|
|
2594
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2595
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
2596
|
-
*/
|
|
2597
2597
|
return await this.modifyMarginHelper(symbol, amount, 'add', params);
|
|
2598
2598
|
}
|
|
2599
|
+
/**
|
|
2600
|
+
* @method
|
|
2601
|
+
* @name delta#reduceMargin
|
|
2602
|
+
* @description remove margin from a position
|
|
2603
|
+
* @see https://docs.delta.exchange/#add-remove-position-margin
|
|
2604
|
+
* @param {string} symbol unified market symbol
|
|
2605
|
+
* @param {float} amount the amount of margin to remove
|
|
2606
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2607
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
2608
|
+
*/
|
|
2599
2609
|
async reduceMargin(symbol, amount, params = {}) {
|
|
2600
|
-
/**
|
|
2601
|
-
* @method
|
|
2602
|
-
* @name delta#reduceMargin
|
|
2603
|
-
* @description remove margin from a position
|
|
2604
|
-
* @see https://docs.delta.exchange/#add-remove-position-margin
|
|
2605
|
-
* @param {string} symbol unified market symbol
|
|
2606
|
-
* @param {float} amount the amount of margin to remove
|
|
2607
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2608
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
2609
|
-
*/
|
|
2610
2610
|
return await this.modifyMarginHelper(symbol, amount, 'reduce', params);
|
|
2611
2611
|
}
|
|
2612
2612
|
async modifyMarginHelper(symbol, amount, type, params = {}) {
|
|
@@ -2683,16 +2683,16 @@ class delta extends delta$1 {
|
|
|
2683
2683
|
'datetime': undefined,
|
|
2684
2684
|
};
|
|
2685
2685
|
}
|
|
2686
|
+
/**
|
|
2687
|
+
* @method
|
|
2688
|
+
* @name delta#fetchOpenInterest
|
|
2689
|
+
* @description retrieves the open interest of a derivative market
|
|
2690
|
+
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
2691
|
+
* @param {string} symbol unified market symbol
|
|
2692
|
+
* @param {object} [params] exchange specific parameters
|
|
2693
|
+
* @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure}
|
|
2694
|
+
*/
|
|
2686
2695
|
async fetchOpenInterest(symbol, params = {}) {
|
|
2687
|
-
/**
|
|
2688
|
-
* @method
|
|
2689
|
-
* @name delta#fetchOpenInterest
|
|
2690
|
-
* @description retrieves the open interest of a derivative market
|
|
2691
|
-
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
2692
|
-
* @param {string} symbol unified market symbol
|
|
2693
|
-
* @param {object} [params] exchange specific parameters
|
|
2694
|
-
* @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure}
|
|
2695
|
-
*/
|
|
2696
2696
|
await this.loadMarkets();
|
|
2697
2697
|
const market = this.market(symbol);
|
|
2698
2698
|
if (!market['contract']) {
|
|
@@ -2820,16 +2820,16 @@ class delta extends delta$1 {
|
|
|
2820
2820
|
'info': interest,
|
|
2821
2821
|
}, market);
|
|
2822
2822
|
}
|
|
2823
|
+
/**
|
|
2824
|
+
* @method
|
|
2825
|
+
* @name delta#fetchLeverage
|
|
2826
|
+
* @description fetch the set leverage for a market
|
|
2827
|
+
* @see https://docs.delta.exchange/#get-order-leverage
|
|
2828
|
+
* @param {string} symbol unified market symbol
|
|
2829
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2830
|
+
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
|
|
2831
|
+
*/
|
|
2823
2832
|
async fetchLeverage(symbol, params = {}) {
|
|
2824
|
-
/**
|
|
2825
|
-
* @method
|
|
2826
|
-
* @name delta#fetchLeverage
|
|
2827
|
-
* @description fetch the set leverage for a market
|
|
2828
|
-
* @see https://docs.delta.exchange/#get-order-leverage
|
|
2829
|
-
* @param {string} symbol unified market symbol
|
|
2830
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2831
|
-
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
|
|
2832
|
-
*/
|
|
2833
2833
|
await this.loadMarkets();
|
|
2834
2834
|
const market = this.market(symbol);
|
|
2835
2835
|
const request = {
|
|
@@ -2863,17 +2863,17 @@ class delta extends delta$1 {
|
|
|
2863
2863
|
'shortLeverage': leverageValue,
|
|
2864
2864
|
};
|
|
2865
2865
|
}
|
|
2866
|
+
/**
|
|
2867
|
+
* @method
|
|
2868
|
+
* @name delta#setLeverage
|
|
2869
|
+
* @description set the level of leverage for a market
|
|
2870
|
+
* @see https://docs.delta.exchange/#change-order-leverage
|
|
2871
|
+
* @param {float} leverage the rate of leverage
|
|
2872
|
+
* @param {string} symbol unified market symbol
|
|
2873
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2874
|
+
* @returns {object} response from the exchange
|
|
2875
|
+
*/
|
|
2866
2876
|
async setLeverage(leverage, symbol = undefined, params = {}) {
|
|
2867
|
-
/**
|
|
2868
|
-
* @method
|
|
2869
|
-
* @name delta#setLeverage
|
|
2870
|
-
* @description set the level of leverage for a market
|
|
2871
|
-
* @see https://docs.delta.exchange/#change-order-leverage
|
|
2872
|
-
* @param {float} leverage the rate of leverage
|
|
2873
|
-
* @param {string} symbol unified market symbol
|
|
2874
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2875
|
-
* @returns {object} response from the exchange
|
|
2876
|
-
*/
|
|
2877
2877
|
if (symbol === undefined) {
|
|
2878
2878
|
throw new errors.ArgumentsRequired(this.id + ' setLeverage() requires a symbol argument');
|
|
2879
2879
|
}
|
|
@@ -2896,18 +2896,18 @@ class delta extends delta$1 {
|
|
|
2896
2896
|
//
|
|
2897
2897
|
return await this.privatePostProductsProductIdOrdersLeverage(this.extend(request, params));
|
|
2898
2898
|
}
|
|
2899
|
+
/**
|
|
2900
|
+
* @method
|
|
2901
|
+
* @name delta#fetchSettlementHistory
|
|
2902
|
+
* @description fetches historical settlement records
|
|
2903
|
+
* @see https://docs.delta.exchange/#get-product-settlement-prices
|
|
2904
|
+
* @param {string} symbol unified market symbol of the settlement history
|
|
2905
|
+
* @param {int} [since] timestamp in ms
|
|
2906
|
+
* @param {int} [limit] number of records
|
|
2907
|
+
* @param {object} [params] exchange specific params
|
|
2908
|
+
* @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com/#/?id=settlement-history-structure}
|
|
2909
|
+
*/
|
|
2899
2910
|
async fetchSettlementHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2900
|
-
/**
|
|
2901
|
-
* @method
|
|
2902
|
-
* @name delta#fetchSettlementHistory
|
|
2903
|
-
* @description fetches historical settlement records
|
|
2904
|
-
* @see https://docs.delta.exchange/#get-product-settlement-prices
|
|
2905
|
-
* @param {string} symbol unified market symbol of the settlement history
|
|
2906
|
-
* @param {int} [since] timestamp in ms
|
|
2907
|
-
* @param {int} [limit] number of records
|
|
2908
|
-
* @param {object} [params] exchange specific params
|
|
2909
|
-
* @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com/#/?id=settlement-history-structure}
|
|
2910
|
-
*/
|
|
2911
2911
|
await this.loadMarkets();
|
|
2912
2912
|
let market = undefined;
|
|
2913
2913
|
if (symbol !== undefined) {
|
|
@@ -3054,16 +3054,16 @@ class delta extends delta$1 {
|
|
|
3054
3054
|
}
|
|
3055
3055
|
return result;
|
|
3056
3056
|
}
|
|
3057
|
+
/**
|
|
3058
|
+
* @method
|
|
3059
|
+
* @name delta#fetchGreeks
|
|
3060
|
+
* @description fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract
|
|
3061
|
+
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
3062
|
+
* @param {string} symbol unified symbol of the market to fetch greeks for
|
|
3063
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3064
|
+
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/#/?id=greeks-structure}
|
|
3065
|
+
*/
|
|
3057
3066
|
async fetchGreeks(symbol, params = {}) {
|
|
3058
|
-
/**
|
|
3059
|
-
* @method
|
|
3060
|
-
* @name delta#fetchGreeks
|
|
3061
|
-
* @description fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract
|
|
3062
|
-
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
3063
|
-
* @param {string} symbol unified symbol of the market to fetch greeks for
|
|
3064
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3065
|
-
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/#/?id=greeks-structure}
|
|
3066
|
-
*/
|
|
3067
3067
|
await this.loadMarkets();
|
|
3068
3068
|
const market = this.market(symbol);
|
|
3069
3069
|
const request = {
|
|
@@ -3202,16 +3202,16 @@ class delta extends delta$1 {
|
|
|
3202
3202
|
'info': greeks,
|
|
3203
3203
|
};
|
|
3204
3204
|
}
|
|
3205
|
+
/**
|
|
3206
|
+
* @method
|
|
3207
|
+
* @name delta#closeAllPositions
|
|
3208
|
+
* @description closes all open positions for a market type
|
|
3209
|
+
* @see https://docs.delta.exchange/#close-all-positions
|
|
3210
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3211
|
+
* @param {int} [params.user_id] the users id
|
|
3212
|
+
* @returns {object[]} A list of [position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
3213
|
+
*/
|
|
3205
3214
|
async closeAllPositions(params = {}) {
|
|
3206
|
-
/**
|
|
3207
|
-
* @method
|
|
3208
|
-
* @name delta#closeAllPositions
|
|
3209
|
-
* @description closes all open positions for a market type
|
|
3210
|
-
* @see https://docs.delta.exchange/#close-all-positions
|
|
3211
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3212
|
-
* @param {int} [params.user_id] the users id
|
|
3213
|
-
* @returns {object[]} A list of [position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
3214
|
-
*/
|
|
3215
3215
|
await this.loadMarkets();
|
|
3216
3216
|
const request = {
|
|
3217
3217
|
'close_all_portfolio': true,
|
|
@@ -3225,16 +3225,16 @@ class delta extends delta$1 {
|
|
|
3225
3225
|
const position = this.parsePosition(this.safeDict(response, 'result', {}));
|
|
3226
3226
|
return [position];
|
|
3227
3227
|
}
|
|
3228
|
+
/**
|
|
3229
|
+
* @method
|
|
3230
|
+
* @name delta#fetchMarginMode
|
|
3231
|
+
* @description fetches the margin mode of a trading pair
|
|
3232
|
+
* @see https://docs.delta.exchange/#get-user
|
|
3233
|
+
* @param {string} symbol unified symbol of the market to fetch the margin mode for
|
|
3234
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3235
|
+
* @returns {object} a [margin mode structure]{@link https://docs.ccxt.com/#/?id=margin-mode-structure}
|
|
3236
|
+
*/
|
|
3228
3237
|
async fetchMarginMode(symbol, params = {}) {
|
|
3229
|
-
/**
|
|
3230
|
-
* @method
|
|
3231
|
-
* @name delta#fetchMarginMode
|
|
3232
|
-
* @description fetches the margin mode of a trading pair
|
|
3233
|
-
* @see https://docs.delta.exchange/#get-user
|
|
3234
|
-
* @param {string} symbol unified symbol of the market to fetch the margin mode for
|
|
3235
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3236
|
-
* @returns {object} a [margin mode structure]{@link https://docs.ccxt.com/#/?id=margin-mode-structure}
|
|
3237
|
-
*/
|
|
3238
3238
|
await this.loadMarkets();
|
|
3239
3239
|
let market = undefined;
|
|
3240
3240
|
if (symbol !== undefined) {
|
|
@@ -3318,16 +3318,16 @@ class delta extends delta$1 {
|
|
|
3318
3318
|
'marginMode': this.safeString(marginMode, 'margin_mode'),
|
|
3319
3319
|
};
|
|
3320
3320
|
}
|
|
3321
|
+
/**
|
|
3322
|
+
* @method
|
|
3323
|
+
* @name delta#fetchOption
|
|
3324
|
+
* @description fetches option data that is commonly found in an option chain
|
|
3325
|
+
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
3326
|
+
* @param {string} symbol unified market symbol
|
|
3327
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3328
|
+
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com/#/?id=option-chain-structure}
|
|
3329
|
+
*/
|
|
3321
3330
|
async fetchOption(symbol, params = {}) {
|
|
3322
|
-
/**
|
|
3323
|
-
* @method
|
|
3324
|
-
* @name delta#fetchOption
|
|
3325
|
-
* @description fetches option data that is commonly found in an option chain
|
|
3326
|
-
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
3327
|
-
* @param {string} symbol unified market symbol
|
|
3328
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3329
|
-
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com/#/?id=option-chain-structure}
|
|
3330
|
-
*/
|
|
3331
3331
|
await this.loadMarkets();
|
|
3332
3332
|
const market = this.market(symbol);
|
|
3333
3333
|
const request = {
|