#cryptocurrency #blockchain #trading

bin+lib crypto-markets

Fetch trading markets from a cryptocurrency exchange

87 releases (39 stable)

Uses new Rust 2021

1.3.8 Sep 6, 2022
1.3.3 Jul 19, 2022
1.1.9 Mar 27, 2022
1.0.6 Dec 6, 2021
0.1.4 Dec 30, 2020

#1695 in Magic Beans

Download history 143/week @ 2022-06-09 106/week @ 2022-06-16 127/week @ 2022-06-23 187/week @ 2022-06-30 564/week @ 2022-07-07 455/week @ 2022-07-14 383/week @ 2022-07-21 779/week @ 2022-07-28 530/week @ 2022-08-04 207/week @ 2022-08-11 132/week @ 2022-08-18 214/week @ 2022-08-25 146/week @ 2022-09-01 552/week @ 2022-09-08 42/week @ 2022-09-15 38/week @ 2022-09-22

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

Apache-2.0

240KB
6.5K SLoC

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())
}

lib.rs:

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())

Dependencies

~4–12MB
~258K SLoC