#cryptocurrency #blockchain #trading

bin+lib crypto-markets

Fetch trading markets from a cryptocurrency exchange

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

#575 in Magic Beans

Download history 178/week @ 2023-06-04 87/week @ 2023-06-11 176/week @ 2023-06-18 180/week @ 2023-06-25 411/week @ 2023-07-02 87/week @ 2023-07-09 73/week @ 2023-07-16 73/week @ 2023-07-23 72/week @ 2023-07-30 80/week @ 2023-08-06 167/week @ 2023-08-13 69/week @ 2023-08-20 245/week @ 2023-08-27 163/week @ 2023-09-03 79/week @ 2023-09-10 73/week @ 2023-09-17

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

Apache-2.0

190KB
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

~5–21MB
~292K SLoC