#trading #cryptocurrency #blockchain

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

#2580 in Magic Beans

Download history 44/week @ 2023-12-18 35/week @ 2023-12-25 37/week @ 2024-01-01 39/week @ 2024-01-08 39/week @ 2024-01-15 47/week @ 2024-01-22 47/week @ 2024-01-29 40/week @ 2024-02-05 44/week @ 2024-02-12 60/week @ 2024-02-19 234/week @ 2024-02-26 61/week @ 2024-03-04 65/week @ 2024-03-11 61/week @ 2024-03-18 55/week @ 2024-03-25 957/week @ 2024-04-01

1,148 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–20MB
~279K SLoC