C# Class XAPI.COM.XApiCom

Inheritance: System.Windows.Forms.UserControl, IXApi, IObjectSafety
Afficher le fichier Open project: QuantBox/XAPI2 Class Usage Examples

Méthodes publiques

Méthode Description
CancelOrder ( string id ) : string
Connect ( ) : void
Disconnect ( ) : void
GCCollect ( ) : void

给COM使用,进行内存回收

GetInterfaceSafetyOptions ( System.Guid &riid, int &pdwSupportedOptions, int &pdwEnabledOptions ) : int
NewOrder ( ) : void
NewQuery ( ) : void
ReqQuery ( string type ) : void
SendOrder ( ) : string
SetInterfaceSafetyOptions ( Guid &riid, int dwOptionSetMask, int dwEnabledOptions ) : int
SetLibPath ( string LibPath ) : void
SetOrder ( string key, object value ) : void
SetQuery ( string key, object value ) : void
SetServerInfo ( string key, object value ) : void
SetUserInfo ( string key, object value ) : void
Subscribe ( string szInstrument, string szExchange ) : void
TryDequeue ( ) : QueueData
Unsubscribe ( string szInstrument, string szExchange ) : void
XApiCom ( ) : Ideafixxxer.Generics

Private Methods

Méthode Description
InitializeComponent ( ) : void
OnConnectionStatus_callback ( object sender, XAPI status, [ userLogin, int size1 ) : void
OnLog_callback ( object sender, [ log ) : void
OnRspQryInstrument_callback ( object sender, [ instrument, int size1, bool bIsLast ) : void
OnRspQryInvestorPosition_callback ( object sender, [ position, int size1, bool bIsLast ) : void
OnRspQryOrder_callback ( object sender, [ order, int size1, bool bIsLast ) : void
OnRspQrySettlementInfo_callback ( object sender, [ settlementInfo, int size1, bool bIsLast ) : void
OnRspQryTrade_callback ( object sender, [ trade, int size1, bool bIsLast ) : void
OnRspQryTradingAccount_callback ( object sender, [ account, int size1, bool bIsLast ) : void
OnRtnDepthMarketData_callback ( object sender, [ marketData ) : void
OnRtnError_callback ( object sender, [ error ) : void
OnRtnOrder_callback ( object sender, [ order ) : void
OnRtnTrade_callback ( object sender, [ trade ) : void
RegisterClass ( string key ) : void
UnregisterClass ( string key ) : void

Method Details

CancelOrder() public méthode

public CancelOrder ( string id ) : string
id string
Résultat string

Connect() public méthode

public Connect ( ) : void
Résultat void

Disconnect() public méthode

public Disconnect ( ) : void
Résultat void

GCCollect() public méthode

给COM使用,进行内存回收
public GCCollect ( ) : void
Résultat void

GetInterfaceSafetyOptions() public méthode

public GetInterfaceSafetyOptions ( System.Guid &riid, int &pdwSupportedOptions, int &pdwEnabledOptions ) : int
riid System.Guid
pdwSupportedOptions int
pdwEnabledOptions int
Résultat int

NewOrder() public méthode

public NewOrder ( ) : void
Résultat void

NewQuery() public méthode

public NewQuery ( ) : void
Résultat void

ReqQuery() public méthode

public ReqQuery ( string type ) : void
type string
Résultat void

SendOrder() public méthode

public SendOrder ( ) : string
Résultat string

SetInterfaceSafetyOptions() public méthode

public SetInterfaceSafetyOptions ( Guid &riid, int dwOptionSetMask, int dwEnabledOptions ) : int
riid Guid
dwOptionSetMask int
dwEnabledOptions int
Résultat int

SetLibPath() public méthode

public SetLibPath ( string LibPath ) : void
LibPath string
Résultat void

SetOrder() public méthode

public SetOrder ( string key, object value ) : void
key string
value object
Résultat void

SetQuery() public méthode

public SetQuery ( string key, object value ) : void
key string
value object
Résultat void

SetServerInfo() public méthode

public SetServerInfo ( string key, object value ) : void
key string
value object
Résultat void

SetUserInfo() public méthode

public SetUserInfo ( string key, object value ) : void
key string
value object
Résultat void

Subscribe() public méthode

public Subscribe ( string szInstrument, string szExchange ) : void
szInstrument string
szExchange string
Résultat void

TryDequeue() public méthode

public TryDequeue ( ) : QueueData
Résultat QueueData

Unsubscribe() public méthode

public Unsubscribe ( string szInstrument, string szExchange ) : void
szInstrument string
szExchange string
Résultat void

XApiCom() public méthode

public XApiCom ( ) : Ideafixxxer.Generics
Résultat Ideafixxxer.Generics