|
|
@@ -24,8 +24,8 @@ pub struct Params {
|
|
|
pub pair: String,
|
|
|
// 开仓
|
|
|
pub open: Decimal,
|
|
|
- // 激活开仓挂单的最小spread
|
|
|
- pub min_spread: Decimal,
|
|
|
+ // 最小挂单值
|
|
|
+ pub min_open: Decimal,
|
|
|
// 激活平仓挂单
|
|
|
pub close_activate: Decimal,
|
|
|
// 平仓
|
|
|
@@ -89,7 +89,7 @@ impl Params {
|
|
|
exchange: json_value["exchange"].as_str().unwrap().to_string(),
|
|
|
pair: json_value["pair"].as_str().unwrap().to_string(),
|
|
|
open: Decimal::try_from(json_value["open"].as_f64().unwrap_or_default()).unwrap(),
|
|
|
- min_spread: Decimal::try_from(json_value["min_spread"].as_f64().unwrap()).unwrap(),
|
|
|
+ min_open: Decimal::try_from(json_value["min_open"].as_f64().unwrap()).unwrap(),
|
|
|
close: Decimal::try_from(json_value["close"].as_f64().unwrap_or_default()).unwrap(),
|
|
|
lever_rate: Decimal::try_from(json_value["lever_rate"].as_f64().unwrap_or_default()).unwrap(),
|
|
|
ref_exchange: serde_json::from_str(json_value["ref_exchanges"].clone().as_str().unwrap()).unwrap(),
|