Crate crypto_markets[][src]

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())

Structs

Error
Market

Market contains all information about a market

Enums

MarketType

Market type.

Functions

fetch_markets

Fetch trading markets of a cryptocurrency exchange.

fetch_symbols

Fetch trading symbols.

get_market_types

Get market types of a cryptocurrency exchange.