统一基准与调仓规格字段
This commit is contained in:
@@ -45,6 +45,8 @@ pub struct StrategyRuntimeSpec {
|
||||
pub struct StrategyBenchmarkSpec {
|
||||
#[serde(default)]
|
||||
pub instrument_id: Option<String>,
|
||||
#[serde(default, alias = "fallback_instrument_id")]
|
||||
pub fallback_instrument_id: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default, Deserialize, Serialize)]
|
||||
@@ -62,6 +64,8 @@ pub struct StrategyRebalanceSpec {
|
||||
#[serde(default)]
|
||||
pub dates: Vec<String>,
|
||||
#[serde(default)]
|
||||
pub schedule: Option<StrategyExpressionScheduleConfig>,
|
||||
#[serde(default)]
|
||||
pub trade_times: Vec<String>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user