CCXT

示例概述

要从任何文件夹运行 ccxt 示例,请在控制台中输入以下命令之一。

CCXT 加密货币交易库示例

预览

示例 · 引用 · 教程

示例

要从任何文件夹运行 ccxt 示例,请在控制台中输入以下命令之一。

Typescript

Typescript 示例


JavaScript

JavaScript 示例

node path/to/example.js # 替换为实际文件名

这些示例可能需要以下非常有用的高质量 Node.js 模块,由 xpl 开发:

上述所有模块都会通过 npm 自动随 ccxt 库的开发依赖项一起安装。

比特币 ASCII 图表

PHP

PHP 示例

php -f path/to/example.php # 替换为实际文件名

Python

Python 示例

基本图表

python path/to/example.py # 替换为实际文件名

Rust

Rust 示例

Rust 示例是在 examples/rust/Cargo.toml 中声明的 cargo 二进制程序 — 按 [[bin]] 名称运行:

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

WebSocket(watch*)示例使用 ccxt-pro crate,它位于 ws feature 之后:

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

CCXT 在论文和论文中的引用


On this page