Crates.io | crypto-markets |
lib.rs | crypto-markets |
version | 1.3.11 |
source | src |
created_at | 2020-12-26 03:32:54.451195 |
updated_at | 2023-03-19 09:04:20.583953 |
description | Fetch trading markets from a cryptocurrency exchange |
homepage | |
repository | https://github.com/crypto-crawler/crypto-crawler-rs/tree/main/crypto-markets |
max_upload_size | |
id | 327352 |
size | 287,348 |
Fetch trading markets from a cryptocurrency exchange.
use crypto_markets::{fetch_markets, MarketType};
fn main() {
let markets = fetch_markets("Binance", MarketType::Spot).unwrap();
println!("{}", serde_json::to_string_pretty(&markets).unwrap())
}