Skip to main content

Examples

Want the strategy, not the plumbing?

These examples show the code. ChipaEditor shows the results โ€” AI strategy generation in CHTL, backtesting, and one-step deployment to a live broker. Start free โ†’ ย ยทย  Crypto perps and spot on ChipaX.

Complete working examples for all supported languages.

Language Examplesโ€‹

Basic Usageโ€‹

Tradingโ€‹

Market Dataโ€‹

Subscriptionsโ€‹

Repository Structureโ€‹

All examples are also available in the repository:

examples/
โ”œโ”€โ”€ python/
โ”‚ โ”œโ”€โ”€ async/ # Async examples
โ”‚ โ””โ”€โ”€ sync/ # Sync examples
โ”œโ”€โ”€ rust/ # Rust examples
โ”œโ”€โ”€ javascript/ # JavaScript/TypeScript examples
โ”œโ”€โ”€ swift/ # Swift examples
โ”œโ”€โ”€ kotlin/ # Kotlin examples
โ”œโ”€โ”€ go/ # Go examples
โ”œโ”€โ”€ ruby/ # Ruby examples
โ””โ”€โ”€ csharp/ # C# examples

Running Examplesโ€‹

Pythonโ€‹

cd examples/python/async
python basic.py

Rustโ€‹

cargo run --example basic

JavaScriptโ€‹

cd examples/javascript
node basic.js

Swiftโ€‹

swift Basic.swift

Kotlinโ€‹

// Run in Android Studio or IntelliJ

Goโ€‹

go run basic.go

Rubyโ€‹

ruby basic.rb

C#โ€‹

dotnet run --project basic.csproj