ccxt 4.2.5__tar.gz → 4.2.7__tar.gz
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.
- {ccxt-4.2.5/ccxt.egg-info → ccxt-4.2.7}/PKG-INFO +4 -4
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/__init__.py +2 -1
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bitmex.py +20 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/__init__.py +2 -1
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/base/exchange.py +2 -2
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/base/ws/aiohttp_client.py +9 -2
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/base/ws/fast_client.py +5 -2
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/base/ws/future.py +14 -1
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bingx.py +7 -1
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bitmex.py +75 -25
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/htx.py +59 -1
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/phemex.py +1 -1
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/woo.py +51 -11
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/base/errors.py +7 -1
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/base/exchange.py +2 -2
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bingx.py +7 -1
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bitmex.py +75 -25
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/htx.py +59 -1
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/phemex.py +1 -1
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/__init__.py +1 -1
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/test_async.py +13 -1
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/test_sync.py +13 -1
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/woo.py +51 -11
- {ccxt-4.2.5 → ccxt-4.2.7/ccxt.egg-info}/PKG-INFO +4 -4
- {ccxt-4.2.5 → ccxt-4.2.7}/package.json +1 -1
- {ccxt-4.2.5 → ccxt-4.2.7}/LICENSE.txt +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/MANIFEST.in +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/README.rst +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/__init__.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/ace.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/alpaca.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/ascendex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bequant.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bigone.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/binance.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/binancecoinm.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/binanceus.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/binanceusdm.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bingx.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bit2c.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bitbank.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bitbay.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bitbns.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bitcoincom.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bitfinex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bitfinex2.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bitflyer.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bitforex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bitget.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bithumb.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bitmart.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bitopro.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bitpanda.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bitrue.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bitso.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bitstamp.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bitteam.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bitvavo.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bl3p.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/blockchaincom.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/btcalpha.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/btcbox.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/btcmarkets.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/btcturk.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/bybit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/cex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/coinbase.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/coinbasepro.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/coincheck.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/coinex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/coinlist.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/coinmate.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/coinone.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/coinsph.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/coinspot.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/cryptocom.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/currencycom.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/delta.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/deribit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/digifinex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/exmo.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/fmfwio.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/gate.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/gateio.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/gemini.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/hitbtc.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/hitbtc3.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/hollaex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/htx.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/huobi.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/huobijp.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/idex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/independentreserve.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/indodax.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/kraken.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/krakenfutures.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/kucoin.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/kucoinfutures.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/kuna.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/latoken.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/lbank.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/luno.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/lykke.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/mercado.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/mexc.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/ndax.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/novadax.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/oceanex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/okcoin.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/okx.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/p2b.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/paymium.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/phemex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/poloniex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/poloniexfutures.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/probit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/timex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/tokocrypto.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/upbit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/wavesexchange.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/wazirx.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/whitebit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/woo.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/yobit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/zaif.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/abstract/zonda.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/ace.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/alpaca.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/ascendex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/ace.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/alpaca.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/ascendex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/base/__init__.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/base/throttler.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/base/ws/__init__.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/base/ws/cache.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/base/ws/client.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/base/ws/functions.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/base/ws/order_book.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/base/ws/order_book_side.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bequant.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bigone.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/binance.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/binancecoinm.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/binanceus.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/binanceusdm.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bit2c.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bitbank.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bitbay.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bitbns.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bitcoincom.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bitfinex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bitfinex2.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bitflyer.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bitforex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bitget.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bithumb.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bitmart.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bitopro.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bitpanda.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bitrue.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bitso.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bitstamp.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bitteam.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bitvavo.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bl3p.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/blockchaincom.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/btcalpha.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/btcbox.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/btcmarkets.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/btcturk.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/bybit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/cex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/coinbase.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/coinbasepro.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/coincheck.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/coinex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/coinlist.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/coinmate.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/coinone.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/coinsph.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/coinspot.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/cryptocom.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/currencycom.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/delta.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/deribit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/digifinex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/exmo.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/flowbtc.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/fmfwio.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/gate.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/gateio.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/gemini.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/hitbtc.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/hitbtc3.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/hollaex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/huobi.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/huobijp.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/idex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/independentreserve.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/indodax.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/kraken.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/krakenfutures.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/kucoin.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/kucoinfutures.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/kuna.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/latoken.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/lbank.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/luno.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/lykke.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/mercado.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/mexc.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/ndax.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/novadax.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/oceanex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/okcoin.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/okx.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/p2b.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/paymium.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/poloniex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/poloniexfutures.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/probit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/timex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/tokocrypto.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/upbit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/wavesexchange.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/wazirx.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/whitebit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/yobit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/zaif.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/async_support/zonda.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/base/__init__.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/base/decimal_to_precision.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/base/precise.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/base/types.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bequant.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bigone.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/binance.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/binancecoinm.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/binanceus.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/binanceusdm.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bit2c.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bitbank.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bitbay.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bitbns.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bitcoincom.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bitfinex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bitfinex2.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bitflyer.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bitforex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bitget.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bithumb.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bitmart.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bitopro.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bitpanda.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bitrue.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bitso.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bitstamp.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bitteam.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bitvavo.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bl3p.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/blockchaincom.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/btcalpha.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/btcbox.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/btcmarkets.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/btcturk.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/bybit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/cex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/coinbase.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/coinbasepro.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/coincheck.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/coinex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/coinlist.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/coinmate.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/coinone.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/coinsph.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/coinspot.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/cryptocom.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/currencycom.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/delta.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/deribit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/digifinex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/exmo.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/flowbtc.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/fmfwio.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/gate.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/gateio.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/gemini.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/hitbtc.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/hitbtc3.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/hollaex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/huobi.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/huobijp.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/idex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/independentreserve.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/indodax.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/kraken.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/krakenfutures.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/kucoin.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/kucoinfutures.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/kuna.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/latoken.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/lbank.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/luno.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/lykke.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/mercado.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/mexc.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/ndax.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/novadax.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/oceanex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/okcoin.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/okx.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/p2b.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/paymium.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/poloniex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/poloniexfutures.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/alpaca.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/ascendex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/bequant.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/binance.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/binancecoinm.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/binanceus.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/binanceusdm.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/bingx.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/bitcoincom.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/bitfinex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/bitfinex2.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/bitget.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/bitmart.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/bitmex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/bitopro.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/bitpanda.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/bitrue.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/bitstamp.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/bitvavo.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/blockchaincom.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/bybit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/cex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/coinbase.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/coinbasepro.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/coinex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/cryptocom.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/currencycom.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/deribit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/exmo.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/gate.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/gateio.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/gemini.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/hitbtc.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/hollaex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/htx.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/huobi.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/huobijp.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/idex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/independentreserve.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/kraken.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/krakenfutures.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/kucoin.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/kucoinfutures.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/luno.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/mexc.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/ndax.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/okcoin.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/okx.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/phemex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/poloniex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/poloniexfutures.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/probit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/upbit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/wazirx.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/whitebit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/pro/woo.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/probit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/static_dependencies/__init__.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/static_dependencies/ecdsa/__init__.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/static_dependencies/ecdsa/_version.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/static_dependencies/ecdsa/curves.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/static_dependencies/ecdsa/der.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/static_dependencies/ecdsa/ecdsa.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/static_dependencies/ecdsa/ellipticcurve.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/static_dependencies/ecdsa/keys.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/static_dependencies/ecdsa/numbertheory.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/static_dependencies/ecdsa/rfc6979.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/static_dependencies/ecdsa/util.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/static_dependencies/keccak/__init__.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/static_dependencies/keccak/keccak.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/__init__.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/__init__.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_account.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_balance.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_borrow_interest.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_borrow_rate.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_calculate_fee.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_crypto.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_currency.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_datetime.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_decimal_to_precision.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_deep_extend.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_deposit_withdrawal.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_exchange_datetime_functions.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_funding_rate_history.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_ledger_entry.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_ledger_item.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_leverage_tier.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_margin_modification.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_market.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_number.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_ohlcv.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_open_interest.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_order.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_order_book.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_position.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_shared_methods.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_status.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_throttle.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_ticker.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_trade.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_trading_fee.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/test/base/test_transaction.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/timex.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/tokocrypto.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/upbit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/wavesexchange.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/wazirx.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/whitebit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/yobit.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/zaif.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt/zonda.py +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt.egg-info/SOURCES.txt +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt.egg-info/dependency_links.txt +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt.egg-info/requires.txt +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/ccxt.egg-info/top_level.txt +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/setup.cfg +0 -0
- {ccxt-4.2.5 → ccxt-4.2.7}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ccxt
|
|
3
|
-
Version: 4.2.
|
|
3
|
+
Version: 4.2.7
|
|
4
4
|
Summary: A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges
|
|
5
5
|
Home-page: https://ccxt.com
|
|
6
6
|
Author: Igor Kroitor
|
|
@@ -222,13 +222,13 @@ Description: # CCXT – CryptoCurrency eXchange Trading Library
|
|
|
222
222
|
|
|
223
223
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
|
224
224
|
|
|
225
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.2.
|
|
226
|
-
* unpkg: https://unpkg.com/ccxt@4.2.
|
|
225
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.2.7/dist/ccxt.browser.js
|
|
226
|
+
* unpkg: https://unpkg.com/ccxt@4.2.7/dist/ccxt.browser.js
|
|
227
227
|
|
|
228
228
|
CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.
|
|
229
229
|
|
|
230
230
|
```HTML
|
|
231
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.2.
|
|
231
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.2.7/dist/ccxt.browser.js"></script>
|
|
232
232
|
```
|
|
233
233
|
|
|
234
234
|
Creates a global `ccxt` object:
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
# ----------------------------------------------------------------------------
|
|
24
24
|
|
|
25
|
-
__version__ = '4.2.
|
|
25
|
+
__version__ = '4.2.7'
|
|
26
26
|
|
|
27
27
|
# ----------------------------------------------------------------------------
|
|
28
28
|
|
|
@@ -76,6 +76,7 @@ from ccxt.base.errors import ExchangeNotAvailable # noqa: F4
|
|
|
76
76
|
from ccxt.base.errors import OnMaintenance # noqa: F401
|
|
77
77
|
from ccxt.base.errors import InvalidNonce # noqa: F401
|
|
78
78
|
from ccxt.base.errors import RequestTimeout # noqa: F401
|
|
79
|
+
from ccxt.base.errors import ExchangeClosedByUser # noqa: F401
|
|
79
80
|
from ccxt.base.errors import error_hierarchy # noqa: F401
|
|
80
81
|
|
|
81
82
|
from ccxt.ace import ace # noqa: F401
|
|
@@ -9,6 +9,7 @@ class ImplicitAPI:
|
|
|
9
9
|
public_get_chat_connected = publicGetChatConnected = Entry('chat/connected', 'public', 'GET', {'cost': 5})
|
|
10
10
|
public_get_chat_pinned = publicGetChatPinned = Entry('chat/pinned', 'public', 'GET', {'cost': 5})
|
|
11
11
|
public_get_funding = publicGetFunding = Entry('funding', 'public', 'GET', {'cost': 5})
|
|
12
|
+
public_get_guild = publicGetGuild = Entry('guild', 'public', 'GET', {'cost': 5})
|
|
12
13
|
public_get_instrument = publicGetInstrument = Entry('instrument', 'public', 'GET', {'cost': 5})
|
|
13
14
|
public_get_instrument_active = publicGetInstrumentActive = Entry('instrument/active', 'public', 'GET', {'cost': 5})
|
|
14
15
|
public_get_instrument_activeandindices = publicGetInstrumentActiveAndIndices = Entry('instrument/activeAndIndices', 'public', 'GET', {'cost': 5})
|
|
@@ -33,6 +34,7 @@ class ImplicitAPI:
|
|
|
33
34
|
public_get_trade_bucketed = publicGetTradeBucketed = Entry('trade/bucketed', 'public', 'GET', {'cost': 5})
|
|
34
35
|
public_get_wallet_assets = publicGetWalletAssets = Entry('wallet/assets', 'public', 'GET', {'cost': 5})
|
|
35
36
|
public_get_wallet_networks = publicGetWalletNetworks = Entry('wallet/networks', 'public', 'GET', {'cost': 5})
|
|
37
|
+
private_get_address = privateGetAddress = Entry('address', 'private', 'GET', {'cost': 5})
|
|
36
38
|
private_get_apikey = privateGetApiKey = Entry('apiKey', 'private', 'GET', {'cost': 5})
|
|
37
39
|
private_get_execution = privateGetExecution = Entry('execution', 'private', 'GET', {'cost': 5})
|
|
38
40
|
private_get_execution_tradehistory = privateGetExecutionTradeHistory = Entry('execution/tradeHistory', 'private', 'GET', {'cost': 5})
|
|
@@ -45,19 +47,31 @@ class ImplicitAPI:
|
|
|
45
47
|
private_get_user_affiliatestatus = privateGetUserAffiliateStatus = Entry('user/affiliateStatus', 'private', 'GET', {'cost': 5})
|
|
46
48
|
private_get_user_checkreferralcode = privateGetUserCheckReferralCode = Entry('user/checkReferralCode', 'private', 'GET', {'cost': 5})
|
|
47
49
|
private_get_user_commission = privateGetUserCommission = Entry('user/commission', 'private', 'GET', {'cost': 5})
|
|
50
|
+
private_get_user_csa = privateGetUserCsa = Entry('user/csa', 'private', 'GET', {'cost': 5})
|
|
48
51
|
private_get_user_depositaddress = privateGetUserDepositAddress = Entry('user/depositAddress', 'private', 'GET', {'cost': 5})
|
|
49
52
|
private_get_user_executionhistory = privateGetUserExecutionHistory = Entry('user/executionHistory', 'private', 'GET', {'cost': 5})
|
|
53
|
+
private_get_user_getwallettransferaccounts = privateGetUserGetWalletTransferAccounts = Entry('user/getWalletTransferAccounts', 'private', 'GET', {'cost': 5})
|
|
50
54
|
private_get_user_margin = privateGetUserMargin = Entry('user/margin', 'private', 'GET', {'cost': 5})
|
|
51
55
|
private_get_user_quotefillratio = privateGetUserQuoteFillRatio = Entry('user/quoteFillRatio', 'private', 'GET', {'cost': 5})
|
|
52
56
|
private_get_user_quotevalueratio = privateGetUserQuoteValueRatio = Entry('user/quoteValueRatio', 'private', 'GET', {'cost': 5})
|
|
57
|
+
private_get_user_staking = privateGetUserStaking = Entry('user/staking', 'private', 'GET', {'cost': 5})
|
|
58
|
+
private_get_user_staking_instruments = privateGetUserStakingInstruments = Entry('user/staking/instruments', 'private', 'GET', {'cost': 5})
|
|
59
|
+
private_get_user_staking_tiers = privateGetUserStakingTiers = Entry('user/staking/tiers', 'private', 'GET', {'cost': 5})
|
|
53
60
|
private_get_user_tradingvolume = privateGetUserTradingVolume = Entry('user/tradingVolume', 'private', 'GET', {'cost': 5})
|
|
61
|
+
private_get_user_unstakingrequests = privateGetUserUnstakingRequests = Entry('user/unstakingRequests', 'private', 'GET', {'cost': 5})
|
|
54
62
|
private_get_user_wallet = privateGetUserWallet = Entry('user/wallet', 'private', 'GET', {'cost': 5})
|
|
55
63
|
private_get_user_wallethistory = privateGetUserWalletHistory = Entry('user/walletHistory', 'private', 'GET', {'cost': 5})
|
|
56
64
|
private_get_user_walletsummary = privateGetUserWalletSummary = Entry('user/walletSummary', 'private', 'GET', {'cost': 5})
|
|
65
|
+
private_get_useraffiliates = privateGetUserAffiliates = Entry('userAffiliates', 'private', 'GET', {'cost': 5})
|
|
57
66
|
private_get_userevent = privateGetUserEvent = Entry('userEvent', 'private', 'GET', {'cost': 5})
|
|
67
|
+
private_post_address = privatePostAddress = Entry('address', 'private', 'POST', {'cost': 5})
|
|
58
68
|
private_post_chat = privatePostChat = Entry('chat', 'private', 'POST', {'cost': 5})
|
|
69
|
+
private_post_guild = privatePostGuild = Entry('guild', 'private', 'POST', {'cost': 5})
|
|
70
|
+
private_post_guild_archive = privatePostGuildArchive = Entry('guild/archive', 'private', 'POST', {'cost': 5})
|
|
59
71
|
private_post_guild_join = privatePostGuildJoin = Entry('guild/join', 'private', 'POST', {'cost': 5})
|
|
72
|
+
private_post_guild_kick = privatePostGuildKick = Entry('guild/kick', 'private', 'POST', {'cost': 5})
|
|
60
73
|
private_post_guild_leave = privatePostGuildLeave = Entry('guild/leave', 'private', 'POST', {'cost': 5})
|
|
74
|
+
private_post_guild_sharestrades = privatePostGuildSharesTrades = Entry('guild/sharesTrades', 'private', 'POST', {'cost': 5})
|
|
61
75
|
private_post_order = privatePostOrder = Entry('order', 'private', 'POST', {'cost': 1})
|
|
62
76
|
private_post_order_cancelallafter = privatePostOrderCancelAllAfter = Entry('order/cancelAllAfter', 'private', 'POST', {'cost': 5})
|
|
63
77
|
private_post_order_closeposition = privatePostOrderClosePosition = Entry('order/closePosition', 'private', 'POST', {'cost': 5})
|
|
@@ -65,6 +79,7 @@ class ImplicitAPI:
|
|
|
65
79
|
private_post_position_leverage = privatePostPositionLeverage = Entry('position/leverage', 'private', 'POST', {'cost': 1})
|
|
66
80
|
private_post_position_risklimit = privatePostPositionRiskLimit = Entry('position/riskLimit', 'private', 'POST', {'cost': 5})
|
|
67
81
|
private_post_position_transfermargin = privatePostPositionTransferMargin = Entry('position/transferMargin', 'private', 'POST', {'cost': 1})
|
|
82
|
+
private_post_user_addsubaccount = privatePostUserAddSubaccount = Entry('user/addSubaccount', 'private', 'POST', {'cost': 5})
|
|
68
83
|
private_post_user_cancelwithdrawal = privatePostUserCancelWithdrawal = Entry('user/cancelWithdrawal', 'private', 'POST', {'cost': 5})
|
|
69
84
|
private_post_user_communicationtoken = privatePostUserCommunicationToken = Entry('user/communicationToken', 'private', 'POST', {'cost': 5})
|
|
70
85
|
private_post_user_confirmemail = privatePostUserConfirmEmail = Entry('user/confirmEmail', 'private', 'POST', {'cost': 5})
|
|
@@ -72,6 +87,11 @@ class ImplicitAPI:
|
|
|
72
87
|
private_post_user_logout = privatePostUserLogout = Entry('user/logout', 'private', 'POST', {'cost': 5})
|
|
73
88
|
private_post_user_preferences = privatePostUserPreferences = Entry('user/preferences', 'private', 'POST', {'cost': 5})
|
|
74
89
|
private_post_user_requestwithdrawal = privatePostUserRequestWithdrawal = Entry('user/requestWithdrawal', 'private', 'POST', {'cost': 5})
|
|
90
|
+
private_post_user_unstakingrequests = privatePostUserUnstakingRequests = Entry('user/unstakingRequests', 'private', 'POST', {'cost': 5})
|
|
91
|
+
private_post_user_updatesubaccount = privatePostUserUpdateSubaccount = Entry('user/updateSubaccount', 'private', 'POST', {'cost': 5})
|
|
92
|
+
private_post_user_wallettransfer = privatePostUserWalletTransfer = Entry('user/walletTransfer', 'private', 'POST', {'cost': 5})
|
|
93
|
+
private_put_guild = privatePutGuild = Entry('guild', 'private', 'PUT', {'cost': 5})
|
|
75
94
|
private_put_order = privatePutOrder = Entry('order', 'private', 'PUT', {'cost': 1})
|
|
76
95
|
private_delete_order = privateDeleteOrder = Entry('order', 'private', 'DELETE', {'cost': 1})
|
|
77
96
|
private_delete_order_all = privateDeleteOrderAll = Entry('order/all', 'private', 'DELETE', {'cost': 1})
|
|
97
|
+
private_delete_user_unstakingrequests = privateDeleteUserUnstakingRequests = Entry('user/unstakingRequests', 'private', 'DELETE', {'cost': 5})
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# -----------------------------------------------------------------------------
|
|
6
6
|
|
|
7
|
-
__version__ = '4.2.
|
|
7
|
+
__version__ = '4.2.7'
|
|
8
8
|
|
|
9
9
|
# -----------------------------------------------------------------------------
|
|
10
10
|
|
|
@@ -55,6 +55,7 @@ from ccxt.base.errors import ExchangeNotAvailable # noqa: F4
|
|
|
55
55
|
from ccxt.base.errors import OnMaintenance # noqa: F401
|
|
56
56
|
from ccxt.base.errors import InvalidNonce # noqa: F401
|
|
57
57
|
from ccxt.base.errors import RequestTimeout # noqa: F401
|
|
58
|
+
from ccxt.base.errors import ExchangeClosedByUser # noqa: F401
|
|
58
59
|
from ccxt.base.errors import error_hierarchy # noqa: F401
|
|
59
60
|
|
|
60
61
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# -----------------------------------------------------------------------------
|
|
4
4
|
|
|
5
|
-
__version__ = '4.2.
|
|
5
|
+
__version__ = '4.2.7'
|
|
6
6
|
|
|
7
7
|
# -----------------------------------------------------------------------------
|
|
8
8
|
|
|
@@ -488,7 +488,7 @@ class Exchange(BaseExchange):
|
|
|
488
488
|
|
|
489
489
|
def on_close(self, client, error):
|
|
490
490
|
if client.error:
|
|
491
|
-
# connection closed due to an error
|
|
491
|
+
# connection closed by the user or due to an error
|
|
492
492
|
pass
|
|
493
493
|
else:
|
|
494
494
|
# server disconnected a working connection
|
|
@@ -6,7 +6,7 @@ from aiohttp import WSMsgType
|
|
|
6
6
|
from .functions import milliseconds, iso8601, is_json_encoded_object
|
|
7
7
|
from ccxt.async_support.base.ws.client import Client
|
|
8
8
|
from ccxt.async_support.base.ws.functions import gunzip, inflate
|
|
9
|
-
from ccxt import NetworkError, RequestTimeout
|
|
9
|
+
from ccxt import NetworkError, RequestTimeout, ExchangeClosedByUser
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class AiohttpClient(Client):
|
|
@@ -92,7 +92,14 @@ class AiohttpClient(Client):
|
|
|
92
92
|
if self.ping_looper:
|
|
93
93
|
self.ping_looper.cancel()
|
|
94
94
|
if self.receive_looper:
|
|
95
|
-
self.receive_looper.cancel()
|
|
95
|
+
self.receive_looper.cancel() # cancel all pending futures stored in self.futures
|
|
96
|
+
for key in self.futures:
|
|
97
|
+
future = self.futures[key]
|
|
98
|
+
if not future.done():
|
|
99
|
+
if future.is_race_future:
|
|
100
|
+
future.cancel() # this is an "internal" future so we want to cancel it silently
|
|
101
|
+
else:
|
|
102
|
+
future.reject(ExchangeClosedByUser('Connection closed by the user'))
|
|
96
103
|
|
|
97
104
|
async def ping_loop(self):
|
|
98
105
|
if self.verbose:
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import asyncio
|
|
4
4
|
import socket
|
|
5
5
|
import collections
|
|
6
|
-
from ccxt import NetworkError
|
|
7
6
|
from ccxt.async_support.base.ws.aiohttp_client import AiohttpClient
|
|
8
7
|
|
|
9
8
|
|
|
@@ -36,7 +35,10 @@ class FastClient(AiohttpClient):
|
|
|
36
35
|
self.stack.append(message)
|
|
37
36
|
|
|
38
37
|
def feed_eof():
|
|
39
|
-
self.
|
|
38
|
+
if self._close_code == 1000: # OK close
|
|
39
|
+
self.on_close(1000)
|
|
40
|
+
else:
|
|
41
|
+
self.on_error(1006) # ABNORMAL_CLOSURE
|
|
40
42
|
|
|
41
43
|
def wrapper(func):
|
|
42
44
|
def parse_frame(buf):
|
|
@@ -56,6 +58,7 @@ class FastClient(AiohttpClient):
|
|
|
56
58
|
try:
|
|
57
59
|
await _self._writer.close(code, message)
|
|
58
60
|
_self._response.close()
|
|
61
|
+
self._close_code = 1000
|
|
59
62
|
except asyncio.CancelledError:
|
|
60
63
|
_self._response.close()
|
|
61
64
|
_self._close_code = 1006
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import asyncio
|
|
2
|
+
from ccxt import ExchangeClosedByUser
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
class Future(asyncio.Future):
|
|
5
6
|
|
|
7
|
+
is_race_future = False
|
|
8
|
+
|
|
6
9
|
def resolve(self, result=None):
|
|
7
10
|
if not self.done():
|
|
8
11
|
self.set_result(result)
|
|
@@ -14,6 +17,8 @@ class Future(asyncio.Future):
|
|
|
14
17
|
@classmethod
|
|
15
18
|
def race(cls, futures):
|
|
16
19
|
future = Future()
|
|
20
|
+
for f in futures:
|
|
21
|
+
f.is_race_future = True
|
|
17
22
|
coro = asyncio.wait(futures, return_when=asyncio.FIRST_COMPLETED)
|
|
18
23
|
task = asyncio.create_task(coro)
|
|
19
24
|
|
|
@@ -24,6 +29,8 @@ class Future(asyncio.Future):
|
|
|
24
29
|
# check for exceptions
|
|
25
30
|
exceptions = []
|
|
26
31
|
for f in complete:
|
|
32
|
+
if f._state == 'CANCELLED':
|
|
33
|
+
continue # was canceled internally
|
|
27
34
|
err = f.exception()
|
|
28
35
|
if err:
|
|
29
36
|
exceptions.append(err)
|
|
@@ -33,7 +40,13 @@ class Future(asyncio.Future):
|
|
|
33
40
|
return
|
|
34
41
|
# else return first result
|
|
35
42
|
else:
|
|
36
|
-
|
|
43
|
+
futures_list = list(complete)
|
|
44
|
+
are_all_canceled = all(f._state == 'CANCELLED' for f in futures_list)
|
|
45
|
+
if are_all_canceled and future._state == 'PENDING':
|
|
46
|
+
future.set_exception(ExchangeClosedByUser('Connection closed by the user'))
|
|
47
|
+
return
|
|
48
|
+
first = futures_list[0]
|
|
49
|
+
first_result = first.result()
|
|
37
50
|
future.set_result(first_result)
|
|
38
51
|
else:
|
|
39
52
|
future.set_exception(exception)
|
|
@@ -2107,6 +2107,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
|
2107
2107
|
:param str id: order id
|
|
2108
2108
|
:param str symbol: unified symbol of the market the order was made in
|
|
2109
2109
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
|
2110
|
+
:param str [params.clientOrderId]: a unique id for the order
|
|
2110
2111
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
|
2111
2112
|
"""
|
|
2112
2113
|
if symbol is None:
|
|
@@ -2115,8 +2116,13 @@ class bingx(Exchange, ImplicitAPI):
|
|
|
2115
2116
|
market = self.market(symbol)
|
|
2116
2117
|
request = {
|
|
2117
2118
|
'symbol': market['id'],
|
|
2118
|
-
'orderId': id,
|
|
2119
2119
|
}
|
|
2120
|
+
clientOrderId = self.safe_string_2(params, 'clientOrderId', 'clientOrderID')
|
|
2121
|
+
params = self.omit(params, ['clientOrderId'])
|
|
2122
|
+
if clientOrderId is not None:
|
|
2123
|
+
request['clientOrderID'] = clientOrderId
|
|
2124
|
+
else:
|
|
2125
|
+
request['orderId'] = id
|
|
2120
2126
|
response = None
|
|
2121
2127
|
marketType, query = self.handle_market_type_and_params('cancelOrder', market, params)
|
|
2122
2128
|
if marketType == 'spot':
|
|
@@ -135,6 +135,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
135
135
|
'chat/connected': 5,
|
|
136
136
|
'chat/pinned': 5,
|
|
137
137
|
'funding': 5,
|
|
138
|
+
'guild': 5,
|
|
138
139
|
'instrument': 5,
|
|
139
140
|
'instrument/active': 5,
|
|
140
141
|
'instrument/activeAndIndices': 5,
|
|
@@ -163,6 +164,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
163
164
|
},
|
|
164
165
|
'private': {
|
|
165
166
|
'get': {
|
|
167
|
+
'address': 5,
|
|
166
168
|
'apiKey': 5,
|
|
167
169
|
'execution': 5,
|
|
168
170
|
'execution/tradeHistory': 5,
|
|
@@ -175,21 +177,33 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
175
177
|
'user/affiliateStatus': 5,
|
|
176
178
|
'user/checkReferralCode': 5,
|
|
177
179
|
'user/commission': 5,
|
|
180
|
+
'user/csa': 5,
|
|
178
181
|
'user/depositAddress': 5,
|
|
179
182
|
'user/executionHistory': 5,
|
|
183
|
+
'user/getWalletTransferAccounts': 5,
|
|
180
184
|
'user/margin': 5,
|
|
181
185
|
'user/quoteFillRatio': 5,
|
|
182
186
|
'user/quoteValueRatio': 5,
|
|
187
|
+
'user/staking': 5,
|
|
188
|
+
'user/staking/instruments': 5,
|
|
189
|
+
'user/staking/tiers': 5,
|
|
183
190
|
'user/tradingVolume': 5,
|
|
191
|
+
'user/unstakingRequests': 5,
|
|
184
192
|
'user/wallet': 5,
|
|
185
193
|
'user/walletHistory': 5,
|
|
186
194
|
'user/walletSummary': 5,
|
|
195
|
+
'userAffiliates': 5,
|
|
187
196
|
'userEvent': 5,
|
|
188
197
|
},
|
|
189
198
|
'post': {
|
|
199
|
+
'address': 5,
|
|
190
200
|
'chat': 5,
|
|
201
|
+
'guild': 5,
|
|
202
|
+
'guild/archive': 5,
|
|
191
203
|
'guild/join': 5,
|
|
204
|
+
'guild/kick': 5,
|
|
192
205
|
'guild/leave': 5,
|
|
206
|
+
'guild/sharesTrades': 5,
|
|
193
207
|
'order': 1,
|
|
194
208
|
'order/cancelAllAfter': 5,
|
|
195
209
|
'order/closePosition': 5,
|
|
@@ -197,6 +211,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
197
211
|
'position/leverage': 1,
|
|
198
212
|
'position/riskLimit': 5,
|
|
199
213
|
'position/transferMargin': 1,
|
|
214
|
+
'user/addSubaccount': 5,
|
|
200
215
|
'user/cancelWithdrawal': 5,
|
|
201
216
|
'user/communicationToken': 5,
|
|
202
217
|
'user/confirmEmail': 5,
|
|
@@ -204,13 +219,18 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
204
219
|
'user/logout': 5,
|
|
205
220
|
'user/preferences': 5,
|
|
206
221
|
'user/requestWithdrawal': 5,
|
|
222
|
+
'user/unstakingRequests': 5,
|
|
223
|
+
'user/updateSubaccount': 5,
|
|
224
|
+
'user/walletTransfer': 5,
|
|
207
225
|
},
|
|
208
226
|
'put': {
|
|
227
|
+
'guild': 5,
|
|
209
228
|
'order': 1,
|
|
210
229
|
},
|
|
211
230
|
'delete': {
|
|
212
231
|
'order': 1,
|
|
213
232
|
'order/all': 1,
|
|
233
|
+
'user/unstakingRequests': 5,
|
|
214
234
|
},
|
|
215
235
|
},
|
|
216
236
|
},
|
|
@@ -1510,13 +1530,11 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
1510
1530
|
fee = None
|
|
1511
1531
|
feeCostString = self.number_to_string(self.convert_from_raw_cost(symbol, self.safe_string(trade, 'execComm')))
|
|
1512
1532
|
if feeCostString is not None:
|
|
1513
|
-
currencyId = self.
|
|
1514
|
-
feeCurrencyCode = self.safe_currency_code(currencyId)
|
|
1515
|
-
feeRateString = self.safe_string(trade, 'commission')
|
|
1533
|
+
currencyId = self.safe_string_2(trade, 'settlCurrency', 'currency')
|
|
1516
1534
|
fee = {
|
|
1517
|
-
'cost':
|
|
1518
|
-
'currency':
|
|
1519
|
-
'rate':
|
|
1535
|
+
'cost': feeCostString,
|
|
1536
|
+
'currency': self.safe_currency_code(currencyId),
|
|
1537
|
+
'rate': self.safe_string(trade, 'commission'),
|
|
1520
1538
|
}
|
|
1521
1539
|
# Trade or Funding
|
|
1522
1540
|
execType = self.safe_string(trade, 'execType')
|
|
@@ -1733,6 +1751,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
1733
1751
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
|
1734
1752
|
:param dict [params.triggerPrice]: the price at which a trigger order is triggered at
|
|
1735
1753
|
:param dict [params.triggerDirection]: the direction whenever the trigger happens with relation to price - 'above' or 'below'
|
|
1754
|
+
:param float [params.trailingAmount]: the quote amount to trail away from the current market price
|
|
1736
1755
|
:returns dict: an `order structure <https://github.com/ccxt/ccxt/wiki/Manual#order-structure>`
|
|
1737
1756
|
"""
|
|
1738
1757
|
await self.load_markets()
|
|
@@ -1740,7 +1759,7 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
1740
1759
|
orderType = self.capitalize(type)
|
|
1741
1760
|
reduceOnly = self.safe_value(params, 'reduceOnly')
|
|
1742
1761
|
if reduceOnly is not None:
|
|
1743
|
-
if (market['
|
|
1762
|
+
if (not market['swap']) and (not market['future']):
|
|
1744
1763
|
raise InvalidOrder(self.id + ' createOrder() does not support reduceOnly for ' + market['type'] + ' orders, reduceOnly orders are supported for swap and future markets only')
|
|
1745
1764
|
brokerId = self.safe_string(self.options, 'brokerId', 'CCXT')
|
|
1746
1765
|
qty = self.parse_to_int(self.amount_to_precision(symbol, amount))
|
|
@@ -1751,35 +1770,42 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
1751
1770
|
'ordType': orderType,
|
|
1752
1771
|
'text': brokerId,
|
|
1753
1772
|
}
|
|
1754
|
-
customTriggerType = (orderType == 'Stop') or (orderType == 'StopLimit') or (orderType == 'MarketIfTouched') or (orderType == 'LimitIfTouched')
|
|
1755
1773
|
# support for unified trigger format
|
|
1756
1774
|
triggerPrice = self.safe_number_n(params, ['triggerPrice', 'stopPx', 'stopPrice'])
|
|
1757
|
-
|
|
1758
|
-
|
|
1775
|
+
trailingAmount = self.safe_string_2(params, 'trailingAmount', 'pegOffsetValue')
|
|
1776
|
+
isTriggerOrder = triggerPrice is not None
|
|
1777
|
+
isTrailingAmountOrder = trailingAmount is not None
|
|
1778
|
+
if isTriggerOrder or isTrailingAmountOrder:
|
|
1759
1779
|
triggerDirection = self.safe_string(params, 'triggerDirection')
|
|
1760
|
-
params = self.omit(params, ['triggerPrice', 'stopPrice', 'stopPx', 'triggerDirection'])
|
|
1761
1780
|
triggerAbove = (triggerDirection == 'above')
|
|
1762
|
-
|
|
1763
|
-
|
|
1781
|
+
if (type == 'limit') or (type == 'market'):
|
|
1782
|
+
self.check_required_argument('createOrder', triggerDirection, 'triggerDirection', ['above', 'below'])
|
|
1764
1783
|
if type == 'limit':
|
|
1765
|
-
request['price'] = float(self.price_to_precision(symbol, price))
|
|
1766
1784
|
if side == 'buy':
|
|
1767
|
-
|
|
1785
|
+
orderType = 'StopLimit' if triggerAbove else 'LimitIfTouched'
|
|
1768
1786
|
else:
|
|
1769
|
-
|
|
1787
|
+
orderType = 'LimitIfTouched' if triggerAbove else 'StopLimit'
|
|
1770
1788
|
elif type == 'market':
|
|
1771
1789
|
if side == 'buy':
|
|
1772
|
-
|
|
1790
|
+
orderType = 'Stop' if triggerAbove else 'MarketIfTouched'
|
|
1773
1791
|
else:
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1792
|
+
orderType = 'MarketIfTouched' if triggerAbove else 'Stop'
|
|
1793
|
+
if isTrailingAmountOrder:
|
|
1794
|
+
isStopSellOrder = (side == 'sell') and ((orderType == 'Stop') or (orderType == 'StopLimit'))
|
|
1795
|
+
isBuyIfTouchedOrder = (side == 'buy') and ((orderType == 'MarketIfTouched') or (orderType == 'LimitIfTouched'))
|
|
1796
|
+
if isStopSellOrder or isBuyIfTouchedOrder:
|
|
1797
|
+
trailingAmount = '-' + trailingAmount
|
|
1798
|
+
request['pegOffsetValue'] = self.parse_to_numeric(trailingAmount)
|
|
1799
|
+
request['pegPriceType'] = 'TrailingStopPeg'
|
|
1800
|
+
else:
|
|
1801
|
+
if triggerPrice is None:
|
|
1802
|
+
# if exchange specific trigger types were provided
|
|
1803
|
+
raise ArgumentsRequired(self.id + ' createOrder() requires a triggerPrice(stopPx|stopPrice) parameter for the ' + orderType + ' order type')
|
|
1804
|
+
request['stopPx'] = self.parse_to_numeric(self.price_to_precision(symbol, triggerPrice))
|
|
1805
|
+
request['ordType'] = orderType
|
|
1806
|
+
params = self.omit(params, ['triggerPrice', 'stopPrice', 'stopPx', 'triggerDirection', 'trailingAmount'])
|
|
1781
1807
|
if (orderType == 'Limit') or (orderType == 'StopLimit') or (orderType == 'LimitIfTouched'):
|
|
1782
|
-
request['price'] =
|
|
1808
|
+
request['price'] = self.parse_to_numeric(self.price_to_precision(symbol, price))
|
|
1783
1809
|
clientOrderId = self.safe_string_2(params, 'clOrdID', 'clientOrderId')
|
|
1784
1810
|
if clientOrderId is not None:
|
|
1785
1811
|
request['clOrdID'] = clientOrderId
|
|
@@ -1790,6 +1816,30 @@ class bitmex(Exchange, ImplicitAPI):
|
|
|
1790
1816
|
async def edit_order(self, id: str, symbol, type, side, amount=None, price=None, params={}):
|
|
1791
1817
|
await self.load_markets()
|
|
1792
1818
|
request = {}
|
|
1819
|
+
trailingAmount = self.safe_string_2(params, 'trailingAmount', 'pegOffsetValue')
|
|
1820
|
+
isTrailingAmountOrder = trailingAmount is not None
|
|
1821
|
+
if isTrailingAmountOrder:
|
|
1822
|
+
triggerDirection = self.safe_string(params, 'triggerDirection')
|
|
1823
|
+
triggerAbove = (triggerDirection == 'above')
|
|
1824
|
+
if (type == 'limit') or (type == 'market'):
|
|
1825
|
+
self.check_required_argument('createOrder', triggerDirection, 'triggerDirection', ['above', 'below'])
|
|
1826
|
+
orderType = None
|
|
1827
|
+
if type == 'limit':
|
|
1828
|
+
if side == 'buy':
|
|
1829
|
+
orderType = 'StopLimit' if triggerAbove else 'LimitIfTouched'
|
|
1830
|
+
else:
|
|
1831
|
+
orderType = 'LimitIfTouched' if triggerAbove else 'StopLimit'
|
|
1832
|
+
elif type == 'market':
|
|
1833
|
+
if side == 'buy':
|
|
1834
|
+
orderType = 'Stop' if triggerAbove else 'MarketIfTouched'
|
|
1835
|
+
else:
|
|
1836
|
+
orderType = 'MarketIfTouched' if triggerAbove else 'Stop'
|
|
1837
|
+
isStopSellOrder = (side == 'sell') and ((orderType == 'Stop') or (orderType == 'StopLimit'))
|
|
1838
|
+
isBuyIfTouchedOrder = (side == 'buy') and ((orderType == 'MarketIfTouched') or (orderType == 'LimitIfTouched'))
|
|
1839
|
+
if isStopSellOrder or isBuyIfTouchedOrder:
|
|
1840
|
+
trailingAmount = '-' + trailingAmount
|
|
1841
|
+
request['pegOffsetValue'] = self.parse_to_numeric(trailingAmount)
|
|
1842
|
+
params = self.omit(params, ['triggerDirection', 'trailingAmount'])
|
|
1793
1843
|
origClOrdID = self.safe_string_2(params, 'origClOrdID', 'clientOrderId')
|
|
1794
1844
|
if origClOrdID is not None:
|
|
1795
1845
|
request['origClOrdID'] = origClOrdID
|
|
@@ -139,7 +139,7 @@ class htx(Exchange, ImplicitAPI):
|
|
|
139
139
|
'repayIsolatedMargin': True,
|
|
140
140
|
'setLeverage': True,
|
|
141
141
|
'setMarginMode': False,
|
|
142
|
-
'setPositionMode':
|
|
142
|
+
'setPositionMode': True,
|
|
143
143
|
'signIn': None,
|
|
144
144
|
'transfer': True,
|
|
145
145
|
'withdraw': True,
|
|
@@ -8216,3 +8216,61 @@ class htx(Exchange, ImplicitAPI):
|
|
|
8216
8216
|
'timestamp': timestamp,
|
|
8217
8217
|
'datetime': self.iso8601(timestamp),
|
|
8218
8218
|
})
|
|
8219
|
+
|
|
8220
|
+
async def set_position_mode(self, hedged, symbol: Str = None, params={}):
|
|
8221
|
+
"""
|
|
8222
|
+
set hedged to True or False
|
|
8223
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-switch-position-mode
|
|
8224
|
+
:see: https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-switch-position-mode
|
|
8225
|
+
:param bool hedged: set to True to for hedged mode, must be set separately for each market in isolated margin mode, only valid for linear markets
|
|
8226
|
+
:param str [symbol]: unified market symbol, required for isolated margin mode
|
|
8227
|
+
:param dict [params]: extra parameters specific to the exchange API endpoint
|
|
8228
|
+
:param str [params.marginMode]: "cross"(default) or "isolated"
|
|
8229
|
+
:returns dict: response from the exchange
|
|
8230
|
+
"""
|
|
8231
|
+
await self.load_markets()
|
|
8232
|
+
posMode = 'dual_side' if hedged else 'single_side'
|
|
8233
|
+
market = None
|
|
8234
|
+
if symbol is not None:
|
|
8235
|
+
market = self.market(symbol)
|
|
8236
|
+
marginMode = None
|
|
8237
|
+
marginMode, params = self.handle_margin_mode_and_params('setPositionMode', params, 'cross')
|
|
8238
|
+
request = {
|
|
8239
|
+
'position_mode': posMode,
|
|
8240
|
+
}
|
|
8241
|
+
response = None
|
|
8242
|
+
if (market is not None) and (market['inverse']):
|
|
8243
|
+
raise BadRequest(self.id + ' setPositionMode can only be used for linear markets')
|
|
8244
|
+
if marginMode == 'isolated':
|
|
8245
|
+
if symbol is None:
|
|
8246
|
+
raise ArgumentsRequired(self.id + ' setPositionMode requires a symbol argument for isolated margin mode')
|
|
8247
|
+
request['margin_account'] = market['id']
|
|
8248
|
+
response = await self.contractPrivatePostLinearSwapApiV1SwapSwitchPositionMode(self.extend(request, params))
|
|
8249
|
+
#
|
|
8250
|
+
# {
|
|
8251
|
+
# "status": "ok",
|
|
8252
|
+
# "data": [
|
|
8253
|
+
# {
|
|
8254
|
+
# "margin_account": "BTC-USDT",
|
|
8255
|
+
# "position_mode": "single_side"
|
|
8256
|
+
# }
|
|
8257
|
+
# ],
|
|
8258
|
+
# "ts": 1566899973811
|
|
8259
|
+
# }
|
|
8260
|
+
#
|
|
8261
|
+
else:
|
|
8262
|
+
request['margin_account'] = 'USDT'
|
|
8263
|
+
response = await self.contractPrivatePostLinearSwapApiV1SwapCrossSwitchPositionMode(self.extend(request, params))
|
|
8264
|
+
#
|
|
8265
|
+
# {
|
|
8266
|
+
# "status": "ok",
|
|
8267
|
+
# "data": [
|
|
8268
|
+
# {
|
|
8269
|
+
# "margin_account": "USDT",
|
|
8270
|
+
# "position_mode": "single_side"
|
|
8271
|
+
# }
|
|
8272
|
+
# ],
|
|
8273
|
+
# "ts": 1566899973811
|
|
8274
|
+
# }
|
|
8275
|
+
#
|
|
8276
|
+
return response
|