ccxt 4.2.6__tar.gz → 4.2.8__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.6/ccxt.egg-info → ccxt-4.2.8}/PKG-INFO +4 -4
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/__init__.py +1 -1
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bitmex.py +20 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/__init__.py +1 -1
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/base/exchange.py +1 -1
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/binance.py +16 -5
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bingx.py +15 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bitmex.py +24 -6
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bybit.py +19 -3
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/okx.py +40 -15
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/phemex.py +1 -1
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/base/exchange.py +2 -2
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/binance.py +16 -5
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bingx.py +15 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bitmex.py +24 -6
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bybit.py +19 -3
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/okx.py +40 -15
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/phemex.py +1 -1
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/__init__.py +1 -1
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/coinbasepro.py +0 -1
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/cryptocom.py +8 -3
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/poloniex.py +2 -1
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/test_async.py +16 -1
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/test_sync.py +16 -1
- {ccxt-4.2.6 → ccxt-4.2.8/ccxt.egg-info}/PKG-INFO +4 -4
- {ccxt-4.2.6 → ccxt-4.2.8}/package.json +1 -1
- {ccxt-4.2.6 → ccxt-4.2.8}/LICENSE.txt +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/MANIFEST.in +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/README.rst +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/__init__.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/ace.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/alpaca.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/ascendex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bequant.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bigone.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/binance.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/binancecoinm.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/binanceus.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/binanceusdm.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bingx.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bit2c.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bitbank.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bitbay.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bitbns.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bitcoincom.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bitfinex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bitfinex2.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bitflyer.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bitforex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bitget.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bithumb.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bitmart.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bitopro.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bitpanda.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bitrue.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bitso.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bitstamp.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bitteam.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bitvavo.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bl3p.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/blockchaincom.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/btcalpha.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/btcbox.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/btcmarkets.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/btcturk.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/bybit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/cex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/coinbase.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/coinbasepro.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/coincheck.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/coinex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/coinlist.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/coinmate.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/coinone.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/coinsph.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/coinspot.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/cryptocom.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/currencycom.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/delta.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/deribit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/digifinex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/exmo.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/fmfwio.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/gate.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/gateio.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/gemini.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/hitbtc.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/hitbtc3.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/hollaex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/htx.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/huobi.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/huobijp.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/idex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/independentreserve.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/indodax.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/kraken.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/krakenfutures.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/kucoin.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/kucoinfutures.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/kuna.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/latoken.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/lbank.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/luno.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/lykke.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/mercado.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/mexc.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/ndax.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/novadax.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/oceanex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/okcoin.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/okx.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/p2b.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/paymium.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/phemex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/poloniex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/poloniexfutures.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/probit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/timex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/tokocrypto.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/upbit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/wavesexchange.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/wazirx.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/whitebit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/woo.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/yobit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/zaif.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/abstract/zonda.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/ace.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/alpaca.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/ascendex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/ace.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/alpaca.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/ascendex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/base/__init__.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/base/throttler.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/base/ws/__init__.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/base/ws/aiohttp_client.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/base/ws/cache.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/base/ws/client.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/base/ws/fast_client.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/base/ws/functions.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/base/ws/future.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/base/ws/order_book.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/base/ws/order_book_side.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bequant.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bigone.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/binancecoinm.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/binanceus.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/binanceusdm.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bit2c.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bitbank.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bitbay.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bitbns.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bitcoincom.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bitfinex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bitfinex2.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bitflyer.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bitforex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bitget.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bithumb.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bitmart.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bitopro.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bitpanda.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bitrue.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bitso.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bitstamp.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bitteam.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bitvavo.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/bl3p.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/blockchaincom.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/btcalpha.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/btcbox.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/btcmarkets.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/btcturk.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/cex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/coinbase.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/coinbasepro.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/coincheck.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/coinex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/coinlist.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/coinmate.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/coinone.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/coinsph.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/coinspot.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/cryptocom.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/currencycom.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/delta.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/deribit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/digifinex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/exmo.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/flowbtc.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/fmfwio.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/gate.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/gateio.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/gemini.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/hitbtc.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/hitbtc3.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/hollaex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/htx.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/huobi.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/huobijp.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/idex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/independentreserve.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/indodax.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/kraken.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/krakenfutures.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/kucoin.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/kucoinfutures.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/kuna.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/latoken.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/lbank.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/luno.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/lykke.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/mercado.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/mexc.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/ndax.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/novadax.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/oceanex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/okcoin.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/p2b.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/paymium.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/poloniex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/poloniexfutures.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/probit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/timex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/tokocrypto.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/upbit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/wavesexchange.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/wazirx.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/whitebit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/woo.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/yobit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/zaif.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/async_support/zonda.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/base/__init__.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/base/decimal_to_precision.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/base/errors.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/base/precise.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/base/types.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bequant.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bigone.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/binancecoinm.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/binanceus.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/binanceusdm.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bit2c.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bitbank.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bitbay.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bitbns.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bitcoincom.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bitfinex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bitfinex2.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bitflyer.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bitforex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bitget.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bithumb.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bitmart.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bitopro.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bitpanda.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bitrue.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bitso.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bitstamp.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bitteam.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bitvavo.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/bl3p.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/blockchaincom.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/btcalpha.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/btcbox.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/btcmarkets.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/btcturk.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/cex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/coinbase.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/coinbasepro.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/coincheck.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/coinex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/coinlist.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/coinmate.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/coinone.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/coinsph.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/coinspot.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/cryptocom.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/currencycom.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/delta.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/deribit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/digifinex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/exmo.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/flowbtc.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/fmfwio.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/gate.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/gateio.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/gemini.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/hitbtc.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/hitbtc3.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/hollaex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/htx.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/huobi.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/huobijp.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/idex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/independentreserve.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/indodax.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/kraken.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/krakenfutures.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/kucoin.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/kucoinfutures.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/kuna.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/latoken.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/lbank.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/luno.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/lykke.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/mercado.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/mexc.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/ndax.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/novadax.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/oceanex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/okcoin.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/p2b.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/paymium.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/poloniex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/poloniexfutures.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/alpaca.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/ascendex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/bequant.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/binance.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/binancecoinm.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/binanceus.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/binanceusdm.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/bingx.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/bitcoincom.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/bitfinex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/bitfinex2.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/bitget.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/bitmart.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/bitmex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/bitopro.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/bitpanda.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/bitrue.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/bitstamp.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/bitvavo.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/blockchaincom.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/bybit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/cex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/coinbase.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/coinex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/currencycom.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/deribit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/exmo.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/gate.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/gateio.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/gemini.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/hitbtc.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/hollaex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/htx.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/huobi.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/huobijp.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/idex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/independentreserve.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/kraken.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/krakenfutures.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/kucoin.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/kucoinfutures.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/luno.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/mexc.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/ndax.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/okcoin.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/okx.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/phemex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/poloniexfutures.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/probit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/upbit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/wazirx.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/whitebit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/pro/woo.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/probit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/static_dependencies/__init__.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/__init__.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/_version.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/curves.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/der.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/ecdsa.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/ellipticcurve.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/keys.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/numbertheory.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/rfc6979.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/static_dependencies/ecdsa/util.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/static_dependencies/keccak/__init__.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/static_dependencies/keccak/keccak.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/__init__.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/__init__.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_account.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_balance.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_borrow_interest.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_borrow_rate.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_calculate_fee.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_crypto.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_currency.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_datetime.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_decimal_to_precision.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_deep_extend.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_deposit_withdrawal.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_exchange_datetime_functions.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_funding_rate_history.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_ledger_entry.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_ledger_item.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_leverage_tier.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_margin_modification.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_market.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_number.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_ohlcv.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_open_interest.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_order.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_order_book.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_position.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_shared_methods.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_status.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_throttle.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_ticker.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_trade.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_trading_fee.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/test/base/test_transaction.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/timex.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/tokocrypto.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/upbit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/wavesexchange.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/wazirx.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/whitebit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/woo.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/yobit.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/zaif.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt/zonda.py +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt.egg-info/SOURCES.txt +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt.egg-info/dependency_links.txt +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt.egg-info/requires.txt +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/ccxt.egg-info/top_level.txt +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/setup.cfg +0 -0
- {ccxt-4.2.6 → ccxt-4.2.8}/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.8
|
|
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.8/dist/ccxt.browser.js
|
|
226
|
+
* unpkg: https://unpkg.com/ccxt@4.2.8/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.8/dist/ccxt.browser.js"></script>
|
|
232
232
|
```
|
|
233
233
|
|
|
234
234
|
Creates a global `ccxt` object:
|
|
@@ -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})
|
|
@@ -4199,6 +4199,8 @@ class binance(Exchange, ImplicitAPI):
|
|
|
4199
4199
|
:param str [params.marginMode]: 'cross' or 'isolated', for spot margin trading
|
|
4200
4200
|
:param boolean [params.sor]: *spot only* whether to use SOR(Smart Order Routing) or not, default is False
|
|
4201
4201
|
:param boolean [params.test]: *spot only* whether to use the test endpoint or not, default is False
|
|
4202
|
+
:param float [params.trailingPercent]: the percent to trail away from the current market price
|
|
4203
|
+
:param float [params.trailingTriggerPrice]: the price to trigger a trailing order, default uses the price argument
|
|
4202
4204
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
|
4203
4205
|
"""
|
|
4204
4206
|
await self.load_markets()
|
|
@@ -4238,6 +4240,8 @@ class binance(Exchange, ImplicitAPI):
|
|
|
4238
4240
|
:param float|None price: the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
4239
4241
|
:param dict params: extra parameters specific to the exchange API endpoint
|
|
4240
4242
|
:param str|None params['marginMode']: 'cross' or 'isolated', for spot margin trading
|
|
4243
|
+
:param float [params.trailingPercent]: the percent to trail away from the current market price
|
|
4244
|
+
:param float [params.trailingTriggerPrice]: the price to trigger a trailing order, default uses the price argument
|
|
4241
4245
|
:returns dict: request to be sent to the exchange
|
|
4242
4246
|
"""
|
|
4243
4247
|
market = self.market(symbol)
|
|
@@ -4251,9 +4255,12 @@ class binance(Exchange, ImplicitAPI):
|
|
|
4251
4255
|
stopLossPrice = self.safe_value(params, 'stopLossPrice', triggerPrice) # fallback to stopLoss
|
|
4252
4256
|
takeProfitPrice = self.safe_value(params, 'takeProfitPrice')
|
|
4253
4257
|
trailingDelta = self.safe_value(params, 'trailingDelta')
|
|
4258
|
+
trailingTriggerPrice = self.safe_string_2(params, 'trailingTriggerPrice', 'activationPrice', price)
|
|
4259
|
+
trailingPercent = self.safe_string_2(params, 'trailingPercent', 'callbackRate')
|
|
4260
|
+
isTrailingPercentOrder = trailingPercent is not None
|
|
4254
4261
|
isStopLoss = stopLossPrice is not None or trailingDelta is not None
|
|
4255
4262
|
isTakeProfit = takeProfitPrice is not None
|
|
4256
|
-
params = self.omit(params, ['type', 'newClientOrderId', 'clientOrderId', 'postOnly', 'stopLossPrice', 'takeProfitPrice', 'stopPrice', 'triggerPrice'])
|
|
4263
|
+
params = self.omit(params, ['type', 'newClientOrderId', 'clientOrderId', 'postOnly', 'stopLossPrice', 'takeProfitPrice', 'stopPrice', 'triggerPrice', 'trailingTriggerPrice', 'trailingPercent'])
|
|
4257
4264
|
marginMode, query = self.handle_margin_mode_and_params('createOrder', params)
|
|
4258
4265
|
request = {
|
|
4259
4266
|
'symbol': market['id'],
|
|
@@ -4270,7 +4277,12 @@ class binance(Exchange, ImplicitAPI):
|
|
|
4270
4277
|
params = self.omit(params, 'reduceOnly')
|
|
4271
4278
|
uppercaseType = type.upper()
|
|
4272
4279
|
stopPrice = None
|
|
4273
|
-
if
|
|
4280
|
+
if isTrailingPercentOrder:
|
|
4281
|
+
uppercaseType = 'TRAILING_STOP_MARKET'
|
|
4282
|
+
request['callbackRate'] = trailingPercent
|
|
4283
|
+
if trailingTriggerPrice is not None:
|
|
4284
|
+
request['activationPrice'] = self.price_to_precision(symbol, trailingTriggerPrice)
|
|
4285
|
+
elif isStopLoss:
|
|
4274
4286
|
stopPrice = stopLossPrice
|
|
4275
4287
|
if isMarketOrder:
|
|
4276
4288
|
# spot STOP_LOSS market orders are not a valid order type
|
|
@@ -4381,9 +4393,8 @@ class binance(Exchange, ImplicitAPI):
|
|
|
4381
4393
|
stopPriceIsRequired = True
|
|
4382
4394
|
elif uppercaseType == 'TRAILING_STOP_MARKET':
|
|
4383
4395
|
quantityIsRequired = True
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
raise InvalidOrder(self.id + ' createOrder() requires a callbackRate extra param for a ' + type + ' order')
|
|
4396
|
+
if trailingPercent is None:
|
|
4397
|
+
raise InvalidOrder(self.id + ' createOrder() requires a trailingPercent param for a ' + type + ' order')
|
|
4387
4398
|
if quantityIsRequired:
|
|
4388
4399
|
request['quantity'] = self.amount_to_precision(symbol, amount)
|
|
4389
4400
|
if priceIsRequired:
|
|
@@ -12,6 +12,7 @@ from ccxt.base.types import Balances, Currency, Int, Market, Order, OrderBook, O
|
|
|
12
12
|
from typing import List
|
|
13
13
|
from ccxt.base.errors import ExchangeError
|
|
14
14
|
from ccxt.base.errors import PermissionDenied
|
|
15
|
+
from ccxt.base.errors import AccountSuspended
|
|
15
16
|
from ccxt.base.errors import ArgumentsRequired
|
|
16
17
|
from ccxt.base.errors import BadRequest
|
|
17
18
|
from ccxt.base.errors import BadSymbol
|
|
@@ -369,6 +370,7 @@ class bingx(Exchange, ImplicitAPI):
|
|
|
369
370
|
'80014': BadRequest,
|
|
370
371
|
'80016': OrderNotFound,
|
|
371
372
|
'80017': OrderNotFound,
|
|
373
|
+
'100414': AccountSuspended, # {"code":100414,"msg":"Code: 100414, Msg: risk control check fail,code(1)","debugMsg":""}
|
|
372
374
|
'100437': BadRequest, # {"code":100437,"msg":"The withdrawal amount is lower than the minimum limit, please re-enter.","timestamp":1689258588845}
|
|
373
375
|
},
|
|
374
376
|
'broad': {},
|
|
@@ -1794,11 +1796,24 @@ class bingx(Exchange, ImplicitAPI):
|
|
|
1794
1796
|
# }
|
|
1795
1797
|
#
|
|
1796
1798
|
if isinstance(response, str):
|
|
1799
|
+
# broken api engine : order-ids are too long numbers(i.e. 1742930526912864656)
|
|
1800
|
+
# and json.loadscan not handle them in JS, so we have to use .parse_json # however, when order has an attached SL/TP, their value types need extra parsing
|
|
1801
|
+
response = self.fix_stringified_json_members(response)
|
|
1797
1802
|
response = self.parse_json(response)
|
|
1798
1803
|
data = self.safe_value(response, 'data', {})
|
|
1799
1804
|
order = self.safe_value(data, 'order', data)
|
|
1800
1805
|
return self.parse_order(order, market)
|
|
1801
1806
|
|
|
1807
|
+
def fix_stringified_json_members(self, content):
|
|
1808
|
+
# when stringified json has members with their values also stringified, like:
|
|
1809
|
+
# '{"code":0, "data":{"order":{"orderId":1742968678528512345,"symbol":"BTC-USDT", "takeProfit":"{\"type\":\"TAKE_PROFIT\",\"stopPrice\":43320.1}","reduceOnly":false}}}'
|
|
1810
|
+
# we can fix with below manipulations
|
|
1811
|
+
# @ts-ignore
|
|
1812
|
+
modifiedContent = content.replace('\\', '')
|
|
1813
|
+
modifiedContent = modifiedContent.replace('"{', '{')
|
|
1814
|
+
modifiedContent = modifiedContent.replace('}"', '}')
|
|
1815
|
+
return modifiedContent
|
|
1816
|
+
|
|
1802
1817
|
async def create_orders(self, orders: List[OrderRequest], params={}):
|
|
1803
1818
|
"""
|
|
1804
1819
|
create a list of trade orders
|
|
@@ -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')
|
|
@@ -3324,6 +3324,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
|
3324
3324
|
"""
|
|
3325
3325
|
create a trade order
|
|
3326
3326
|
:see: https://bybit-exchange.github.io/docs/v5/order/create-order
|
|
3327
|
+
:see: https://bybit-exchange.github.io/docs/v5/position/trading-stop
|
|
3327
3328
|
:param str symbol: unified symbol of the market to create an order in
|
|
3328
3329
|
:param str type: 'market' or 'limit'
|
|
3329
3330
|
:param str side: 'buy' or 'sell'
|
|
@@ -3345,6 +3346,8 @@ class bybit(Exchange, ImplicitAPI):
|
|
|
3345
3346
|
:param float [params.takeProfit.triggerPrice]: take profit trigger price
|
|
3346
3347
|
:param dict [params.stopLoss]: *stopLoss object in params* containing the triggerPrice at which the attached stop loss order will be triggered
|
|
3347
3348
|
:param float [params.stopLoss.triggerPrice]: stop loss trigger price
|
|
3349
|
+
:param str [params.trailingAmount]: the quote amount to trail away from the current market price
|
|
3350
|
+
:param str [params.trailingTriggerPrice]: the price to trigger a trailing order, default uses the price argument
|
|
3348
3351
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
|
3349
3352
|
"""
|
|
3350
3353
|
await self.load_markets()
|
|
@@ -3354,8 +3357,14 @@ class bybit(Exchange, ImplicitAPI):
|
|
|
3354
3357
|
isUsdcSettled = market['settle'] == 'USDC'
|
|
3355
3358
|
if isUsdcSettled and not isUnifiedAccount:
|
|
3356
3359
|
return await self.create_usdc_order(symbol, type, side, amount, price, params)
|
|
3360
|
+
trailingAmount = self.safe_string_2(params, 'trailingAmount', 'trailingStop')
|
|
3361
|
+
isTrailingAmountOrder = trailingAmount is not None
|
|
3357
3362
|
orderRequest = self.create_order_request(symbol, type, side, amount, price, params)
|
|
3358
|
-
response =
|
|
3363
|
+
response = None
|
|
3364
|
+
if isTrailingAmountOrder:
|
|
3365
|
+
response = await self.privatePostV5PositionTradingStop(orderRequest)
|
|
3366
|
+
else:
|
|
3367
|
+
response = await self.privatePostV5OrderCreate(orderRequest) # already extended inside createOrderRequest
|
|
3359
3368
|
#
|
|
3360
3369
|
# {
|
|
3361
3370
|
# "retCode": 0,
|
|
@@ -3449,12 +3458,19 @@ class bybit(Exchange, ImplicitAPI):
|
|
|
3449
3458
|
takeProfitTriggerPrice = self.safe_value(params, 'takeProfitPrice')
|
|
3450
3459
|
stopLoss = self.safe_value(params, 'stopLoss')
|
|
3451
3460
|
takeProfit = self.safe_value(params, 'takeProfit')
|
|
3461
|
+
trailingTriggerPrice = self.safe_string_2(params, 'trailingTriggerPrice', 'activePrice', price)
|
|
3462
|
+
trailingAmount = self.safe_string_2(params, 'trailingAmount', 'trailingStop')
|
|
3463
|
+
isTrailingAmountOrder = trailingAmount is not None
|
|
3452
3464
|
isStopLossTriggerOrder = stopLossTriggerPrice is not None
|
|
3453
3465
|
isTakeProfitTriggerOrder = takeProfitTriggerPrice is not None
|
|
3454
3466
|
isStopLoss = stopLoss is not None
|
|
3455
3467
|
isTakeProfit = takeProfit is not None
|
|
3456
3468
|
isBuy = side == 'buy'
|
|
3457
|
-
if
|
|
3469
|
+
if isTrailingAmountOrder:
|
|
3470
|
+
if trailingTriggerPrice is not None:
|
|
3471
|
+
request['activePrice'] = self.price_to_precision(symbol, trailingTriggerPrice)
|
|
3472
|
+
request['trailingStop'] = trailingAmount
|
|
3473
|
+
elif triggerPrice is not None:
|
|
3458
3474
|
triggerDirection = self.safe_string(params, 'triggerDirection')
|
|
3459
3475
|
params = self.omit(params, ['triggerPrice', 'stopPrice', 'triggerDirection'])
|
|
3460
3476
|
if market['spot']:
|
|
@@ -3493,7 +3509,7 @@ class bybit(Exchange, ImplicitAPI):
|
|
|
3493
3509
|
elif market['option']:
|
|
3494
3510
|
# mandatory field for options
|
|
3495
3511
|
request['orderLinkId'] = self.uuid16()
|
|
3496
|
-
params = self.omit(params, ['stopPrice', 'timeInForce', 'stopLossPrice', 'takeProfitPrice', 'postOnly', 'clientOrderId', 'triggerPrice', 'stopLoss', 'takeProfit'])
|
|
3512
|
+
params = self.omit(params, ['stopPrice', 'timeInForce', 'stopLossPrice', 'takeProfitPrice', 'postOnly', 'clientOrderId', 'triggerPrice', 'stopLoss', 'takeProfit', 'trailingAmount', 'trailingTriggerPrice'])
|
|
3497
3513
|
return self.extend(request, params)
|
|
3498
3514
|
|
|
3499
3515
|
async def create_orders(self, orders: List[OrderRequest], params={}):
|
|
@@ -2505,6 +2505,8 @@ class okx(Exchange, ImplicitAPI):
|
|
|
2505
2505
|
stopLossDefined = (stopLoss is not None)
|
|
2506
2506
|
takeProfit = self.safe_value(params, 'takeProfit')
|
|
2507
2507
|
takeProfitDefined = (takeProfit is not None)
|
|
2508
|
+
trailingPercent = self.safe_string_2(params, 'trailingPercent', 'callbackRatio')
|
|
2509
|
+
isTrailingPercentOrder = trailingPercent is not None
|
|
2508
2510
|
defaultMarginMode = self.safe_string_2(self.options, 'defaultMarginMode', 'marginMode', 'cross')
|
|
2509
2511
|
marginMode = self.safe_string_2(params, 'marginMode', 'tdMode') # cross or isolated, tdMode not ommited so be extended into the request
|
|
2510
2512
|
margin = False
|
|
@@ -2530,7 +2532,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
2530
2532
|
isMarketOrder = type == 'market'
|
|
2531
2533
|
postOnly = False
|
|
2532
2534
|
postOnly, params = self.handle_post_only(isMarketOrder, type == 'post_only', params)
|
|
2533
|
-
params = self.omit(params, ['currency', 'ccy', 'marginMode', 'timeInForce', 'stopPrice', 'triggerPrice', 'clientOrderId', 'stopLossPrice', 'takeProfitPrice', 'slOrdPx', 'tpOrdPx', 'margin', 'stopLoss', 'takeProfit'])
|
|
2535
|
+
params = self.omit(params, ['currency', 'ccy', 'marginMode', 'timeInForce', 'stopPrice', 'triggerPrice', 'clientOrderId', 'stopLossPrice', 'takeProfitPrice', 'slOrdPx', 'tpOrdPx', 'margin', 'stopLoss', 'takeProfit', 'trailingPercent'])
|
|
2534
2536
|
ioc = (timeInForce == 'IOC') or (type == 'ioc')
|
|
2535
2537
|
fok = (timeInForce == 'FOK') or (type == 'fok')
|
|
2536
2538
|
trigger = (triggerPrice is not None) or (type == 'trigger')
|
|
@@ -2574,7 +2576,11 @@ class okx(Exchange, ImplicitAPI):
|
|
|
2574
2576
|
request['ordType'] = 'ioc'
|
|
2575
2577
|
elif fok:
|
|
2576
2578
|
request['ordType'] = 'fok'
|
|
2577
|
-
if
|
|
2579
|
+
if isTrailingPercentOrder:
|
|
2580
|
+
convertedTrailingPercent = Precise.string_div(trailingPercent, '100')
|
|
2581
|
+
request['callbackRatio'] = convertedTrailingPercent
|
|
2582
|
+
request['ordType'] = 'move_order_stop'
|
|
2583
|
+
elif stopLossDefined or takeProfitDefined:
|
|
2578
2584
|
if stopLossDefined:
|
|
2579
2585
|
stopLossTriggerPrice = self.safe_value_n(stopLoss, ['triggerPrice', 'stopPrice', 'slTriggerPx'])
|
|
2580
2586
|
if stopLossTriggerPrice is None:
|
|
@@ -2683,6 +2689,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
2683
2689
|
:param float [params.stopLoss.price]: used for stop loss limit orders, not used for stop loss market price orders
|
|
2684
2690
|
:param str [params.stopLoss.type]: 'market' or 'limit' used to specify the stop loss price type
|
|
2685
2691
|
:param str [params.positionSide]: if position mode is one-way: set to 'net', if position mode is hedge-mode: set to 'long' or 'short'
|
|
2692
|
+
:param str [params.trailingPercent]: the percent to trail away from the current market price
|
|
2686
2693
|
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
|
2687
2694
|
"""
|
|
2688
2695
|
await self.load_markets()
|
|
@@ -2690,7 +2697,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
2690
2697
|
request = self.create_order_request(symbol, type, side, amount, price, params)
|
|
2691
2698
|
method = self.safe_string(self.options, 'createOrder', 'privatePostTradeBatchOrders')
|
|
2692
2699
|
requestOrdType = self.safe_string(request, 'ordType')
|
|
2693
|
-
if (requestOrdType == 'trigger') or (requestOrdType == 'conditional') or (
|
|
2700
|
+
if (requestOrdType == 'trigger') or (requestOrdType == 'conditional') or (requestOrdType == 'move_order_stop') or (type == 'move_order_stop') or (type == 'oco') or (type == 'iceberg') or (type == 'twap'):
|
|
2694
2701
|
method = 'privatePostTradeOrderAlgo'
|
|
2695
2702
|
if (method != 'privatePostTradeOrder') and (method != 'privatePostTradeOrderAlgo') and (method != 'privatePostTradeBatchOrders'):
|
|
2696
2703
|
raise ExchangeError(self.id + ' createOrder() self.options["createOrder"] must be either privatePostTradeBatchOrders or privatePostTradeOrder or privatePostTradeOrderAlgo')
|
|
@@ -2866,16 +2873,19 @@ class okx(Exchange, ImplicitAPI):
|
|
|
2866
2873
|
"""
|
|
2867
2874
|
cancels an open order
|
|
2868
2875
|
:see: https://www.okx.com/docs-v5/en/#order-book-trading-trade-post-cancel-order
|
|
2876
|
+
:see: https://www.okx.com/docs-v5/en/#order-book-trading-algo-trading-post-cancel-algo-order
|
|
2869
2877
|
:param str id: order id
|
|
2870
2878
|
:param str symbol: unified symbol of the market the order was made in
|
|
2871
2879
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
|
2872
2880
|
:param boolean [params.trigger]: True if trigger orders
|
|
2881
|
+
:param boolean [params.trailing]: set to True if you want to cancel a trailing order
|
|
2873
2882
|
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
|
|
2874
2883
|
"""
|
|
2875
2884
|
if symbol is None:
|
|
2876
2885
|
raise ArgumentsRequired(self.id + ' cancelOrder() requires a symbol argument')
|
|
2877
2886
|
stop = self.safe_value_2(params, 'stop', 'trigger')
|
|
2878
|
-
|
|
2887
|
+
trailing = self.safe_value(params, 'trailing', False)
|
|
2888
|
+
if stop or trailing:
|
|
2879
2889
|
orderInner = await self.cancel_orders([id], symbol, params)
|
|
2880
2890
|
return self.safe_value(orderInner, 0)
|
|
2881
2891
|
await self.load_markets()
|
|
@@ -2917,6 +2927,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
2917
2927
|
:param str symbol: unified market symbol
|
|
2918
2928
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
|
2919
2929
|
:param boolean [params.trigger]: whether the order is a stop/trigger order
|
|
2930
|
+
:param boolean [params.trailing]: set to True if you want to cancel trailing orders
|
|
2920
2931
|
:returns dict: an list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
2921
2932
|
"""
|
|
2922
2933
|
# TODO : the original endpoint signature differs, according to that you can skip individual symbol and assign ids in batch. At self moment, `params` is not being used too.
|
|
@@ -2931,7 +2942,8 @@ class okx(Exchange, ImplicitAPI):
|
|
|
2931
2942
|
clientOrderIds = self.parse_ids(self.safe_value_2(params, 'clOrdId', 'clientOrderId'))
|
|
2932
2943
|
algoIds = self.parse_ids(self.safe_value(params, 'algoId'))
|
|
2933
2944
|
stop = self.safe_value_2(params, 'stop', 'trigger')
|
|
2934
|
-
|
|
2945
|
+
trailing = self.safe_value(params, 'trailing', False)
|
|
2946
|
+
if stop or trailing:
|
|
2935
2947
|
method = 'privatePostTradeCancelAlgos'
|
|
2936
2948
|
if clientOrderIds is None:
|
|
2937
2949
|
ids = self.parse_ids(ids)
|
|
@@ -2942,7 +2954,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
2942
2954
|
'instId': market['id'],
|
|
2943
2955
|
})
|
|
2944
2956
|
for i in range(0, len(ids)):
|
|
2945
|
-
if stop:
|
|
2957
|
+
if trailing or stop:
|
|
2946
2958
|
request.append({
|
|
2947
2959
|
'algoId': ids[i],
|
|
2948
2960
|
'instId': market['id'],
|
|
@@ -3351,7 +3363,6 @@ class okx(Exchange, ImplicitAPI):
|
|
|
3351
3363
|
|
|
3352
3364
|
async def fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}) -> List[Order]:
|
|
3353
3365
|
"""
|
|
3354
|
-
Fetch orders that are still open
|
|
3355
3366
|
fetch all unfilled currently open orders
|
|
3356
3367
|
:see: https://www.okx.com/docs-v5/en/#order-book-trading-trade-get-order-list
|
|
3357
3368
|
:see: https://www.okx.com/docs-v5/en/#order-book-trading-algo-trading-get-algo-order-list
|
|
@@ -3364,6 +3375,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
3364
3375
|
:param str [params.ordType]: "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
|
|
3365
3376
|
:param str [params.algoId]: Algo ID "'433845797218942976'"
|
|
3366
3377
|
:param boolean [params.paginate]: default False, when True will automatically paginate by calling self endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
3378
|
+
:param boolean [params.trailing]: set to True if you want to fetch trailing orders
|
|
3367
3379
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
3368
3380
|
"""
|
|
3369
3381
|
await self.load_markets()
|
|
@@ -3393,12 +3405,16 @@ class okx(Exchange, ImplicitAPI):
|
|
|
3393
3405
|
method = self.safe_string(params, 'method', defaultMethod)
|
|
3394
3406
|
ordType = self.safe_string(params, 'ordType')
|
|
3395
3407
|
stop = self.safe_value_2(params, 'stop', 'trigger')
|
|
3396
|
-
|
|
3408
|
+
trailing = self.safe_value(params, 'trailing', False)
|
|
3409
|
+
if trailing or stop or (ordType in algoOrderTypes):
|
|
3397
3410
|
method = 'privateGetTradeOrdersAlgoPending'
|
|
3411
|
+
if trailing:
|
|
3412
|
+
request['ordType'] = 'move_order_stop'
|
|
3413
|
+
elif stop or (ordType in algoOrderTypes):
|
|
3398
3414
|
if stop:
|
|
3399
3415
|
if ordType is None:
|
|
3400
3416
|
raise ArgumentsRequired(self.id + ' fetchOpenOrders() requires an "ordType" string parameter, "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"')
|
|
3401
|
-
query = self.omit(params, ['method', 'stop', 'trigger'])
|
|
3417
|
+
query = self.omit(params, ['method', 'stop', 'trigger', 'trailing'])
|
|
3402
3418
|
response = None
|
|
3403
3419
|
if method == 'privateGetTradeOrdersAlgoPending':
|
|
3404
3420
|
response = await self.privateGetTradeOrdersAlgoPending(self.extend(request, query))
|
|
@@ -3515,6 +3531,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
3515
3531
|
:param str [params.ordType]: "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
|
|
3516
3532
|
:param str [params.algoId]: Algo ID "'433845797218942976'"
|
|
3517
3533
|
:param int [params.until]: timestamp in ms to fetch orders for
|
|
3534
|
+
:param boolean [params.trailing]: set to True if you want to fetch trailing orders
|
|
3518
3535
|
:returns dict: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
3519
3536
|
"""
|
|
3520
3537
|
await self.load_markets()
|
|
@@ -3546,7 +3563,11 @@ class okx(Exchange, ImplicitAPI):
|
|
|
3546
3563
|
method = self.safe_string(params, 'method', defaultMethod)
|
|
3547
3564
|
ordType = self.safe_string(params, 'ordType')
|
|
3548
3565
|
stop = self.safe_value_2(params, 'stop', 'trigger')
|
|
3549
|
-
|
|
3566
|
+
trailing = self.safe_value(params, 'trailing', False)
|
|
3567
|
+
if trailing:
|
|
3568
|
+
method = 'privateGetTradeOrdersAlgoHistory'
|
|
3569
|
+
request['ordType'] = 'move_order_stop'
|
|
3570
|
+
elif stop or (ordType in algoOrderTypes):
|
|
3550
3571
|
method = 'privateGetTradeOrdersAlgoHistory'
|
|
3551
3572
|
algoId = self.safe_string(params, 'algoId')
|
|
3552
3573
|
if algoId is not None:
|
|
@@ -3555,7 +3576,6 @@ class okx(Exchange, ImplicitAPI):
|
|
|
3555
3576
|
if stop:
|
|
3556
3577
|
if ordType is None:
|
|
3557
3578
|
raise ArgumentsRequired(self.id + ' fetchCanceledOrders() requires an "ordType" string parameter, "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"')
|
|
3558
|
-
request['ordType'] = ordType
|
|
3559
3579
|
else:
|
|
3560
3580
|
if since is not None:
|
|
3561
3581
|
request['begin'] = since
|
|
@@ -3563,7 +3583,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
3563
3583
|
if until is not None:
|
|
3564
3584
|
request['end'] = until
|
|
3565
3585
|
query = self.omit(query, ['until', 'till'])
|
|
3566
|
-
send = self.omit(query, ['method', 'stop', '
|
|
3586
|
+
send = self.omit(query, ['method', 'stop', 'trigger', 'trailing'])
|
|
3567
3587
|
response = None
|
|
3568
3588
|
if method == 'privateGetTradeOrdersAlgoHistory':
|
|
3569
3589
|
response = await self.privateGetTradeOrdersAlgoHistory(self.extend(request, send))
|
|
@@ -3687,6 +3707,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
3687
3707
|
:param int [params.until]: timestamp in ms to fetch orders for
|
|
3688
3708
|
:param boolean [params.paginate]: default False, when True will automatically paginate by calling self endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
3689
3709
|
:param str [params.method]: method to be used, either 'privateGetTradeOrdersHistory', 'privateGetTradeOrdersHistoryArchive' or 'privateGetTradeOrdersAlgoHistory' default is 'privateGetTradeOrdersHistory'
|
|
3710
|
+
:param boolean [params.trailing]: set to True if you want to fetch trailing orders
|
|
3690
3711
|
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
|
3691
3712
|
"""
|
|
3692
3713
|
await self.load_markets()
|
|
@@ -3721,12 +3742,16 @@ class okx(Exchange, ImplicitAPI):
|
|
|
3721
3742
|
method = self.safe_string(params, 'method', defaultMethod)
|
|
3722
3743
|
ordType = self.safe_string(params, 'ordType')
|
|
3723
3744
|
stop = self.safe_value_2(params, 'stop', 'trigger')
|
|
3724
|
-
|
|
3745
|
+
trailing = self.safe_value(params, 'trailing', False)
|
|
3746
|
+
if trailing or stop or (ordType in algoOrderTypes):
|
|
3725
3747
|
method = 'privateGetTradeOrdersAlgoHistory'
|
|
3748
|
+
request['state'] = 'effective'
|
|
3749
|
+
if trailing:
|
|
3750
|
+
request['ordType'] = 'move_order_stop'
|
|
3751
|
+
elif stop or (ordType in algoOrderTypes):
|
|
3726
3752
|
if stop:
|
|
3727
3753
|
if ordType is None:
|
|
3728
3754
|
raise ArgumentsRequired(self.id + ' fetchClosedOrders() requires an "ordType" string parameter, "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"')
|
|
3729
|
-
request['state'] = 'effective'
|
|
3730
3755
|
else:
|
|
3731
3756
|
if since is not None:
|
|
3732
3757
|
request['begin'] = since
|
|
@@ -3735,7 +3760,7 @@ class okx(Exchange, ImplicitAPI):
|
|
|
3735
3760
|
request['end'] = until
|
|
3736
3761
|
query = self.omit(query, ['until', 'till'])
|
|
3737
3762
|
request['state'] = 'filled'
|
|
3738
|
-
send = self.omit(query, ['method', 'stop', 'trigger'])
|
|
3763
|
+
send = self.omit(query, ['method', 'stop', 'trigger', 'trailing'])
|
|
3739
3764
|
response = None
|
|
3740
3765
|
if method == 'privateGetTradeOrdersAlgoHistory':
|
|
3741
3766
|
response = await self.privateGetTradeOrdersAlgoHistory(self.extend(request, send))
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# -----------------------------------------------------------------------------
|
|
6
6
|
|
|
7
|
-
__version__ = '4.2.
|
|
7
|
+
__version__ = '4.2.8'
|
|
8
8
|
|
|
9
9
|
# -----------------------------------------------------------------------------
|
|
10
10
|
|
|
@@ -597,7 +597,7 @@ class Exchange(object):
|
|
|
597
597
|
url,
|
|
598
598
|
data=body,
|
|
599
599
|
headers=request_headers,
|
|
600
|
-
timeout=
|
|
600
|
+
timeout=(self.timeout / 1000),
|
|
601
601
|
proxies=proxies,
|
|
602
602
|
verify=self.verify and self.validateServerSsl
|
|
603
603
|
)
|