Files
2025-10-03 15:28:16 +08:00

55 lines
1.7 KiB
Markdown

# CCXT Cryptocurrency Trading Library Examples
![preview](https://user-images.githubusercontent.com/1294454/31798504-ca2af4cc-b53c-11e7-946c-620d744f6d16.gif)
To run the ccxt examples from any folder type one of the following commands in console.
## Typescript
[Typescript Examples](/examples/ts/)
---
## JavaScript
[JavaScript Examples](/examples/js/)
```shell
node path/to/example.js # substitute for actual filename here
```
These examples might require the following super-useful high-quality Node.js modules by [xpl](https://github.com/xpl):
- [ololog](https://github.com/xpl/ololog): Platform-agnostic logging with blackjack and hookers ([ololog @ npm](https://npmjs.com/package/ololog))
- [ansicolor](https://github.com/xpl/ansicolor): A quality JavaScript library for the ANSI color/style management ([ansicolor @ npm](https://npmjs.com/package/ansicolor))
- [as-table](https://github.com/xpl/as-table): A simple function that prints objects as ASCII tables ([as-table @ npm](https://npmjs.com/package/as-table))
All of the modules above are installed with the ccxt library devDependencies by npm automatically.
<img width="842" alt="bitcoin ascii chart" src="https://user-images.githubusercontent.com/1294454/29673849-156f58c6-88f9-11e7-8955-fb3f37467234.png">
---
## PHP
[PHP Examples](/examples/php/)
```shell
php -f path/to/example.php # substitute for actual filename here
```
---
## Python
[Python Examples](/examples/py/)
![basic-chart](https://user-images.githubusercontent.com/1294454/29979754-6d62354c-8f4f-11e7-9e0a-22e87b4a093b.jpg)
```shell
python path/to/example.py # substitute for actual filename here
```
-------------------------------------------------------------------------------