Trade on titan with one copy paste, and with easy to use commands. Great for building out bots.
clone this repo
git clone https://github.com/hogyzen12/atlas-titan
cd atlas-titan && cargo build --release && cargo run --bin atlas swap USDC JLP 1 --no-waitatlas quote <INPUT> <OUTPUT> <AMOUNT>
# Examples:
atlas quote SOL USDC 1.0 # Quote for 1 SOL → USDC
atlas quote BONK USDC 1000000 # Quote for 1M BONK → USDCatlas swap <INPUT> <OUTPUT> <AMOUNT>
# Examples:
atlas swap SOL USDC 0.1 # Swap 0.1 SOL for USDC (waits for confirmation)
atlas swap USDC USDT 100 # Swap 100 USDC for USDTatlas swap <INPUT> <OUTPUT> <AMOUNT> --no-wait
# Example:
atlas swap SOL USDC 0.1 --no-wait # Submit and return immediatelyatlas config| Variable | Description | Default |
|---|---|---|
TITAN_API_KEY |
Titan API key (required) | None |
RPC_URL or SOLANA_RPC_URL |
Solana RPC endpoint | From Solana CLI config |
SOLANA_KEYPAIR or KEYPAIR_PATH |
Path to keypair file | From Solana CLI config |
JITO_TIP_LAMPORTS |
Jito tip amount | 100000 (0.0001 SOL) |
- Environment variables
- Solana CLI config (
~/.config/solana/cli/config.yml) - Defaults
export TITAN_API_KEY="your_key"
export RPC_URL="https://mainnet.helius-rpc.com/?api-key=your_helius_key"
atlas swap SOL USDC 0.1The examples/ directory contains real-world usage examples:
cargo run --example simple_swapBasic swap demonstrating the minimum code needed.
cargo run --example streaming_quotesReal-time quote monitoring with price tracking and statistics.
cargo run --example arb_botUSDC/USDT arbitrage bot that:
- Monitors for arbitrage opportunities
- Executes when profit > $0.10
- Shows live dashboard with stats
MIT