ccxt 4.2.7__tar.gz → 4.2.9__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.7/ccxt.egg-info → ccxt-4.2.9}/PKG-INFO +4 -4
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/__init__.py +1 -1
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/__init__.py +1 -1
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/base/exchange.py +1 -1
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/binance.py +16 -5
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bingx.py +15 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bitmart.py +101 -21
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bybit.py +19 -3
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/okx.py +40 -15
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/base/exchange.py +1 -1
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/binance.py +16 -5
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bingx.py +15 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bitmart.py +101 -21
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bybit.py +19 -3
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/okx.py +40 -15
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/__init__.py +1 -1
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/binance.py +13 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/bitget.py +3 -1
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/bitmart.py +14 -2
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/bybit.py +3 -1
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/coinbasepro.py +0 -1
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/cryptocom.py +8 -3
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/poloniex.py +2 -1
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/test_async.py +10 -1
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/test_sync.py +10 -1
- {ccxt-4.2.7 → ccxt-4.2.9/ccxt.egg-info}/PKG-INFO +4 -4
- {ccxt-4.2.7 → ccxt-4.2.9}/package.json +1 -1
- {ccxt-4.2.7 → ccxt-4.2.9}/LICENSE.txt +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/MANIFEST.in +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/README.rst +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/__init__.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/ace.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/alpaca.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/ascendex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bequant.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bigone.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/binance.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/binancecoinm.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/binanceus.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/binanceusdm.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bingx.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bit2c.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bitbank.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bitbay.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bitbns.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bitcoincom.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bitfinex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bitfinex2.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bitflyer.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bitforex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bitget.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bithumb.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bitmart.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bitmex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bitopro.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bitpanda.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bitrue.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bitso.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bitstamp.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bitteam.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bitvavo.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bl3p.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/blockchaincom.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/btcalpha.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/btcbox.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/btcmarkets.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/btcturk.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/bybit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/cex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/coinbase.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/coinbasepro.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/coincheck.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/coinex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/coinlist.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/coinmate.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/coinone.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/coinsph.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/coinspot.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/cryptocom.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/currencycom.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/delta.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/deribit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/digifinex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/exmo.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/fmfwio.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/gate.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/gateio.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/gemini.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/hitbtc.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/hitbtc3.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/hollaex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/htx.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/huobi.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/huobijp.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/idex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/independentreserve.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/indodax.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/kraken.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/krakenfutures.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/kucoin.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/kucoinfutures.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/kuna.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/latoken.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/lbank.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/luno.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/lykke.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/mercado.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/mexc.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/ndax.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/novadax.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/oceanex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/okcoin.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/okx.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/p2b.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/paymium.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/phemex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/poloniex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/poloniexfutures.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/probit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/timex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/tokocrypto.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/upbit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/wavesexchange.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/wazirx.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/whitebit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/woo.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/yobit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/zaif.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/abstract/zonda.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/ace.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/alpaca.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/ascendex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/ace.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/alpaca.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/ascendex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/base/__init__.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/base/throttler.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/base/ws/__init__.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/base/ws/aiohttp_client.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/base/ws/cache.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/base/ws/client.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/base/ws/fast_client.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/base/ws/functions.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/base/ws/future.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/base/ws/order_book.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/base/ws/order_book_side.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bequant.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bigone.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/binancecoinm.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/binanceus.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/binanceusdm.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bit2c.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bitbank.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bitbay.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bitbns.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bitcoincom.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bitfinex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bitfinex2.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bitflyer.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bitforex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bitget.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bithumb.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bitmex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bitopro.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bitpanda.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bitrue.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bitso.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bitstamp.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bitteam.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bitvavo.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/bl3p.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/blockchaincom.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/btcalpha.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/btcbox.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/btcmarkets.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/btcturk.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/cex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/coinbase.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/coinbasepro.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/coincheck.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/coinex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/coinlist.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/coinmate.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/coinone.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/coinsph.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/coinspot.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/cryptocom.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/currencycom.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/delta.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/deribit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/digifinex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/exmo.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/flowbtc.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/fmfwio.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/gate.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/gateio.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/gemini.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/hitbtc.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/hitbtc3.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/hollaex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/htx.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/huobi.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/huobijp.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/idex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/independentreserve.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/indodax.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/kraken.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/krakenfutures.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/kucoin.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/kucoinfutures.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/kuna.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/latoken.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/lbank.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/luno.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/lykke.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/mercado.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/mexc.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/ndax.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/novadax.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/oceanex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/okcoin.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/p2b.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/paymium.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/phemex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/poloniex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/poloniexfutures.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/probit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/timex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/tokocrypto.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/upbit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/wavesexchange.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/wazirx.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/whitebit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/woo.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/yobit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/zaif.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/async_support/zonda.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/base/__init__.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/base/decimal_to_precision.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/base/errors.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/base/precise.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/base/types.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bequant.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bigone.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/binancecoinm.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/binanceus.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/binanceusdm.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bit2c.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bitbank.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bitbay.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bitbns.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bitcoincom.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bitfinex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bitfinex2.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bitflyer.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bitforex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bitget.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bithumb.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bitmex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bitopro.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bitpanda.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bitrue.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bitso.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bitstamp.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bitteam.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bitvavo.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/bl3p.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/blockchaincom.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/btcalpha.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/btcbox.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/btcmarkets.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/btcturk.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/cex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/coinbase.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/coinbasepro.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/coincheck.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/coinex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/coinlist.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/coinmate.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/coinone.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/coinsph.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/coinspot.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/cryptocom.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/currencycom.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/delta.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/deribit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/digifinex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/exmo.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/flowbtc.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/fmfwio.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/gate.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/gateio.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/gemini.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/hitbtc.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/hitbtc3.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/hollaex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/htx.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/huobi.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/huobijp.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/idex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/independentreserve.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/indodax.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/kraken.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/krakenfutures.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/kucoin.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/kucoinfutures.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/kuna.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/latoken.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/lbank.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/luno.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/lykke.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/mercado.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/mexc.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/ndax.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/novadax.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/oceanex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/okcoin.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/p2b.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/paymium.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/phemex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/poloniex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/poloniexfutures.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/alpaca.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/ascendex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/bequant.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/binancecoinm.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/binanceus.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/binanceusdm.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/bingx.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/bitcoincom.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/bitfinex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/bitfinex2.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/bitmex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/bitopro.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/bitpanda.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/bitrue.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/bitstamp.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/bitvavo.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/blockchaincom.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/cex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/coinbase.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/coinex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/currencycom.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/deribit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/exmo.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/gate.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/gateio.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/gemini.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/hitbtc.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/hollaex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/htx.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/huobi.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/huobijp.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/idex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/independentreserve.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/kraken.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/krakenfutures.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/kucoin.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/kucoinfutures.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/luno.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/mexc.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/ndax.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/okcoin.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/okx.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/phemex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/poloniexfutures.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/probit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/upbit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/wazirx.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/whitebit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/pro/woo.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/probit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/static_dependencies/__init__.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/static_dependencies/ecdsa/__init__.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/static_dependencies/ecdsa/_version.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/static_dependencies/ecdsa/curves.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/static_dependencies/ecdsa/der.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/static_dependencies/ecdsa/ecdsa.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/static_dependencies/ecdsa/ellipticcurve.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/static_dependencies/ecdsa/keys.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/static_dependencies/ecdsa/numbertheory.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/static_dependencies/ecdsa/rfc6979.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/static_dependencies/ecdsa/util.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/static_dependencies/keccak/__init__.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/static_dependencies/keccak/keccak.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/__init__.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/__init__.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_account.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_balance.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_borrow_interest.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_borrow_rate.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_calculate_fee.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_crypto.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_currency.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_datetime.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_decimal_to_precision.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_deep_extend.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_deposit_withdrawal.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_exchange_datetime_functions.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_funding_rate_history.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_ledger_entry.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_ledger_item.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_leverage_tier.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_margin_modification.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_market.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_number.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_ohlcv.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_open_interest.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_order.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_order_book.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_position.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_shared_methods.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_status.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_throttle.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_ticker.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_trade.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_trading_fee.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/test/base/test_transaction.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/timex.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/tokocrypto.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/upbit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/wavesexchange.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/wazirx.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/whitebit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/woo.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/yobit.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/zaif.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt/zonda.py +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt.egg-info/SOURCES.txt +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt.egg-info/dependency_links.txt +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt.egg-info/requires.txt +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/ccxt.egg-info/top_level.txt +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/setup.cfg +0 -0
- {ccxt-4.2.7 → ccxt-4.2.9}/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.9
|
|
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.9/dist/ccxt.browser.js
|
|
226
|
+
* unpkg: https://unpkg.com/ccxt@4.2.9/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.9/dist/ccxt.browser.js"></script>
|
|
232
232
|
```
|
|
233
233
|
|
|
234
234
|
Creates a global `ccxt` object:
|
|
@@ -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
|
|
@@ -21,6 +21,7 @@ from ccxt.base.errors import OrderNotFound
|
|
|
21
21
|
from ccxt.base.errors import NotSupported
|
|
22
22
|
from ccxt.base.errors import RateLimitExceeded
|
|
23
23
|
from ccxt.base.errors import ExchangeNotAvailable
|
|
24
|
+
from ccxt.base.errors import OnMaintenance
|
|
24
25
|
from ccxt.base.errors import InvalidNonce
|
|
25
26
|
from ccxt.base.errors import AuthenticationError
|
|
26
27
|
from ccxt.base.decimal_to_precision import TRUNCATE
|
|
@@ -323,7 +324,11 @@ class bitmart(Exchange, ImplicitAPI):
|
|
|
323
324
|
'30012': AuthenticationError, # 403, Header X-BM-KEY is forbidden to request it
|
|
324
325
|
'30013': RateLimitExceeded, # 429, Request too many requests
|
|
325
326
|
'30014': ExchangeNotAvailable, # 503, Service unavailable
|
|
326
|
-
#
|
|
327
|
+
'30016': OnMaintenance, # 200, Service maintenance, the function is temporarily unavailable
|
|
328
|
+
'30017': RateLimitExceeded, # 418, Your account request is temporarily rejected due to violation of current limiting rules
|
|
329
|
+
'30018': BadRequest, # 503, Request Body requires JSON format
|
|
330
|
+
'30019': PermissionDenied, # 200, You do not have the permissions to perform self operation
|
|
331
|
+
# funding account & sub account errors
|
|
327
332
|
'60000': BadRequest, # 400, Invalid request(maybe the body is empty, or the int parameter passes string data)
|
|
328
333
|
'60001': BadRequest, # 400, Asset account type does not exist
|
|
329
334
|
'60002': BadRequest, # 400, currency does not exist
|
|
@@ -340,13 +345,31 @@ class bitmart(Exchange, ImplicitAPI):
|
|
|
340
345
|
'60020': PermissionDenied, # 403, Your account is not allowed to recharge
|
|
341
346
|
'60021': PermissionDenied, # 403, Your account is not allowed to withdraw
|
|
342
347
|
'60022': PermissionDenied, # 403, No withdrawals for 24 hours
|
|
348
|
+
'60026': PermissionDenied, # 403, Sub-account does not have permission to operate
|
|
349
|
+
'60027': PermissionDenied, # 403, Only supports sub-account calls
|
|
350
|
+
'60028': AccountSuspended, # 403, Account is disabled for security reasons, please contact customer service
|
|
351
|
+
'60029': AccountSuspended, # 403, The account is frozen by the master account, please contact the master account to unfreeze the account
|
|
343
352
|
'60030': BadRequest, # 405, Method Not Allowed
|
|
344
353
|
'60031': BadRequest, # 415, Unsupported Media Type
|
|
345
354
|
'60050': ExchangeError, # 500, User account not found
|
|
346
355
|
'60051': ExchangeError, # 500, Internal Server Error
|
|
347
356
|
'61001': InsufficientFunds, # {"message":"Balance not enough","code":61001,"trace":"b85ea1f8-b9af-4001-ac5f-9e061fe93d78","data":{}}
|
|
348
|
-
'61003': BadRequest, # {"message":"sub-account not found","code":61003,"trace":"b35ec2fd-0bc9-4ef2-a3c0-6f78d4f335a4","data":{}}
|
|
349
|
-
#
|
|
357
|
+
'61003': BadRequest, # 400, {"message":"sub-account not found","code":61003,"trace":"b35ec2fd-0bc9-4ef2-a3c0-6f78d4f335a4","data":{}}
|
|
358
|
+
'61004': BadRequest, # 400, Duplicate requests(such an existing requestNo)
|
|
359
|
+
'61005': BadRequest, # 403, Asset transfer between accounts is not available
|
|
360
|
+
'61006': NotSupported, # 403, The sub-account api only supports organization accounts
|
|
361
|
+
'61007': ExchangeError, # 403, Please complete your institution verification to enable withdrawal function.
|
|
362
|
+
'61008': ExchangeError, # 403, Suspend transfer out
|
|
363
|
+
# spot public errors
|
|
364
|
+
'70000': ExchangeError, # 200, no data
|
|
365
|
+
'70001': BadRequest, # 200, request param can not be null
|
|
366
|
+
'70002': BadSymbol, # 200, symbol is invalid
|
|
367
|
+
'71001': BadRequest, # 200, after is invalid
|
|
368
|
+
'71002': BadRequest, # 200, before is invalid
|
|
369
|
+
'71003': BadRequest, # 200, request after or before is invalid
|
|
370
|
+
'71004': BadRequest, # 200, request kline count limit
|
|
371
|
+
'71005': BadRequest, # 200, request step error
|
|
372
|
+
# spot & margin errors
|
|
350
373
|
'50000': BadRequest, # 400, Bad Request
|
|
351
374
|
'50001': BadSymbol, # 400, Symbol not found
|
|
352
375
|
'50002': BadRequest, # 400, From Or To format error
|
|
@@ -366,26 +389,75 @@ class bitmart(Exchange, ImplicitAPI):
|
|
|
366
389
|
'50016': BadRequest, # 400, Maximum limit is %d
|
|
367
390
|
'50017': BadRequest, # 400, RequestParam offset is required
|
|
368
391
|
'50018': BadRequest, # 400, Minimum offset is 1
|
|
369
|
-
'50019':
|
|
370
|
-
'51004': InsufficientFunds, # {"message":"Exceed the maximum number of borrows available.","code":51004,"trace":"4030b753-9beb-44e6-8352-1633c5edcd47","data":{}}
|
|
371
|
-
# '50019': ExchangeError, # 400, Invalid status. validate status is [1=Failed, 2=Success, 3=Frozen Failed, 4=Frozen Success, 5=Partially Filled, 6=Fully Fulled, 7=Canceling, 8=Canceled
|
|
392
|
+
'50019': ExchangeError, # 400, Invalid status. validate status is [1=Failed, 2=Success, 3=Frozen Failed, 4=Frozen Success, 5=Partially Filled, 6=Fully Fulled, 7=Canceling, 8=Canceled] '50020': InsufficientFunds, # 400, Balance not enough
|
|
372
393
|
'50020': InsufficientFunds, # 400, Balance not enough
|
|
373
394
|
'50021': BadRequest, # 400, Invalid %s
|
|
374
395
|
'50022': ExchangeNotAvailable, # 400, Service unavailable
|
|
375
396
|
'50023': BadSymbol, # 400, This Symbol can't place order by api
|
|
376
|
-
'
|
|
377
|
-
'
|
|
378
|
-
'
|
|
397
|
+
'50024': BadRequest, # 400, Order book size over 200
|
|
398
|
+
'50025': BadRequest, # 400, Maximum price is %s
|
|
399
|
+
'50026': BadRequest, # 400, The buy order price cannot be higher than the open price
|
|
400
|
+
'50027': BadRequest, # 400, The sell order price cannot be lower than the open price
|
|
401
|
+
'50028': BadRequest, # 400, Missing parameters
|
|
402
|
+
'50029': InvalidOrder, # 400, {"message":"param not match : size * price >=1000","code":50029,"trace":"f931f030-b692-401b-a0c5-65edbeadc598","data":{}}
|
|
403
|
+
'50030': OrderNotFound, # 400, {"message":"Order is already canceled","code":50030,"trace":"8d6f64ee-ad26-45a4-9efd-1080f9fca1fa","data":{}}
|
|
404
|
+
'50031': OrderNotFound, # 400, Order is already completed
|
|
405
|
+
'50032': OrderNotFound, # 400, {"message":"Order does not exist","code":50032,"trace":"8d6b482d-4bf2-4e6c-aab2-9dcd22bf2481","data":{}}
|
|
406
|
+
'50033': InvalidOrder, # 400, The order quantity should be greater than 0 and less than or equal to 10
|
|
379
407
|
# below Error codes used interchangeably for both failed postOnly and IOC orders depending on market price and order side
|
|
380
|
-
'
|
|
381
|
-
'
|
|
382
|
-
'
|
|
408
|
+
'50034': InvalidOrder, # 400, {"message":"The price is high and there is no matching depth","code":50034,"trace":"ebfae59a-ba69-4735-86b2-0ed7b9ca14ea","data":{}}
|
|
409
|
+
'50035': InvalidOrder, # 400, {"message":"The price is low and there is no matching depth","code":50035,"trace":"677f01c7-8b88-4346-b097-b4226c75c90e","data":{}}
|
|
410
|
+
'50036': ExchangeError, # 400, Cancel failed, order is not revocable status
|
|
411
|
+
'50037': BadRequest, # 400, The maximum length of clientOrderId cannot exceed 32
|
|
412
|
+
'50038': BadRequest, # 400, ClientOrderId only allows a combination of numbers and letters
|
|
413
|
+
'50039': BadRequest, # 400, Order_id and clientOrderId cannot be empty at the same time
|
|
414
|
+
'50040': BadSymbol, # 400, Symbol Not Available
|
|
415
|
+
'50041': ExchangeError, # 400, Out of query time range
|
|
416
|
+
'50042': BadRequest, # 400, clientOrderId is duplicate
|
|
417
|
+
'51000': BadSymbol, # 400, Currency not found
|
|
418
|
+
'51001': ExchangeError, # 400, Margin Account not Opened
|
|
419
|
+
'51002': ExchangeError, # 400, Margin Account Not Available
|
|
420
|
+
'51003': ExchangeError, # 400, Account Limit
|
|
421
|
+
'51004': InsufficientFunds, # 400, {"message":"Exceed the maximum number of borrows available.","code":51004,"trace":"4030b753-9beb-44e6-8352-1633c5edcd47","data":{}}
|
|
422
|
+
'51005': InvalidOrder, # 400, Less than the minimum borrowable amount
|
|
423
|
+
'51006': InvalidOrder, # 400, Exceeds the amount to be repaid
|
|
424
|
+
'51007': BadRequest, # 400, order_mode not found
|
|
425
|
+
'51008': ExchangeError, # 400, Operation is limited, please try again later
|
|
426
|
+
'51009': InvalidOrder, # 400, Parameter mismatch: limit order/market order quantity should be greater than the minimum number of should buy/sell
|
|
427
|
+
'51010': InvalidOrder, # 400, Parameter mismatch: limit order price should be greater than the minimum buy price
|
|
428
|
+
'51011': InvalidOrder, # 400, {"message":"param not match : size * price >=5","code":51011,"trace":"525e1d27bfd34d60b2d90ba13a7c0aa9.74.16696421352220797","data":{}}
|
|
429
|
+
'51012': InvalidOrder, # 400, Parameter mismatch: limit order price should be greater than the minimum buy price
|
|
430
|
+
'51013': InvalidOrder, # 400, Parameter mismatch: Limit order quantity * price should be greater than the minimum transaction amount
|
|
431
|
+
'51014': InvalidOrder, # 400, Participation mismatch: the number of market order buy orders should be greater than the minimum buyable amount
|
|
432
|
+
'51015': InvalidOrder, # 400, Parameter mismatch: the price of market order buy order placed is too small
|
|
433
|
+
'52000': BadRequest, # 400, Unsupported OrderMode Type
|
|
434
|
+
'52001': BadRequest, # 400, Unsupported Trade Type
|
|
435
|
+
'52002': BadRequest, # 400, Unsupported Side Type
|
|
436
|
+
'52003': BadRequest, # 400, Unsupported Query State Type
|
|
437
|
+
'52004': BadRequest, # 400, End time must be greater than or equal to Start time
|
|
383
438
|
'53000': AccountSuspended, # 403, Your account is frozen due to security policies. Please contact customer service
|
|
384
|
-
'53001': AccountSuspended, # {"message":"Your kyc country is restricted. Please contact customer service.","code":53001,"trace":"8b445940-c123-4de9-86d7-73c5be2e7a24","data":{}}
|
|
439
|
+
'53001': AccountSuspended, # 403, {"message":"Your kyc country is restricted. Please contact customer service.","code":53001,"trace":"8b445940-c123-4de9-86d7-73c5be2e7a24","data":{}}
|
|
440
|
+
'53002': PermissionDenied, # 403, Your account has not yet completed the kyc advanced certification, please complete first
|
|
441
|
+
'53003': PermissionDenied, # 403 No permission, please contact the main account
|
|
442
|
+
'53005': PermissionDenied, # 403 Don't have permission to access the interface
|
|
443
|
+
'53006': PermissionDenied, # 403 Please complete your personal verification(Starter)
|
|
444
|
+
'53007': PermissionDenied, # 403 Please complete your personal verification(Advanced)
|
|
445
|
+
'53008': PermissionDenied, # 403 Services is not available in your countries and areas
|
|
446
|
+
'53009': PermissionDenied, # 403 Your account has not yet completed the qr code certification, please complete first
|
|
447
|
+
'53010': PermissionDenied, # 403 This account is restricted from borrowing
|
|
385
448
|
'57001': BadRequest, # 405, Method Not Allowed
|
|
386
449
|
'58001': BadRequest, # 415, Unsupported Media Type
|
|
387
450
|
'59001': ExchangeError, # 500, User account not found
|
|
388
451
|
'59002': ExchangeError, # 500, Internal Server Error
|
|
452
|
+
'59003': ExchangeError, # 500, Spot wallet call fail
|
|
453
|
+
'59004': ExchangeError, # 500, Margin wallet service call exception
|
|
454
|
+
'59005': PermissionDenied, # 500, Margin wallet service restricted
|
|
455
|
+
'59006': ExchangeError, # 500, Transfer fail
|
|
456
|
+
'59007': ExchangeError, # 500, Get symbol risk data fail
|
|
457
|
+
'59008': ExchangeError, # 500, Trading order failure
|
|
458
|
+
'59009': ExchangeError, # 500, Loan success,but trading order failure
|
|
459
|
+
'59010': InsufficientFunds, # 500, Insufficient loan amount.
|
|
460
|
+
'59011': ExchangeError, # 500, The Get Wallet Balance service call fail, please try again later
|
|
389
461
|
# contract errors
|
|
390
462
|
'40001': ExchangeError, # 400, Cloud account not found
|
|
391
463
|
'40002': ExchangeError, # 400, out_trade_no not found
|
|
@@ -421,14 +493,22 @@ class bitmart(Exchange, ImplicitAPI):
|
|
|
421
493
|
'40032': InvalidOrder, # 400, The plan order's life cycle is too long.
|
|
422
494
|
'40033': InvalidOrder, # 400, The plan order's life cycle is too short.
|
|
423
495
|
'40034': BadSymbol, # 400, This contract is not found
|
|
424
|
-
'
|
|
425
|
-
'
|
|
426
|
-
'
|
|
427
|
-
'
|
|
428
|
-
'
|
|
429
|
-
'
|
|
430
|
-
'
|
|
431
|
-
'
|
|
496
|
+
'40035': OrderNotFound, # 400, The order is not exist
|
|
497
|
+
'40036': InvalidOrder, # 400, The order status is invalid
|
|
498
|
+
'40037': OrderNotFound, # 400, The order id is not exist
|
|
499
|
+
'40038': BadRequest, # 400, The k-line step is invalid
|
|
500
|
+
'40039': BadRequest, # 400, The timestamp is invalid
|
|
501
|
+
'40040': InvalidOrder, # 400, The order leverage is invalid
|
|
502
|
+
'40041': InvalidOrder, # 400, The order side is invalid
|
|
503
|
+
'40042': InvalidOrder, # 400, The order type is invalid
|
|
504
|
+
'40043': InvalidOrder, # 400, The order precision is invalid
|
|
505
|
+
'40044': InvalidOrder, # 400, The order range is invalid
|
|
506
|
+
'40045': InvalidOrder, # 400, The order open type is invalid
|
|
507
|
+
'40046': PermissionDenied, # 403, The account is not opened futures
|
|
508
|
+
'40047': PermissionDenied, # 403, Services is not available in you countries and areas
|
|
509
|
+
'40048': BadRequest, # 403, ClientOrderId only allows a combination of numbers and letters
|
|
510
|
+
'40049': BadRequest, # 403, The maximum length of clientOrderId cannot exceed 32
|
|
511
|
+
'40050': InvalidOrder, # 403, Client OrderId duplicated with existing orders
|
|
432
512
|
},
|
|
433
513
|
'broad': {},
|
|
434
514
|
},
|
|
@@ -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))
|