using YLErp.Abstract.DataProviders; namespace YLErp.Modules.DataCacheModule { /// /// 标的数据源缓存接口 /// public interface IUnderlyingDataSource : Abstract.IDataSource, IPriceProvider { /// /// 根据标的代码获取标的信息,标的代码不区分大小写(包含组合标的) /// underlying_manager GetData(string underlyingCode); /// /// 更新价格 /// bool UpdatePrices(bool delay); /// /// 获取组合标的 /// SyntheticUnderlying GetSyntheticUnderlying(string underlyingCode); /// /// 获取数量转份额的乘积因子(最小为1) /// int GetCountRatio(string underlyingCode); /// /// 更新标的资产启用状态 /// void UpdateLauchState(); /// /// 获取价格 /// double GetPrice(int underlyingId); /// /// 获取价格 /// bool TryGetPrice(int underlyingId, out double price); /// /// 初始化数据 /// /// /// bool InitData(List underlyingCodes); } }