Skip to content

yurii-musolov/patisson-binance-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binance SDK

Crates.io Documentation MIT licensed

Unofficial Rust SDK for the Binance exchange API.

Features

  • REST API support (Spot)
  • Unauthenticated endpoints
  • Only async clients

Examples

Server time

use binance::spot::{BASE_URL_API, Client, ClientConfig};

let cfg = ClientConfig {
    base_url: BASE_URL_API.to_string(),
    api_key: None,
    api_secret: None,
};
let client = Client::new(cfg);
let response = client.get_server_time().await?;
println!("{response:#?}");

Exchange info

use binance::spot::{BASE_URL_API, Client, ClientConfig, GetExchangeInfoParams};

let cfg = ClientConfig {
    base_url: BASE_URL_API.to_string(),
    api_key: None,
    api_secret: None,
};
let client = Client::new(cfg);
let params = GetExchangeInfoParams {
    symbol: Some(String::from("BTCUSDT")),
    symbols: None,
    permissions: None,
    show_permission_sets: None,
    symbol_status: None,
};
let response = client.get_exchange_info(params).await?;
println!("{response:#?}");

License

This project is licensed under the MIT license.

About

Unofficial Rust SDK for the Binance exchange API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages