|
|
@@ -276,13 +276,13 @@ impl Platform for GateSwap {
|
|
|
let tick_size = Decimal::from_str(value["order_price_round"].as_str().unwrap()).unwrap();
|
|
|
let min_qty = Decimal::from_str(&value["order_size_min"].to_string()).unwrap();
|
|
|
let max_qty = Decimal::from_str(&value["order_size_max"].to_string()).unwrap();
|
|
|
- let ct_val = Decimal::from_str(value["quanto_multiplier"].as_str().unwrap()).unwrap();
|
|
|
+ let multiplier = Decimal::from_str(value["quanto_multiplier"].as_str().unwrap()).unwrap();
|
|
|
|
|
|
- let amount_size = min_qty * ct_val;
|
|
|
+ let amount_size = min_qty * multiplier;
|
|
|
let price_precision = Decimal::from_u32(tick_size.scale()).unwrap();
|
|
|
let amount_precision = Decimal::from_u32(amount_size.scale()).unwrap();
|
|
|
- let min_notional = min_qty * ct_val;
|
|
|
- let max_notional = max_qty * ct_val;
|
|
|
+ let min_notional = min_qty * multiplier;
|
|
|
+ let max_notional = max_qty * multiplier;
|
|
|
|
|
|
let result = Market {
|
|
|
symbol: name.to_string(),
|
|
|
@@ -296,7 +296,7 @@ impl Platform for GateSwap {
|
|
|
max_qty,
|
|
|
min_notional,
|
|
|
max_notional,
|
|
|
- multiplier: ct_val,
|
|
|
+ multiplier,
|
|
|
};
|
|
|
Ok(result)
|
|
|
}
|