ccxt 4.4.88 → 4.4.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -19
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/base/Exchange.js +6 -3
- package/dist/cjs/src/base/functions/encode.js +1 -1
- package/dist/cjs/src/base/functions/generic.js +6 -0
- package/dist/cjs/src/base/functions.js +1 -0
- package/dist/cjs/src/binance.js +1 -1
- package/dist/cjs/src/bingx.js +60 -32
- package/dist/cjs/src/bitget.js +493 -154
- package/dist/cjs/src/bitrue.js +72 -66
- package/dist/cjs/src/bitvavo.js +34 -0
- package/dist/cjs/src/btcalpha.js +35 -0
- package/dist/cjs/src/btcbox.js +35 -0
- package/dist/cjs/src/btcmarkets.js +35 -0
- package/dist/cjs/src/btcturk.js +35 -0
- package/dist/cjs/src/bybit.js +9 -3
- package/dist/cjs/src/coinbase.js +1 -4
- package/dist/cjs/src/cryptocom.js +54 -0
- package/dist/cjs/src/delta.js +2 -2
- package/dist/cjs/src/digifinex.js +40 -109
- package/dist/cjs/src/gate.js +12 -5
- package/dist/cjs/src/hashkey.js +15 -28
- package/dist/cjs/src/hollaex.js +28 -24
- package/dist/cjs/src/kraken.js +30 -53
- package/dist/cjs/src/luno.js +92 -0
- package/dist/cjs/src/okx.js +2 -1
- package/dist/cjs/src/phemex.js +16 -8
- package/dist/cjs/src/pro/coinbase.js +2 -0
- package/dist/cjs/src/pro/cryptocom.js +27 -0
- package/dist/cjs/src/pro/kraken.js +3 -11
- package/dist/cjs/src/tradeogre.js +3 -3
- package/dist/cjs/src/xt.js +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitget.d.ts +58 -0
- package/js/src/abstract/cryptocom.d.ts +2 -0
- package/js/src/abstract/luno.d.ts +1 -0
- package/js/src/base/Exchange.d.ts +4 -1
- package/js/src/base/Exchange.js +6 -3
- package/js/src/base/functions/encode.d.ts +1 -1
- package/js/src/base/functions/encode.js +1 -1
- package/js/src/base/functions/generic.d.ts +2 -1
- package/js/src/base/functions/generic.js +6 -1
- package/js/src/binance.js +1 -1
- package/js/src/bingx.d.ts +9 -5
- package/js/src/bingx.js +60 -32
- package/js/src/bitget.d.ts +4 -1
- package/js/src/bitget.js +493 -154
- package/js/src/bitrue.js +72 -66
- package/js/src/bitvavo.js +34 -0
- package/js/src/btcalpha.js +35 -0
- package/js/src/btcbox.js +35 -0
- package/js/src/btcmarkets.js +35 -0
- package/js/src/btcturk.js +35 -0
- package/js/src/bybit.js +9 -3
- package/js/src/coinbase.d.ts +1 -1
- package/js/src/coinbase.js +1 -4
- package/js/src/cryptocom.d.ts +17 -0
- package/js/src/cryptocom.js +54 -0
- package/js/src/delta.js +2 -2
- package/js/src/digifinex.js +40 -109
- package/js/src/gate.d.ts +1 -1
- package/js/src/gate.js +12 -5
- package/js/src/hashkey.d.ts +0 -1
- package/js/src/hashkey.js +15 -28
- package/js/src/hollaex.d.ts +1 -2
- package/js/src/hollaex.js +29 -25
- package/js/src/kraken.d.ts +0 -1
- package/js/src/kraken.js +30 -53
- package/js/src/luno.d.ts +9 -1
- package/js/src/luno.js +92 -0
- package/js/src/okx.js +2 -1
- package/js/src/phemex.d.ts +1 -0
- package/js/src/phemex.js +16 -8
- package/js/src/pro/coinbase.js +2 -0
- package/js/src/pro/cryptocom.d.ts +16 -0
- package/js/src/pro/cryptocom.js +27 -0
- package/js/src/pro/kraken.js +3 -11
- package/js/src/tradeogre.js +3 -3
- package/js/src/xt.js +1 -1
- package/package.json +4 -7
- package/examples/README.md +0 -316
- package/examples/js/README.md +0 -15
- package/examples/js/cli.js +0 -559
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
|
7
|
-
### [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)
|
|
7
|
+
### [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)
|
|
8
8
|
|
|
9
9
|
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.
|
|
10
10
|
|
|
@@ -18,16 +18,6 @@ Current feature list:
|
|
|
18
18
|
- an out of the box unified API that is extremely easy to integrate
|
|
19
19
|
- works in Node 10.4+, Python 3, PHP 8.1+, netstandard2.0/2.1, Go 1.20+ and web browsers
|
|
20
20
|
|
|
21
|
-
## Disclaimer
|
|
22
|
-
|
|
23
|
-
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**.
|
|
24
|
-
|
|
25
|
-
- **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.
|
|
26
|
-
- **MIT license** means CCXT can be used for any purpose, but use at your own risk without any warranties.
|
|
27
|
-
- **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.
|
|
28
|
-
- **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.
|
|
29
|
-
- **Open source** means anyone is allowed to use it, to look inside the code and to change everything, including other brokers.
|
|
30
|
-
|
|
31
21
|
## See Also
|
|
32
22
|
|
|
33
23
|
- <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)**!
|
|
@@ -231,13 +221,13 @@ console.log(version, Object.keys(exchanges));
|
|
|
231
221
|
|
|
232
222
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
|
233
223
|
|
|
234
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.4.
|
|
235
|
-
* unpkg: https://unpkg.com/ccxt@4.4.
|
|
224
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.4.90/dist/ccxt.browser.min.js
|
|
225
|
+
* unpkg: https://unpkg.com/ccxt@4.4.90/dist/ccxt.browser.min.js
|
|
236
226
|
|
|
237
227
|
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.
|
|
238
228
|
|
|
239
229
|
```HTML
|
|
240
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.4.
|
|
230
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.4.90/dist/ccxt.browser.min.js"></script>
|
|
241
231
|
```
|
|
242
232
|
|
|
243
233
|
Creates a global `ccxt` object:
|
|
@@ -325,10 +315,6 @@ You don't need the Docker image if you're not going to develop CCXT. If you just
|
|
|
325
315
|
|
|
326
316
|
---
|
|
327
317
|
|
|
328
|
-
## Documentation
|
|
329
|
-
|
|
330
|
-
Read the [Manual](https://github.com/ccxt/ccxt/wiki/) for more details.
|
|
331
|
-
|
|
332
318
|
## Usage
|
|
333
319
|
|
|
334
320
|
### Intro
|
|
@@ -611,6 +597,53 @@ Lastly, just because the signature dictates that some argument like `symbol` is
|
|
|
611
597
|
|
|
612
598
|
You can check different examples in the `examples/go` folder.
|
|
613
599
|
|
|
600
|
+
## CCXT CLI
|
|
601
|
+
|
|
602
|
+
Read the documentation for more information and details: [docs](https://github.com/ccxt/ccxt/tree/master/cli/README.md)
|
|
603
|
+
|
|
604
|
+
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.
|
|
605
|
+
|
|
606
|
+
### Installation
|
|
607
|
+
|
|
608
|
+
The CLI is available as a npm package and can be installed by doing
|
|
609
|
+
|
|
610
|
+
```
|
|
611
|
+
npm i ccxt-cli -g
|
|
612
|
+
```
|
|
613
|
+
|
|
614
|
+
### Usage
|
|
615
|
+
|
|
616
|
+
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.
|
|
617
|
+
|
|
618
|
+
Examples:
|
|
619
|
+
|
|
620
|
+
```
|
|
621
|
+
ccxt binance createOrder BTC/USDT market buy 0.1 // places an order
|
|
622
|
+
```
|
|
623
|
+
If you are not sure which arguments should be provided you can always use the `explain` command.
|
|
624
|
+
|
|
625
|
+
```
|
|
626
|
+
ccxt explain createOrder
|
|
627
|
+
```
|
|
628
|
+
|
|
629
|
+
result:
|
|
630
|
+
|
|
631
|
+
```
|
|
632
|
+
Method: createOrder
|
|
633
|
+
Usage:
|
|
634
|
+
binance createOrder <symbol> <type> <side> <amount> [price] [params]
|
|
635
|
+
|
|
636
|
+
Arguments:
|
|
637
|
+
- symbol (required) — Market symbol e.g., BTC/USDT
|
|
638
|
+
- type (required) — (no description available)
|
|
639
|
+
- side (required) — order side e.g., buy or sell
|
|
640
|
+
- amount (required) — (no description available)
|
|
641
|
+
- price (optional) — Price per unit of asset e.g., 26000.50
|
|
642
|
+
- params (optional) — Extra parameters for the exchange e.g., { "recvWindow": 5000 }
|
|
643
|
+
```
|
|
644
|
+
|
|
645
|
+
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`
|
|
646
|
+
|
|
614
647
|
## Contributing
|
|
615
648
|
|
|
616
649
|
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.
|
|
@@ -672,11 +705,20 @@ Thank you!
|
|
|
672
705
|
- <sub>[](https://t.me/ccxt_announcements)</sub> CCXT Channel on Telegram (important announcements)
|
|
673
706
|
- <sub>[](https://t.me/ccxt_chat)</sub> CCXT Chat on Telegram (technical support)
|
|
674
707
|
|
|
675
|
-
|
|
676
708
|
## Star History
|
|
677
709
|
|
|
678
710
|
[](https://star-history.com/#ccxt/ccxt&Date)
|
|
679
711
|
|
|
712
|
+
## Disclaimer
|
|
713
|
+
|
|
714
|
+
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**.
|
|
715
|
+
|
|
716
|
+
- **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.
|
|
717
|
+
- **MIT license** means CCXT can be used for any purpose, but use at your own risk without any warranties.
|
|
718
|
+
- **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.
|
|
719
|
+
- **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.
|
|
720
|
+
- **Open source** means anyone is allowed to use it, to look inside the code and to change everything, including other brokers.
|
|
721
|
+
|
|
680
722
|
## Contact Us
|
|
681
723
|
|
|
682
724
|
For business inquiries: info@ccxt.trade
|