binance-async 0.3.0

Rust Library for the Binance API (Async)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use anyhow::Error;
use binance_async::{rest::spot, Binance};
use fehler::throws;

#[throws(Error)]
#[tokio::test]
async fn ping() {
    env_logger::init();

    let binance = Binance::new();
    let ai = binance.request(spot::PingRequest {}).await?;
    println!("{ai:?}");
}