ccxt 4.4.88__py2.py3-none-any.whl → 4.4.91__py2.py3-none-any.whl
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/__init__.py +1 -3
- ccxt/abstract/bitget.py +58 -0
- ccxt/abstract/bitrue.py +65 -65
- ccxt/abstract/cryptocom.py +2 -0
- ccxt/abstract/luno.py +1 -0
- ccxt/async_support/__init__.py +1 -3
- ccxt/async_support/base/exchange.py +6 -3
- ccxt/async_support/base/ws/client.py +173 -64
- ccxt/async_support/base/ws/future.py +23 -50
- ccxt/async_support/binance.py +2 -2
- ccxt/async_support/bingx.py +55 -29
- ccxt/async_support/bitget.py +469 -147
- ccxt/async_support/bitmex.py +2 -1
- ccxt/async_support/bitrue.py +72 -66
- ccxt/async_support/bitvavo.py +34 -0
- ccxt/async_support/btcalpha.py +35 -0
- ccxt/async_support/btcbox.py +35 -0
- ccxt/async_support/btcmarkets.py +35 -0
- ccxt/async_support/btcturk.py +35 -0
- ccxt/async_support/bybit.py +9 -3
- ccxt/async_support/cex.py +61 -0
- ccxt/async_support/coinbase.py +1 -3
- ccxt/async_support/cryptocom.py +66 -2
- ccxt/async_support/cryptomus.py +1 -1
- ccxt/async_support/delta.py +2 -2
- ccxt/async_support/digifinex.py +39 -99
- ccxt/async_support/exmo.py +14 -7
- ccxt/async_support/gate.py +14 -7
- ccxt/async_support/hashkey.py +15 -28
- ccxt/async_support/hollaex.py +27 -22
- ccxt/async_support/hyperliquid.py +104 -53
- ccxt/async_support/kraken.py +54 -50
- ccxt/async_support/luno.py +87 -1
- ccxt/async_support/mexc.py +1 -0
- ccxt/async_support/modetrade.py +2 -2
- ccxt/async_support/okx.py +2 -1
- ccxt/async_support/paradex.py +1 -1
- ccxt/async_support/phemex.py +16 -8
- ccxt/async_support/tradeogre.py +3 -3
- ccxt/async_support/xt.py +1 -1
- ccxt/base/exchange.py +20 -8
- ccxt/binance.py +2 -2
- ccxt/bingx.py +55 -29
- ccxt/bitget.py +469 -147
- ccxt/bitmex.py +2 -1
- ccxt/bitrue.py +72 -66
- ccxt/bitvavo.py +34 -0
- ccxt/btcalpha.py +35 -0
- ccxt/btcbox.py +35 -0
- ccxt/btcmarkets.py +35 -0
- ccxt/btcturk.py +35 -0
- ccxt/bybit.py +9 -3
- ccxt/cex.py +61 -0
- ccxt/coinbase.py +1 -3
- ccxt/cryptocom.py +66 -2
- ccxt/cryptomus.py +1 -1
- ccxt/delta.py +2 -2
- ccxt/digifinex.py +39 -99
- ccxt/exmo.py +13 -7
- ccxt/gate.py +14 -7
- ccxt/hashkey.py +15 -28
- ccxt/hollaex.py +27 -22
- ccxt/hyperliquid.py +104 -53
- ccxt/kraken.py +53 -50
- ccxt/luno.py +87 -1
- ccxt/mexc.py +1 -0
- ccxt/modetrade.py +2 -2
- ccxt/okx.py +2 -1
- ccxt/paradex.py +1 -1
- ccxt/phemex.py +16 -8
- ccxt/pro/__init__.py +1 -127
- ccxt/pro/bitstamp.py +1 -1
- ccxt/pro/bybit.py +6 -136
- ccxt/pro/coinbase.py +2 -0
- ccxt/pro/cryptocom.py +27 -0
- ccxt/pro/kraken.py +249 -267
- ccxt/pro/mexc.py +0 -1
- ccxt/tradeogre.py +3 -3
- ccxt/xt.py +1 -1
- {ccxt-4.4.88.dist-info → ccxt-4.4.91.dist-info}/METADATA +64 -23
- {ccxt-4.4.88.dist-info → ccxt-4.4.91.dist-info}/RECORD +84 -101
- ccxt/abstract/coinlist.py +0 -57
- ccxt/async_support/base/ws/aiohttp_client.py +0 -147
- ccxt/async_support/bitcoincom.py +0 -18
- ccxt/async_support/bitfinex1.py +0 -1711
- ccxt/async_support/bitpanda.py +0 -17
- ccxt/async_support/coinlist.py +0 -2542
- ccxt/async_support/poloniexfutures.py +0 -1875
- ccxt/bitcoincom.py +0 -18
- ccxt/bitfinex1.py +0 -1710
- ccxt/bitpanda.py +0 -17
- ccxt/coinlist.py +0 -2542
- ccxt/poloniexfutures.py +0 -1875
- ccxt/pro/bitcoincom.py +0 -35
- ccxt/pro/bitfinex1.py +0 -635
- ccxt/pro/bitpanda.py +0 -16
- ccxt/pro/poloniexfutures.py +0 -1004
- ccxt/pro/wazirx.py +0 -766
- {ccxt-4.4.88.dist-info → ccxt-4.4.91.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.88.dist-info → ccxt-4.4.91.dist-info}/WHEEL +0 -0
- {ccxt-4.4.88.dist-info → ccxt-4.4.91.dist-info}/top_level.txt +0 -0
ccxt/pro/mexc.py
CHANGED
@@ -1058,7 +1058,6 @@ class mexc(ccxt.async_support.mexc):
|
|
1058
1058
|
:returns dict[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
|
1059
1059
|
"""
|
1060
1060
|
await self.load_markets()
|
1061
|
-
params = self.omit(params, 'type')
|
1062
1061
|
messageHash = 'orders'
|
1063
1062
|
market = None
|
1064
1063
|
if symbol is not None:
|
ccxt/tradeogre.py
CHANGED
@@ -425,13 +425,13 @@ class tradeogre(Exchange, ImplicitAPI):
|
|
425
425
|
'vwap': None,
|
426
426
|
'open': self.safe_string(ticker, 'initialprice'),
|
427
427
|
'close': self.safe_string(ticker, 'price'),
|
428
|
-
'last':
|
428
|
+
'last': self.safe_string(ticker, 'price'),
|
429
429
|
'previousClose': None,
|
430
430
|
'change': None,
|
431
431
|
'percentage': None,
|
432
432
|
'average': None,
|
433
|
-
'baseVolume':
|
434
|
-
'quoteVolume':
|
433
|
+
'baseVolume': self.safe_string(ticker, 'volume'),
|
434
|
+
'quoteVolume': None,
|
435
435
|
'info': ticker,
|
436
436
|
}, market)
|
437
437
|
|
ccxt/xt.py
CHANGED
@@ -2846,7 +2846,7 @@ class xt(Exchange, ImplicitAPI):
|
|
2846
2846
|
if trigger or stopLossTakeProfit:
|
2847
2847
|
request['state'] = 'NOT_TRIGGERED'
|
2848
2848
|
elif type == 'swap':
|
2849
|
-
request['state'] = 'NEW
|
2849
|
+
request['state'] = 'UNFINISHED' # NEW & PARTIALLY_FILLED
|
2850
2850
|
elif status == 'closed':
|
2851
2851
|
if trigger or stopLossTakeProfit:
|
2852
2852
|
request['state'] = 'TRIGGERED'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ccxt
|
3
|
-
Version: 4.4.
|
3
|
+
Version: 4.4.91
|
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
|
@@ -49,11 +49,11 @@ Requires-Dist: mypy==1.6.1; extra == "type"
|
|
49
49
|
|
50
50
|
# CCXT – CryptoCurrency eXchange Trading Library
|
51
51
|
|
52
|
-
[](https://www.npmjs.com/package/ccxt) [](https://npmjs.com/package/ccxt) [](https://pypi.python.org/pypi/ccxt) [](https://www.nuget.org/packages/ccxt) [](https://godoc.org/github.com/ccxt/ccxt/go/v4) [](https://discord.gg/ccxt) [](https://www.npmjs.com/package/ccxt) [](https://npmjs.com/package/ccxt) [](https://pypi.python.org/pypi/ccxt) [](https://www.nuget.org/packages/ccxt) [](https://godoc.org/github.com/ccxt/ccxt/go/v4) [](https://discord.gg/ccxt) [](https://github.com/ccxt/ccxt/wiki/Exchange-Markets) [](https://x.com/ccxt_official)
|
53
53
|
|
54
54
|
A `JavaScript` / `Python` / `PHP` / `C#` / `Go` library for cryptocurrency trading and e-commerce with support for many bitcoin/ether/altcoin exchange markets and merchant APIs.
|
55
55
|
|
56
|
-
### [Install](#install) · [Usage](#usage) · [Manual](https://github.com/ccxt/ccxt/wiki) · [FAQ](https://github.com/ccxt/ccxt/wiki/FAQ) · [Examples](https://github.com/ccxt/ccxt/tree/master/examples) · [Contributing](https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md) · [Social](#social)
|
56
|
+
### [Install](#install) · [Usage](#usage) · [Manual](https://github.com/ccxt/ccxt/wiki) · [FAQ](https://github.com/ccxt/ccxt/wiki/FAQ) · [Examples](https://github.com/ccxt/ccxt/tree/master/examples) · [Contributing](https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md) · [Disclaimer](#disclaimer) · [Social](#social)
|
57
57
|
|
58
58
|
The **CCXT** library is used to connect and trade with cryptocurrency exchanges and payment processing services worldwide. It provides quick access to market data for storage, analysis, visualization, indicator development, algorithmic trading, strategy backtesting, bot programming, and related software engineering.
|
59
59
|
|
@@ -67,16 +67,6 @@ Current feature list:
|
|
67
67
|
- an out of the box unified API that is extremely easy to integrate
|
68
68
|
- works in Node 10.4+, Python 3, PHP 8.1+, netstandard2.0/2.1, Go 1.20+ and web browsers
|
69
69
|
|
70
|
-
## Disclaimer
|
71
|
-
|
72
|
-
CCXT is not a service nor a server. CCXT is a software. **CCXT is a free open source non-custodian API broker software under MIT license**.
|
73
|
-
|
74
|
-
- **Non-custodian** means CCXT is not an intermediary in trading, it does not hold traders' money at any point in time, traders install CCXT and use CCXT to talk to exchanges directly.
|
75
|
-
- **MIT license** means CCXT can be used for any purpose, but use at your own risk without any warranties.
|
76
|
-
- **API broker** means CCXT is funded with rebates from exchanges' API broker programs and it is an official API broker with many exchanges. Broker rebates from trading fees range from 30% to 65%. All rebates and related fees are handled by the exchanges solely in accordance with exchanges' respective terms and conditions established by each partner exchange.
|
77
|
-
- **Free software** means CCXT is free to use and has no hidden fees, with CCXT traders pay the same trading fees they would pay to the exchanges directly.
|
78
|
-
- **Open source** means anyone is allowed to use it, to look inside the code and to change everything, including other brokers.
|
79
|
-
|
80
70
|
## See Also
|
81
71
|
|
82
72
|
- <sub>[](https://tab-trader.com/?utm_source=ccxt)</sub> **[TabTrader](https://tab-trader.com/?utm_source=ccxt)** – trading on all exchanges in one app. Available on **[Android](https://play.google.com/store/apps/details?id=com.tabtrader.android&referrer=utm_source%3Dccxt)** and **[iOS](https://itunes.apple.com/app/apple-store/id1095716562?mt=8)**!
|
@@ -112,7 +102,7 @@ CCXT is not a service nor a server. CCXT is a software. **CCXT is a free open so
|
|
112
102
|
| [](https://dex.woo.org/en/trade?ref=CCXT) | woofipro | [WOOFI PRO](https://dex.woo.org/en/trade?ref=CCXT) | [](https://orderly.network/docs/build-on-evm/building-on-evm) |  | [](https://github.com/ccxt/ccxt/wiki/Certification) | [](https://ccxt.pro) | [](https://dex.woo.org/en/trade?ref=CCXT) |
|
113
103
|
|
114
104
|
## Supported Cryptocurrency Exchanges
|
115
|
-
<!--- init list -->The CCXT library currently supports the following
|
105
|
+
<!--- init list -->The CCXT library currently supports the following 102 cryptocurrency exchange markets and trading APIs:
|
116
106
|
|
117
107
|
|logo |id |name |ver |type |certified |pro |
|
118
108
|
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------|----------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------:|--------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|
|
@@ -156,7 +146,6 @@ CCXT is not a service nor a server. CCXT is a software. **CCXT is a free open so
|
|
156
146
|
| [](https://partner.coincatch.cc/bg/92hy70391729607848548) | coincatch | [CoinCatch](https://partner.coincatch.cc/bg/92hy70391729607848548) | [](https://coincatch.github.io/github.io/en/) |  | | [](https://ccxt.pro) |
|
157
147
|
| [](https://coincheck.com) | coincheck | [coincheck](https://coincheck.com) | [](https://coincheck.com/documents/exchange/api) |  | | |
|
158
148
|
| [](https://www.coinex.com/register?refer_code=yw5fz) | coinex | [CoinEx](https://www.coinex.com/register?refer_code=yw5fz) | [](https://docs.coinex.com/api/v2) |  | [](https://github.com/ccxt/ccxt/wiki/Certification) | [](https://ccxt.pro) |
|
159
|
-
| [](https://coinlist.co) | coinlist | [Coinlist](https://coinlist.co) | [](https://trade-docs.coinlist.co) |  | | |
|
160
149
|
| [](https://coinmate.io?referral=YTFkM1RsOWFObVpmY1ZjMGREQmpTRnBsWjJJNVp3PT0) | coinmate | [CoinMate](https://coinmate.io?referral=YTFkM1RsOWFObVpmY1ZjMGREQmpTRnBsWjJJNVp3PT0) | [](https://coinmate.docs.apiary.io) |  | | |
|
161
150
|
| [](https://go.coinmetro.com/?ref=crypto24) | coinmetro | [Coinmetro](https://go.coinmetro.com/?ref=crypto24) | [](https://documenter.getpostman.com/view/3653795/SVfWN6KS) |  | | |
|
162
151
|
| [](https://coinone.co.kr) | coinone | [CoinOne](https://coinone.co.kr) | [](https://doc.coinone.co.kr) |  | | |
|
@@ -280,13 +269,13 @@ console.log(version, Object.keys(exchanges));
|
|
280
269
|
|
281
270
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
282
271
|
|
283
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.4.
|
284
|
-
* unpkg: https://unpkg.com/ccxt@4.4.
|
272
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.4.91/dist/ccxt.browser.min.js
|
273
|
+
* unpkg: https://unpkg.com/ccxt@4.4.91/dist/ccxt.browser.min.js
|
285
274
|
|
286
275
|
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.
|
287
276
|
|
288
277
|
```HTML
|
289
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.4.
|
278
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.4.91/dist/ccxt.browser.min.js"></script>
|
290
279
|
```
|
291
280
|
|
292
281
|
Creates a global `ccxt` object:
|
@@ -374,10 +363,6 @@ You don't need the Docker image if you're not going to develop CCXT. If you just
|
|
374
363
|
|
375
364
|
---
|
376
365
|
|
377
|
-
## Documentation
|
378
|
-
|
379
|
-
Read the [Manual](https://github.com/ccxt/ccxt/wiki/) for more details.
|
380
|
-
|
381
366
|
## Usage
|
382
367
|
|
383
368
|
### Intro
|
@@ -660,6 +645,53 @@ Lastly, just because the signature dictates that some argument like `symbol` is
|
|
660
645
|
|
661
646
|
You can check different examples in the `examples/go` folder.
|
662
647
|
|
648
|
+
## CCXT CLI
|
649
|
+
|
650
|
+
Read the documentation for more information and details: [docs](https://github.com/ccxt/ccxt/tree/master/cli/README.md)
|
651
|
+
|
652
|
+
CCXT also provides a command-line interface (CLI) that enables direct interaction with any supported exchange from the terminal. You can quickly check balances, place orders, or fetch trade data—without the need to write or execute custom code. This is especially useful for simple or time-sensitive tasks that don’t warrant the overhead of building a full application.
|
653
|
+
|
654
|
+
### Installation
|
655
|
+
|
656
|
+
The CLI is available as a npm package and can be installed by doing
|
657
|
+
|
658
|
+
```
|
659
|
+
npm i ccxt-cli -g
|
660
|
+
```
|
661
|
+
|
662
|
+
### Usage
|
663
|
+
|
664
|
+
You can use the `--help` option to view a general overview of how the CLI works. The tool allows you to invoke any CCXT method by specifying the exchange id, the methodName, and any required arguments.
|
665
|
+
|
666
|
+
Examples:
|
667
|
+
|
668
|
+
```
|
669
|
+
ccxt binance createOrder BTC/USDT market buy 0.1 // places an order
|
670
|
+
```
|
671
|
+
If you are not sure which arguments should be provided you can always use the `explain` command.
|
672
|
+
|
673
|
+
```
|
674
|
+
ccxt explain createOrder
|
675
|
+
```
|
676
|
+
|
677
|
+
result:
|
678
|
+
|
679
|
+
```
|
680
|
+
Method: createOrder
|
681
|
+
Usage:
|
682
|
+
binance createOrder <symbol> <type> <side> <amount> [price] [params]
|
683
|
+
|
684
|
+
Arguments:
|
685
|
+
- symbol (required) — Market symbol e.g., BTC/USDT
|
686
|
+
- type (required) — (no description available)
|
687
|
+
- side (required) — order side e.g., buy or sell
|
688
|
+
- amount (required) — (no description available)
|
689
|
+
- price (optional) — Price per unit of asset e.g., 26000.50
|
690
|
+
- params (optional) — Extra parameters for the exchange e.g., { "recvWindow": 5000 }
|
691
|
+
```
|
692
|
+
|
693
|
+
You can easily provide API keys by setting them as environment varibales eg: `BINANCE_APIKEY="XXXX"` or adding them to the config file located at `$CACHE/config.json`
|
694
|
+
|
663
695
|
## Contributing
|
664
696
|
|
665
697
|
Please read the [CONTRIBUTING](https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md) document before making changes that you would like adopted in the code. Also, read the [Manual](https://github.com/ccxt/ccxt/wiki) for more details.
|
@@ -721,11 +753,20 @@ Thank you!
|
|
721
753
|
- <sub>[](https://t.me/ccxt_announcements)</sub> CCXT Channel on Telegram (important announcements)
|
722
754
|
- <sub>[](https://t.me/ccxt_chat)</sub> CCXT Chat on Telegram (technical support)
|
723
755
|
|
724
|
-
|
725
756
|
## Star History
|
726
757
|
|
727
758
|
[](https://star-history.com/#ccxt/ccxt&Date)
|
728
759
|
|
760
|
+
## Disclaimer
|
761
|
+
|
762
|
+
CCXT is not a service nor a server. CCXT is a software. **CCXT is a free open source non-custodian API broker software under MIT license**.
|
763
|
+
|
764
|
+
- **Non-custodian** means CCXT is not an intermediary in trading, it does not hold traders' money at any point in time, traders install CCXT and use CCXT to talk to exchanges directly.
|
765
|
+
- **MIT license** means CCXT can be used for any purpose, but use at your own risk without any warranties.
|
766
|
+
- **API broker** means CCXT is funded with rebates from exchanges' API broker programs and it is an official API broker with many exchanges, all rebates and related fees are handled by the exchanges solely in accordance with exchanges' respective terms and conditions established by each partner exchange.
|
767
|
+
- **Free software** means CCXT is free to use and has no hidden fees, with CCXT traders pay the same trading fees they would pay to the exchanges directly.
|
768
|
+
- **Open source** means anyone is allowed to use it, to look inside the code and to change everything, including other brokers.
|
769
|
+
|
729
770
|
## Contact Us
|
730
771
|
|
731
772
|
For business inquiries: info@ccxt.trade
|