实现FIDC配置化风控与交易成本
This commit is contained in:
@@ -27,6 +27,10 @@ impl RuleCheck {
|
||||
}
|
||||
|
||||
pub trait EquityRuleHooks {
|
||||
fn duplicates_standard_china_risk(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
fn can_buy(
|
||||
&self,
|
||||
execution_date: NaiveDate,
|
||||
@@ -49,6 +53,10 @@ pub trait EquityRuleHooks {
|
||||
pub struct ChinaEquityRuleHooks;
|
||||
|
||||
impl EquityRuleHooks for ChinaEquityRuleHooks {
|
||||
fn duplicates_standard_china_risk(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn can_buy(
|
||||
&self,
|
||||
_execution_date: NaiveDate,
|
||||
|
||||
Reference in New Issue
Block a user