crypto-rest-client 0.5.2

An restful client for all cryptocurrency exchanges.
Documentation
use crypto_markets::MarketType;
use crypto_rest_client::{fetch_l2_snapshot, BitmexRestClient};

#[test]
fn test_trades() {
    let text = BitmexRestClient::fetch_trades("XBTUSD", None).unwrap();
    assert!(text.starts_with("[{"));
}

#[test]
fn test_l2_snapshot() {
    let text = fetch_l2_snapshot("bitmex", MarketType::InverseSwap, "XBTUSD").unwrap();
    assert!(text.starts_with("[{"));
}