fn fetch_linear_multipliers() -> BTreeMap<String, f64> {
    let mut mapping: BTreeMap<String, f64> = BTreeMap::new();

    let txt = http_get("https://api-futures.kucoin.com/api/v1/contracts/active").unwrap();
    let resp = serde_json::from_str::<ResponseMsg>(&txt).unwrap();
    for swap_market in resp.data.iter().filter(|x| !x.isInverse) {
        mapping.insert(
            crypto_pair::normalize_pair(&swap_market.symbol, "kucoin").unwrap(),
            swap_market.multiplier,
        );
    }

    mapping
}
// get the multiplier field from linear markets
get the multiplier field from linear markets
get the multiplier field from linear markets
fn fetch_linear_multipliers() -> BTreeMap<String, f64> {
    let mut mapping: BTreeMap<String, f64> = BTreeMap::new();
    let txt = http_get("https://api-futures.kucoin.com/api/v1/contracts/active").unwrap();
    let resp = serde_json::from_str::<ResponseMsg>(&txt).unwrap();
    for swap_market in resp.data.iter().filter(|x| !x.isInverse) {
        mapping.insert(
            crypto_pair::normalize_pair(&swap_market.symbol, "kucoin").unwrap(),
            swap_market.multiplier,
        );
    }
    mapping
}
fn fetch_linear_multipliers ( ) -> BTreeMap < String , f64 > { let mut mapping : BTreeMap < String , f64 > = BTreeMap :: new ( ) ; let txt = http_get ( " " ) . unwrap ( ) ; let resp = serde_json :: from_str :: < ResponseMsg > ( & txt ) . unwrap ( ) ; for swap_market in resp . data . iter ( ) . filter ( | x | ! x . isInverse ) { mapping . insert ( crypto_pair :: normalize_pair ( & swap_market . symbol , " " ) . unwrap ( ) , swap_market . multiplier , ) ; } mapping }
get the multiplier field from linear markets
get the multiplier field from linear markets