类 MarketCenter
java.lang.Object
org.dromara.northstar.gateway.mktdata.MarketCenter
- 所有已实现的接口:
TickDataAware,IContractManager,IMarketCenter
市场中心
负责作为网关的防腐层,聚合合约管理以及指数TICK合成
- 作者:
- KevinHuangwl
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddDefinitions(List<ContractDefinition> contractDefs) 增加合约定义voidaddGateway(MarketGateway gateway) 增加网关voidaddInstrument(Instrument ins) 注册网关合约void停盘收尾处理getContract(ChannelType channelType, String code) 查询合约getContract(Identifier identifier) 查找合约getContracts(String gatewayId) 获取网关合约getContracts(ChannelType channelType) 获取网关合约getGateway(ChannelType channelType) 获取网关voidloadContractGroup(ChannelType channelType) 加载合约组voidonTick(CoreField.TickField tick) 更新行情从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.dromara.northstar.common.TickDataAware
endOfMarket
-
构造器详细资料
-
MarketCenter
-
-
方法详细资料
-
addDefinitions
增加合约定义- 指定者:
addDefinitions在接口中IMarketCenter
-
addInstrument
注册网关合约- 指定者:
addInstrument在接口中IMarketCenter
-
loadContractGroup
加载合约组- 指定者:
loadContractGroup在接口中IMarketCenter
-
getContract
查找合约- 指定者:
getContract在接口中IContractManager- 返回:
-
getContract
查询合约- 指定者:
getContract在接口中IContractManagercode- 可以是symbol或unifiedSymbol- 返回:
-
getContracts
获取网关合约- 指定者:
getContracts在接口中IContractManager- 返回:
-
getContracts
获取网关合约- 指定者:
getContracts在接口中IContractManager- 返回:
-
onTick
更新行情- 指定者:
onTick在接口中TickDataAware
-
endOfMarketTime
public void endOfMarketTime()从接口复制的说明:IMarketCenter停盘收尾处理- 指定者:
endOfMarketTime在接口中IMarketCenter
-
addGateway
增加网关- 指定者:
addGateway在接口中IMarketCenter
-
getGateway
从接口复制的说明:IMarketCenter获取网关- 指定者:
getGateway在接口中IMarketCenter
-