#cryptocurrency #blockchain #trading

bin+lib crypto-markets

Get all trading pairs of a cryptocurrency exchange

42 releases (5 breaking)

new 0.7.2 Sep 26, 2021
0.7.0 Aug 28, 2021
0.6.8 Jul 21, 2021
0.6.2 Mar 26, 2021
0.1.4 Dec 30, 2020

#856 in Magic Beans

Download history 55/week @ 2021-06-06 4/week @ 2021-06-13 3/week @ 2021-06-20 71/week @ 2021-06-27 11/week @ 2021-07-04 14/week @ 2021-07-11 106/week @ 2021-07-18 48/week @ 2021-07-25 81/week @ 2021-08-01 7/week @ 2021-08-08 94/week @ 2021-08-15 69/week @ 2021-08-22 30/week @ 2021-08-29 69/week @ 2021-09-05 61/week @ 2021-09-12 89/week @ 2021-09-19

230 downloads per month
Used in crypto-crawler

Apache-2.0

100KB
3K SLoC

crypto-markets

Get all trading pairs of 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, MarketType};

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

Dependencies

~4.5–8.5MB
~192K SLoC