90 releases (42 stable)

1.3.11 Mar 19, 2023
1.3.10 Oct 31, 2022
1.3.8 Sep 6, 2022
1.3.3 Jul 19, 2022
0.1.4 Dec 30, 2020

#120 in #trading

Download history 43/week @ 2024-12-21 29/week @ 2024-12-28 43/week @ 2025-01-04 55/week @ 2025-01-11 52/week @ 2025-01-18 46/week @ 2025-01-25 68/week @ 2025-02-01 62/week @ 2025-02-08 60/week @ 2025-02-15 60/week @ 2025-02-22 60/week @ 2025-03-01 55/week @ 2025-03-08 56/week @ 2025-03-15 58/week @ 2025-03-22 48/week @ 2025-03-29 35/week @ 2025-04-05

205 downloads per month
Used in 2 crates (via crypto-crawler)

Apache-2.0

190KB
5K SLoC

Get all trading pairs of a cryptocurrency exchange.

Example

use crypto_markets::fetch_markets;
use crypto_market_type::MarketType;

let markets = fetch_markets("binance", MarketType::Spot).unwrap();
println!("{}", serde_json::to_string_pretty(&markets).unwrap())

crypto-markets

Fetch trading markets from a cryptocurrency exchange.

Example

use crypto_markets::{fetch_markets, MarketType};

fn main() {
    let markets = fetch_markets("Binance", MarketType::Spot).unwrap();
    println!("{}", serde_json::to_string_pretty(&markets).unwrap())
}

Dependencies

~5–18MB
~241K SLoC