//! List all public exchanges.
//!
//! Run: `TICKSUPPLY_API_KEY=... cargo run --example list_exchanges`

#[tokio::main]
async fn main() -> ticksupply::Result<()> {
    let client = ticksupply::Client::new()?;
    for ex in client.exchanges().list().await? {
        println!("{:<15} {}", ex.code, ex.display_name);
    }
    Ok(())
}
