Reference¶
Technical reference documentation for Arbiter-Bot.
CLI¶
- CLI Reference - Command-line flags and options
Configuration¶
- Environment Variables - Required and optional environment variables
Quick Reference¶
Running the Engine¶
# Normal operation
cargo run --manifest-path arbiter-engine/Cargo.toml
# Check connectivity only
cargo run --manifest-path arbiter-engine/Cargo.toml -- --check-connectivity
# Dry run mode (no real orders)
cargo run --manifest-path arbiter-engine/Cargo.toml -- --dry-run
Market Discovery¶
# Build with discovery feature
cargo build --manifest-path arbiter-engine/Cargo.toml --features discovery
# Scan for market pairs
cargo run --manifest-path arbiter-engine/Cargo.toml --features discovery -- --discover-markets
# List pending candidates
cargo run --manifest-path arbiter-engine/Cargo.toml --features discovery -- --list-candidates --status pending
# Approve a candidate
cargo run --manifest-path arbiter-engine/Cargo.toml --features discovery -- --approve-candidate <uuid>
# Reject a candidate
cargo run --manifest-path arbiter-engine/Cargo.toml --features discovery -- --reject-candidate <uuid> --reason "..."
Testing¶
# Run all tests
cargo test --manifest-path arbiter-engine/Cargo.toml
# Run all tests including discovery
cargo test --manifest-path arbiter-engine/Cargo.toml --features discovery
# Run specific test
cargo test --manifest-path arbiter-engine/Cargo.toml test_happy_path
# Run with output
cargo test --manifest-path arbiter-engine/Cargo.toml -- --nocapture