crypto-markets 0.1.2

Get all trading pairs of a cryptocurrency exchange
Documentation

crypto-markets

Get all trading pairs of a cryptocurrency exchange.

Usage

use crypto_markets::{fetch_markets, MarketType};
use std::{env, str::FromStr};

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