TCore Python API 行情
quote_connect
行情连线
def quote_connect(self,port):
Parameters
说明
port
连线port,搜寻 ZMQ log取得。
quote_logout
行情断线
def quote_logout(self,SessionKey):
Parameters
说明
SessionKey
connect时回传的sessionkey
subquote
订阅行情
def subquote(self,SessionKey,Param):
unsubquote
解阅行情
def unsubquote(self,SessionKey,Param):
sub_history
回补历史
def sub_history(self,SessionKey,Param):
get_history
分页取得历史资料
def get_history(self,SessionKey,Param):
QueryInstrumentInfo
查询合约
def QueryInstrumentInfo(self, SessionKey, symbol):
Parameters
说明
SessionKey
connect时回传的sessionkey
symbol
合约代码
QueryAllInstrumentInfo
查询全部合约
def QueryAllInstrumentInfo(self, SessionKey, type):
Parameters
说明
SessionKey
connect时回传的sessionkey
type
Future or Options or Stock
QuotePong
Pong回复以维持连线
def QuotePong(self, SessionKey):
Last updated
Was this helpful?