CCXT

Examples Overview

To run the ccxt examples from any folder type one of the following commands in console.

CCXT Cryptocurrency Trading Library Examples

preview

Examples · Citations · Tutorials

Examples

To run the ccxt examples from any folder type one of the following commands in console.

Typescript

Typescript Examples


JavaScript

JavaScript Examples

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:

All of the modules above are installed with the ccxt library devDependencies by npm automatically.

bitcoin ascii chart

PHP

PHP Examples

php -f path/to/example.php # substitute for actual filename here

Python

Python Examples

basic-chart

python path/to/example.py # substitute for actual filename here

Rust

Rust Examples

The Rust examples are cargo binaries declared in examples/rust/Cargo.toml — run one by its [[bin]] name:

cargo run --manifest-path examples/rust/Cargo.toml --bin binance_basics

The WebSocket (watch*) examples pull in the ccxt-pro crate, which is behind the ws feature:

cargo run --manifest-path examples/rust/Cargo.toml --features ws --bin watch_trades

CCXT Citations In Papers And Theses


On this page