[][src]Crate 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())
}

Structs

Market

Market contains all information about a market

Enums

MarketType

MarketType represents the type of a market

Constants

SUPPORTED_EXCHANGES

Functions

fetch_markets

Fetch trading markets of a cryptocurrency exchange.