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/vertex.js
CHANGED
|
@@ -338,15 +338,15 @@ class vertex extends vertex$1 {
|
|
|
338
338
|
const numStr = this.numberToString(num);
|
|
339
339
|
return Precise["default"].stringDiv(numStr, '1000000000000000000');
|
|
340
340
|
}
|
|
341
|
+
/**
|
|
342
|
+
* @method
|
|
343
|
+
* @name vertex#fetchCurrencies
|
|
344
|
+
* @description fetches all available currencies on an exchange
|
|
345
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/v2/assets
|
|
346
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
347
|
+
* @returns {object} an associative dictionary of currencies
|
|
348
|
+
*/
|
|
341
349
|
async fetchCurrencies(params = {}) {
|
|
342
|
-
/**
|
|
343
|
-
* @method
|
|
344
|
-
* @name vertex#fetchCurrencies
|
|
345
|
-
* @description fetches all available currencies on an exchange
|
|
346
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/v2/assets
|
|
347
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
348
|
-
* @returns {object} an associative dictionary of currencies
|
|
349
|
-
*/
|
|
350
350
|
const request = {};
|
|
351
351
|
const response = await this.v2GatewayGetAssets(this.extend(request, params));
|
|
352
352
|
//
|
|
@@ -502,15 +502,15 @@ class vertex extends vertex$1 {
|
|
|
502
502
|
'info': market,
|
|
503
503
|
};
|
|
504
504
|
}
|
|
505
|
+
/**
|
|
506
|
+
* @method
|
|
507
|
+
* @name vertex#fetchMarkets
|
|
508
|
+
* @description retrieves data on all markets for vertex
|
|
509
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/symbols
|
|
510
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
511
|
+
* @returns {object[]} an array of objects representing market data
|
|
512
|
+
*/
|
|
505
513
|
async fetchMarkets(params = {}) {
|
|
506
|
-
/**
|
|
507
|
-
* @method
|
|
508
|
-
* @name vertex#fetchMarkets
|
|
509
|
-
* @description retrieves data on all markets for vertex
|
|
510
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/symbols
|
|
511
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
512
|
-
* @returns {object[]} an array of objects representing market data
|
|
513
|
-
*/
|
|
514
514
|
const request = {
|
|
515
515
|
'type': 'symbols',
|
|
516
516
|
};
|
|
@@ -550,27 +550,27 @@ class vertex extends vertex$1 {
|
|
|
550
550
|
}
|
|
551
551
|
return result;
|
|
552
552
|
}
|
|
553
|
+
/**
|
|
554
|
+
* @method
|
|
555
|
+
* @name vertex#fetchTime
|
|
556
|
+
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
557
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
558
|
+
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
559
|
+
*/
|
|
553
560
|
async fetchTime(params = {}) {
|
|
554
|
-
/**
|
|
555
|
-
* @method
|
|
556
|
-
* @name vertex#fetchTime
|
|
557
|
-
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
558
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
559
|
-
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
560
|
-
*/
|
|
561
561
|
const response = await this.v1GatewayGetTime(params);
|
|
562
562
|
// 1717481623452
|
|
563
563
|
return this.parseNumber(response);
|
|
564
564
|
}
|
|
565
|
+
/**
|
|
566
|
+
* @method
|
|
567
|
+
* @name vertex#fetchStatus
|
|
568
|
+
* @description the latest known information on the availability of the exchange API
|
|
569
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/status
|
|
570
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
571
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
572
|
+
*/
|
|
565
573
|
async fetchStatus(params = {}) {
|
|
566
|
-
/**
|
|
567
|
-
* @method
|
|
568
|
-
* @name vertex#fetchStatus
|
|
569
|
-
* @description the latest known information on the availability of the exchange API
|
|
570
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/status
|
|
571
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
572
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
573
|
-
*/
|
|
574
574
|
const request = {
|
|
575
575
|
'type': 'status',
|
|
576
576
|
};
|
|
@@ -724,18 +724,18 @@ class vertex extends vertex$1 {
|
|
|
724
724
|
'info': trade,
|
|
725
725
|
}, market);
|
|
726
726
|
}
|
|
727
|
+
/**
|
|
728
|
+
* @method
|
|
729
|
+
* @name vertex#fetchTrades
|
|
730
|
+
* @description get the list of most recent trades for a particular symbol
|
|
731
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/v2/trades
|
|
732
|
+
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
733
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
734
|
+
* @param {int} [limit] the maximum amount of trades to fetch
|
|
735
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
736
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
737
|
+
*/
|
|
727
738
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
728
|
-
/**
|
|
729
|
-
* @method
|
|
730
|
-
* @name vertex#fetchTrades
|
|
731
|
-
* @description get the list of most recent trades for a particular symbol
|
|
732
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/v2/trades
|
|
733
|
-
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
734
|
-
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
735
|
-
* @param {int} [limit] the maximum amount of trades to fetch
|
|
736
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
737
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
738
|
-
*/
|
|
739
739
|
await this.loadMarkets();
|
|
740
740
|
const market = this.market(symbol);
|
|
741
741
|
const marketId = market['baseId'] + '_USDC';
|
|
@@ -770,19 +770,19 @@ class vertex extends vertex$1 {
|
|
|
770
770
|
//
|
|
771
771
|
return this.parseTrades(response, market, since, limit);
|
|
772
772
|
}
|
|
773
|
+
/**
|
|
774
|
+
* @method
|
|
775
|
+
* @name vertex#fetchMyTrades
|
|
776
|
+
* @description fetch all trades made by the user
|
|
777
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/archive-indexer/matches
|
|
778
|
+
* @param {string} symbol unified market symbol
|
|
779
|
+
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
780
|
+
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
781
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
782
|
+
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
783
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
784
|
+
*/
|
|
773
785
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
774
|
-
/**
|
|
775
|
-
* @method
|
|
776
|
-
* @name vertex#fetchMyTrades
|
|
777
|
-
* @description fetch all trades made by the user
|
|
778
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/archive-indexer/matches
|
|
779
|
-
* @param {string} symbol unified market symbol
|
|
780
|
-
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
781
|
-
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
782
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
783
|
-
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
784
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
785
|
-
*/
|
|
786
786
|
await this.loadMarkets();
|
|
787
787
|
let userAddress = undefined;
|
|
788
788
|
[userAddress, params] = this.handlePublicAddress('fetchMyTrades', params);
|
|
@@ -980,17 +980,17 @@ class vertex extends vertex$1 {
|
|
|
980
980
|
const trades = this.safeList(response, 'matches', []);
|
|
981
981
|
return this.parseTrades(trades, market, since, limit, params);
|
|
982
982
|
}
|
|
983
|
+
/**
|
|
984
|
+
* @method
|
|
985
|
+
* @name vertex#fetchOrderBook
|
|
986
|
+
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
987
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/v2/orderbook
|
|
988
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
989
|
+
* @param {int} [limit] the maximum amount of order book entries to return
|
|
990
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
991
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
992
|
+
*/
|
|
983
993
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
984
|
-
/**
|
|
985
|
-
* @method
|
|
986
|
-
* @name vertex#fetchOrderBook
|
|
987
|
-
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
988
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/v2/orderbook
|
|
989
|
-
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
990
|
-
* @param {int} [limit] the maximum amount of order book entries to return
|
|
991
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
992
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
993
|
-
*/
|
|
994
994
|
await this.loadMarkets();
|
|
995
995
|
const market = this.market(symbol);
|
|
996
996
|
const marketId = market['baseId'] + '_USDC';
|
|
@@ -1043,16 +1043,16 @@ class vertex extends vertex$1 {
|
|
|
1043
1043
|
const timestamp = this.safeInteger(response, 'timestamp');
|
|
1044
1044
|
return this.parseOrderBook(response, symbol, timestamp, 'bids', 'asks');
|
|
1045
1045
|
}
|
|
1046
|
+
/**
|
|
1047
|
+
* @method
|
|
1048
|
+
* @name vertex#fetchTradingFees
|
|
1049
|
+
* @description fetch the trading fees for multiple markets
|
|
1050
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/fee-rates
|
|
1051
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1052
|
+
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
1053
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1054
|
+
*/
|
|
1046
1055
|
async fetchTradingFees(params = {}) {
|
|
1047
|
-
/**
|
|
1048
|
-
* @method
|
|
1049
|
-
* @name vertex#fetchTradingFees
|
|
1050
|
-
* @description fetch the trading fees for multiple markets
|
|
1051
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/fee-rates
|
|
1052
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1053
|
-
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
1054
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1055
|
-
*/
|
|
1056
1056
|
await this.loadMarkets();
|
|
1057
1057
|
let userAddress = undefined;
|
|
1058
1058
|
[userAddress, params] = this.handlePublicAddress('fetchTradingFees', params);
|
|
@@ -1125,19 +1125,19 @@ class vertex extends vertex$1 {
|
|
|
1125
1125
|
this.parseNumber(this.convertFromX18(this.safeString(ohlcv, 'volume'))),
|
|
1126
1126
|
];
|
|
1127
1127
|
}
|
|
1128
|
+
/**
|
|
1129
|
+
* @method
|
|
1130
|
+
* @name vertex#fetchOHLCV
|
|
1131
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/archive-indexer/candlesticks
|
|
1132
|
+
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
1133
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
1134
|
+
* @param {string} timeframe the length of time each candle represents
|
|
1135
|
+
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1136
|
+
* @param {int} [limit] max=1000, max=100 when since is defined and is less than (now - (999 * (timeframe in ms)))
|
|
1137
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1138
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1139
|
+
*/
|
|
1128
1140
|
async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
|
|
1129
|
-
/**
|
|
1130
|
-
* @method
|
|
1131
|
-
* @name vertex#fetchOHLCV
|
|
1132
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/archive-indexer/candlesticks
|
|
1133
|
-
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
1134
|
-
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
1135
|
-
* @param {string} timeframe the length of time each candle represents
|
|
1136
|
-
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1137
|
-
* @param {int} [limit] max=1000, max=100 when since is defined and is less than (now - (999 * (timeframe in ms)))
|
|
1138
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1139
|
-
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1140
|
-
*/
|
|
1141
1141
|
await this.loadMarkets();
|
|
1142
1142
|
const market = this.market(symbol);
|
|
1143
1143
|
const ohlcvRequest = {
|
|
@@ -1245,16 +1245,16 @@ class vertex extends vertex$1 {
|
|
|
1245
1245
|
'interval': undefined,
|
|
1246
1246
|
};
|
|
1247
1247
|
}
|
|
1248
|
+
/**
|
|
1249
|
+
* @method
|
|
1250
|
+
* @name vertex#fetchFundingRate
|
|
1251
|
+
* @description fetch the current funding rate
|
|
1252
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/archive-indexer/funding-rate
|
|
1253
|
+
* @param {string} symbol unified market symbol
|
|
1254
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1255
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
1256
|
+
*/
|
|
1248
1257
|
async fetchFundingRate(symbol, params = {}) {
|
|
1249
|
-
/**
|
|
1250
|
-
* @method
|
|
1251
|
-
* @name vertex#fetchFundingRate
|
|
1252
|
-
* @description fetch the current funding rate
|
|
1253
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/archive-indexer/funding-rate
|
|
1254
|
-
* @param {string} symbol unified market symbol
|
|
1255
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1256
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
1257
|
-
*/
|
|
1258
1258
|
await this.loadMarkets();
|
|
1259
1259
|
const market = this.market(symbol);
|
|
1260
1260
|
const request = {
|
|
@@ -1272,16 +1272,16 @@ class vertex extends vertex$1 {
|
|
|
1272
1272
|
//
|
|
1273
1273
|
return this.parseFundingRate(response, market);
|
|
1274
1274
|
}
|
|
1275
|
+
/**
|
|
1276
|
+
* @method
|
|
1277
|
+
* @name vertex#fetchFundingRates
|
|
1278
|
+
* @description fetches funding rates for multiple markets
|
|
1279
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/v2/contracts
|
|
1280
|
+
* @param {string[]} symbols unified symbols of the markets to fetch the funding rates for, all market funding rates are returned if not assigned
|
|
1281
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1282
|
+
* @returns {object[]} an array of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
1283
|
+
*/
|
|
1275
1284
|
async fetchFundingRates(symbols = undefined, params = {}) {
|
|
1276
|
-
/**
|
|
1277
|
-
* @method
|
|
1278
|
-
* @name vertex#fetchFundingRates
|
|
1279
|
-
* @description fetches funding rates for multiple markets
|
|
1280
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/v2/contracts
|
|
1281
|
-
* @param {string[]} symbols unified symbols of the markets to fetch the funding rates for, all market funding rates are returned if not assigned
|
|
1282
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1283
|
-
* @returns {object[]} an array of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
1284
|
-
*/
|
|
1285
1285
|
await this.loadMarkets();
|
|
1286
1286
|
const request = {};
|
|
1287
1287
|
if (symbols !== undefined) {
|
|
@@ -1357,16 +1357,16 @@ class vertex extends vertex$1 {
|
|
|
1357
1357
|
'info': interest,
|
|
1358
1358
|
}, market);
|
|
1359
1359
|
}
|
|
1360
|
+
/**
|
|
1361
|
+
* @method
|
|
1362
|
+
* @name vertex#fetchOpenInterest
|
|
1363
|
+
* @description Retrieves the open interest of a derivative trading pair
|
|
1364
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/v2/contracts
|
|
1365
|
+
* @param {string} symbol Unified CCXT market symbol
|
|
1366
|
+
* @param {object} [params] exchange specific parameters
|
|
1367
|
+
* @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure}
|
|
1368
|
+
*/
|
|
1360
1369
|
async fetchOpenInterest(symbol, params = {}) {
|
|
1361
|
-
/**
|
|
1362
|
-
* @method
|
|
1363
|
-
* @name vertex#fetchOpenInterest
|
|
1364
|
-
* @description Retrieves the open interest of a derivative trading pair
|
|
1365
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/v2/contracts
|
|
1366
|
-
* @param {string} symbol Unified CCXT market symbol
|
|
1367
|
-
* @param {object} [params] exchange specific parameters
|
|
1368
|
-
* @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure}
|
|
1369
|
-
*/
|
|
1370
1370
|
await this.loadMarkets();
|
|
1371
1371
|
const market = this.market(symbol);
|
|
1372
1372
|
if (!market['contract']) {
|
|
@@ -1443,16 +1443,16 @@ class vertex extends vertex$1 {
|
|
|
1443
1443
|
'info': ticker,
|
|
1444
1444
|
}, market);
|
|
1445
1445
|
}
|
|
1446
|
+
/**
|
|
1447
|
+
* @method
|
|
1448
|
+
* @name vertex#fetchTickers
|
|
1449
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1450
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/v2/tickers
|
|
1451
|
+
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1452
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1453
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1454
|
+
*/
|
|
1446
1455
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
1447
|
-
/**
|
|
1448
|
-
* @method
|
|
1449
|
-
* @name vertex#fetchTickers
|
|
1450
|
-
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1451
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/v2/tickers
|
|
1452
|
-
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1453
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1454
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1455
|
-
*/
|
|
1456
1456
|
await this.loadMarkets();
|
|
1457
1457
|
symbols = this.marketSymbols(symbols, undefined, true, true, true);
|
|
1458
1458
|
const request = {};
|
|
@@ -1624,25 +1624,25 @@ class vertex extends vertex$1 {
|
|
|
1624
1624
|
}
|
|
1625
1625
|
return amountString;
|
|
1626
1626
|
}
|
|
1627
|
+
/**
|
|
1628
|
+
* @method
|
|
1629
|
+
* @name vertex#createOrder
|
|
1630
|
+
* @description create a trade order
|
|
1631
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/place-order
|
|
1632
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/trigger/executes/place-order
|
|
1633
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
1634
|
+
* @param {string} type 'market' or 'limit'
|
|
1635
|
+
* @param {string} side 'buy' or 'sell'
|
|
1636
|
+
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1637
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1638
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1639
|
+
* @param {string} [params.timeInForce] ioc, fok
|
|
1640
|
+
* @param {bool} [params.postOnly] true or false whether the order is post-only
|
|
1641
|
+
* @param {bool} [params.reduceOnly] true or false whether the order is reduce-only, only works for ioc and fok order
|
|
1642
|
+
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
1643
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1644
|
+
*/
|
|
1627
1645
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1628
|
-
/**
|
|
1629
|
-
* @method
|
|
1630
|
-
* @name vertex#createOrder
|
|
1631
|
-
* @description create a trade order
|
|
1632
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/place-order
|
|
1633
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/trigger/executes/place-order
|
|
1634
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
1635
|
-
* @param {string} type 'market' or 'limit'
|
|
1636
|
-
* @param {string} side 'buy' or 'sell'
|
|
1637
|
-
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1638
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1639
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1640
|
-
* @param {string} [params.timeInForce] ioc, fok
|
|
1641
|
-
* @param {bool} [params.postOnly] true or false whether the order is post-only
|
|
1642
|
-
* @param {bool} [params.reduceOnly] true or false whether the order is reduce-only, only works for ioc and fok order
|
|
1643
|
-
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
1644
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1645
|
-
*/
|
|
1646
1646
|
this.checkRequiredCredentials();
|
|
1647
1647
|
const marketType = type.toLowerCase();
|
|
1648
1648
|
const isMarketOrder = marketType === 'market';
|
|
@@ -1728,25 +1728,25 @@ class vertex extends vertex$1 {
|
|
|
1728
1728
|
'id': this.safeString(data, 'digest'),
|
|
1729
1729
|
});
|
|
1730
1730
|
}
|
|
1731
|
+
/**
|
|
1732
|
+
* @method
|
|
1733
|
+
* @name vertex#editOrder
|
|
1734
|
+
* @description edit a trade order
|
|
1735
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/cancel-and-place
|
|
1736
|
+
* @param {string} id cancel order id
|
|
1737
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
1738
|
+
* @param {string} type 'market' or 'limit'
|
|
1739
|
+
* @param {string} side 'buy' or 'sell'
|
|
1740
|
+
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1741
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1742
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1743
|
+
* @param {string} [params.timeInForce] ioc, fok
|
|
1744
|
+
* @param {bool} [params.postOnly] true or false whether the order is post-only
|
|
1745
|
+
* @param {bool} [params.reduceOnly] true or false whether the order is reduce-only, only works for ioc and fok order
|
|
1746
|
+
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
1747
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1748
|
+
*/
|
|
1731
1749
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
1732
|
-
/**
|
|
1733
|
-
* @method
|
|
1734
|
-
* @name vertex#editOrder
|
|
1735
|
-
* @description edit a trade order
|
|
1736
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/cancel-and-place
|
|
1737
|
-
* @param {string} id cancel order id
|
|
1738
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
1739
|
-
* @param {string} type 'market' or 'limit'
|
|
1740
|
-
* @param {string} side 'buy' or 'sell'
|
|
1741
|
-
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1742
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1743
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1744
|
-
* @param {string} [params.timeInForce] ioc, fok
|
|
1745
|
-
* @param {bool} [params.postOnly] true or false whether the order is post-only
|
|
1746
|
-
* @param {bool} [params.reduceOnly] true or false whether the order is reduce-only, only works for ioc and fok order
|
|
1747
|
-
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
1748
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1749
|
-
*/
|
|
1750
1750
|
this.checkRequiredCredentials();
|
|
1751
1751
|
const marketType = type.toLowerCase();
|
|
1752
1752
|
const isMarketOrder = marketType === 'market';
|
|
@@ -1963,17 +1963,17 @@ class vertex extends vertex$1 {
|
|
|
1963
1963
|
};
|
|
1964
1964
|
return this.safeStringUpper(timeInForces, timeInForce, timeInForce);
|
|
1965
1965
|
}
|
|
1966
|
+
/**
|
|
1967
|
+
* @method
|
|
1968
|
+
* @name vertex#fetchOrder
|
|
1969
|
+
* @description fetches information on an order made by the user
|
|
1970
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/order
|
|
1971
|
+
* @param {string} id the order id
|
|
1972
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
1973
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1974
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1975
|
+
*/
|
|
1966
1976
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1967
|
-
/**
|
|
1968
|
-
* @method
|
|
1969
|
-
* @name vertex#fetchOrder
|
|
1970
|
-
* @description fetches information on an order made by the user
|
|
1971
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/order
|
|
1972
|
-
* @param {string} id the order id
|
|
1973
|
-
* @param {string} symbol unified symbol of the market the order was made in
|
|
1974
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1975
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1976
|
-
*/
|
|
1977
1977
|
await this.loadMarkets();
|
|
1978
1978
|
const market = this.market(symbol);
|
|
1979
1979
|
const request = {
|
|
@@ -2003,21 +2003,21 @@ class vertex extends vertex$1 {
|
|
|
2003
2003
|
const data = this.safeDict(response, 'data');
|
|
2004
2004
|
return this.parseOrder(data, market);
|
|
2005
2005
|
}
|
|
2006
|
+
/**
|
|
2007
|
+
* @method
|
|
2008
|
+
* @name vertex#fetchOpenOrders
|
|
2009
|
+
* @description fetch all unfilled currently open orders
|
|
2010
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/orders
|
|
2011
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/trigger/queries/list-trigger-orders
|
|
2012
|
+
* @param {string} symbol unified market symbol
|
|
2013
|
+
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2014
|
+
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
2015
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2016
|
+
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
|
2017
|
+
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
2018
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2019
|
+
*/
|
|
2006
2020
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2007
|
-
/**
|
|
2008
|
-
* @method
|
|
2009
|
-
* @name vertex#fetchOpenOrders
|
|
2010
|
-
* @description fetch all unfilled currently open orders
|
|
2011
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/orders
|
|
2012
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/trigger/queries/list-trigger-orders
|
|
2013
|
-
* @param {string} symbol unified market symbol
|
|
2014
|
-
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2015
|
-
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
2016
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2017
|
-
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
|
2018
|
-
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
2019
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2020
|
-
*/
|
|
2021
2021
|
this.checkRequiredCredentials();
|
|
2022
2022
|
await this.loadMarkets();
|
|
2023
2023
|
let userAddress = undefined;
|
|
@@ -2121,20 +2121,20 @@ class vertex extends vertex$1 {
|
|
|
2121
2121
|
const orders = this.safeList(data, 'orders');
|
|
2122
2122
|
return this.parseOrders(orders, market, since, limit);
|
|
2123
2123
|
}
|
|
2124
|
+
/**
|
|
2125
|
+
* @method
|
|
2126
|
+
* @name vertex#fetchOrders
|
|
2127
|
+
* @description fetches information on multiple orders made by the user
|
|
2128
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/trigger/queries/list-trigger-orders
|
|
2129
|
+
* @param {string} symbol unified market symbol
|
|
2130
|
+
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2131
|
+
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
2132
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2133
|
+
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
|
2134
|
+
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
2135
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2136
|
+
*/
|
|
2124
2137
|
async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2125
|
-
/**
|
|
2126
|
-
* @method
|
|
2127
|
-
* @name vertex#fetchOrders
|
|
2128
|
-
* @description fetches information on multiple orders made by the user
|
|
2129
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/trigger/queries/list-trigger-orders
|
|
2130
|
-
* @param {string} symbol unified market symbol
|
|
2131
|
-
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2132
|
-
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
2133
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2134
|
-
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
|
2135
|
-
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
2136
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2137
|
-
*/
|
|
2138
2138
|
this.checkRequiredCredentials();
|
|
2139
2139
|
const stop = this.safeBool2(params, 'stop', 'trigger');
|
|
2140
2140
|
params = this.omit(params, ['stop', 'trigger']);
|
|
@@ -2208,18 +2208,18 @@ class vertex extends vertex$1 {
|
|
|
2208
2208
|
const orders = this.safeList(data, 'orders');
|
|
2209
2209
|
return this.parseOrders(orders, market, since, limit);
|
|
2210
2210
|
}
|
|
2211
|
+
/**
|
|
2212
|
+
* @method
|
|
2213
|
+
* @name vertex#cancelAllOrders
|
|
2214
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/cancel-product-orders
|
|
2215
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/trigger/executes/cancel-product-orders
|
|
2216
|
+
* @description cancel all open orders in a market
|
|
2217
|
+
* @param {string} symbol unified market symbol
|
|
2218
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2219
|
+
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
|
2220
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2221
|
+
*/
|
|
2211
2222
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
2212
|
-
/**
|
|
2213
|
-
* @method
|
|
2214
|
-
* @name vertex#cancelAllOrders
|
|
2215
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/cancel-product-orders
|
|
2216
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/trigger/executes/cancel-product-orders
|
|
2217
|
-
* @description cancel all open orders in a market
|
|
2218
|
-
* @param {string} symbol unified market symbol
|
|
2219
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2220
|
-
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
|
2221
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2222
|
-
*/
|
|
2223
2223
|
this.checkRequiredCredentials();
|
|
2224
2224
|
await this.loadMarkets();
|
|
2225
2225
|
if (symbol === undefined) {
|
|
@@ -2291,32 +2291,32 @@ class vertex extends vertex$1 {
|
|
|
2291
2291
|
}
|
|
2292
2292
|
return response;
|
|
2293
2293
|
}
|
|
2294
|
+
/**
|
|
2295
|
+
* @method
|
|
2296
|
+
* @name vertex#cancelOrder
|
|
2297
|
+
* @description cancels an open order
|
|
2298
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/cancel-orders
|
|
2299
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/trigger/executes/cancel-orders
|
|
2300
|
+
* @param {string} id order id
|
|
2301
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
2302
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2303
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2304
|
+
*/
|
|
2294
2305
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
2295
|
-
/**
|
|
2296
|
-
* @method
|
|
2297
|
-
* @name vertex#cancelOrder
|
|
2298
|
-
* @description cancels an open order
|
|
2299
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/cancel-orders
|
|
2300
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/trigger/executes/cancel-orders
|
|
2301
|
-
* @param {string} id order id
|
|
2302
|
-
* @param {string} symbol unified symbol of the market the order was made in
|
|
2303
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2304
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2305
|
-
*/
|
|
2306
2306
|
return await this.cancelOrders([id], symbol, params);
|
|
2307
2307
|
}
|
|
2308
|
+
/**
|
|
2309
|
+
* @method
|
|
2310
|
+
* @name vertex#cancelOrders
|
|
2311
|
+
* @description cancel multiple orders
|
|
2312
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/cancel-orders
|
|
2313
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/trigger/executes/cancel-orders
|
|
2314
|
+
* @param {string[]} ids order ids
|
|
2315
|
+
* @param {string} [symbol] unified market symbol
|
|
2316
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2317
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2318
|
+
*/
|
|
2308
2319
|
async cancelOrders(ids, symbol = undefined, params = {}) {
|
|
2309
|
-
/**
|
|
2310
|
-
* @method
|
|
2311
|
-
* @name vertex#cancelOrders
|
|
2312
|
-
* @description cancel multiple orders
|
|
2313
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/executes/cancel-orders
|
|
2314
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/trigger/executes/cancel-orders
|
|
2315
|
-
* @param {string[]} ids order ids
|
|
2316
|
-
* @param {string} [symbol] unified market symbol
|
|
2317
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2318
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2319
|
-
*/
|
|
2320
2320
|
this.checkRequiredCredentials();
|
|
2321
2321
|
if (symbol === undefined) {
|
|
2322
2322
|
throw new errors.ArgumentsRequired(this.id + ' cancelOrders() requires a symbol argument');
|
|
@@ -2392,16 +2392,16 @@ class vertex extends vertex$1 {
|
|
|
2392
2392
|
}
|
|
2393
2393
|
return response;
|
|
2394
2394
|
}
|
|
2395
|
+
/**
|
|
2396
|
+
* @method
|
|
2397
|
+
* @name vertex#fetchBalance
|
|
2398
|
+
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
2399
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/subaccount-info
|
|
2400
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2401
|
+
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
2402
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
2403
|
+
*/
|
|
2395
2404
|
async fetchBalance(params = {}) {
|
|
2396
|
-
/**
|
|
2397
|
-
* @method
|
|
2398
|
-
* @name vertex#fetchBalance
|
|
2399
|
-
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
2400
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/subaccount-info
|
|
2401
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2402
|
-
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
2403
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
2404
|
-
*/
|
|
2405
2405
|
let userAddress = undefined;
|
|
2406
2406
|
[userAddress, params] = this.handlePublicAddress('fetchBalance', params);
|
|
2407
2407
|
const request = {
|
|
@@ -2802,17 +2802,17 @@ class vertex extends vertex$1 {
|
|
|
2802
2802
|
'takeProfitPrice': undefined,
|
|
2803
2803
|
});
|
|
2804
2804
|
}
|
|
2805
|
+
/**
|
|
2806
|
+
* @method
|
|
2807
|
+
* @name vertex#fetchPositions
|
|
2808
|
+
* @description fetch all open positions
|
|
2809
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/subaccount-info
|
|
2810
|
+
* @param {string[]} [symbols] list of unified market symbols
|
|
2811
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2812
|
+
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
2813
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
2814
|
+
*/
|
|
2805
2815
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
2806
|
-
/**
|
|
2807
|
-
* @method
|
|
2808
|
-
* @name vertex#fetchPositions
|
|
2809
|
-
* @description fetch all open positions
|
|
2810
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/subaccount-info
|
|
2811
|
-
* @param {string[]} [symbols] list of unified market symbols
|
|
2812
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2813
|
-
* @param {string} [params.user] user address, will default to this.walletAddress if not provided
|
|
2814
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
2815
|
-
*/
|
|
2816
2816
|
let userAddress = undefined;
|
|
2817
2817
|
[userAddress, params] = this.handlePublicAddress('fetchPositions', params);
|
|
2818
2818
|
const request = {
|
|
@@ -2852,19 +2852,19 @@ class vertex extends vertex$1 {
|
|
|
2852
2852
|
//
|
|
2853
2853
|
return this.safeDict(response, 'data', {});
|
|
2854
2854
|
}
|
|
2855
|
+
/**
|
|
2856
|
+
* @method
|
|
2857
|
+
* @name vertex#withdraw
|
|
2858
|
+
* @description make a withdrawal
|
|
2859
|
+
* @see https://docs.vertexprotocol.com/developer-resources/api/withdrawing-on-chain
|
|
2860
|
+
* @param {string} code unified currency code
|
|
2861
|
+
* @param {float} amount the amount to withdraw
|
|
2862
|
+
* @param {string} address the address to withdraw to
|
|
2863
|
+
* @param {string} tag
|
|
2864
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2865
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2866
|
+
*/
|
|
2855
2867
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
2856
|
-
/**
|
|
2857
|
-
* @method
|
|
2858
|
-
* @name vertex#withdraw
|
|
2859
|
-
* @description make a withdrawal
|
|
2860
|
-
* @see https://docs.vertexprotocol.com/developer-resources/api/withdrawing-on-chain
|
|
2861
|
-
* @param {string} code unified currency code
|
|
2862
|
-
* @param {float} amount the amount to withdraw
|
|
2863
|
-
* @param {string} address the address to withdraw to
|
|
2864
|
-
* @param {string} tag
|
|
2865
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2866
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2867
|
-
*/
|
|
2868
2868
|
this.checkRequiredCredentials();
|
|
2869
2869
|
await this.loadMarkets();
|
|
2870
2870
|
const currency = this.currency(code);
|