C# Class XAPI.COM.XApiCom

Inheritance: System.Windows.Forms.UserControl, IXApi, IObjectSafety
Datei anzeigen Open project: QuantBox/XAPI2 Class Usage Examples

Public Methods

Method 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

Method 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 method

public CancelOrder ( string id ) : string
id string
return string

Connect() public method

public Connect ( ) : void
return void

Disconnect() public method

public Disconnect ( ) : void
return void

GCCollect() public method

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

GetInterfaceSafetyOptions() public method

public GetInterfaceSafetyOptions ( System.Guid &riid, int &pdwSupportedOptions, int &pdwEnabledOptions ) : int
riid System.Guid
pdwSupportedOptions int
pdwEnabledOptions int
return int

NewOrder() public method

public NewOrder ( ) : void
return void

NewQuery() public method

public NewQuery ( ) : void
return void

ReqQuery() public method

public ReqQuery ( string type ) : void
type string
return void

SendOrder() public method

public SendOrder ( ) : string
return string

SetInterfaceSafetyOptions() public method

public SetInterfaceSafetyOptions ( Guid &riid, int dwOptionSetMask, int dwEnabledOptions ) : int
riid Guid
dwOptionSetMask int
dwEnabledOptions int
return int

SetLibPath() public method

public SetLibPath ( string LibPath ) : void
LibPath string
return void

SetOrder() public method

public SetOrder ( string key, object value ) : void
key string
value object
return void

SetQuery() public method

public SetQuery ( string key, object value ) : void
key string
value object
return void

SetServerInfo() public method

public SetServerInfo ( string key, object value ) : void
key string
value object
return void

SetUserInfo() public method

public SetUserInfo ( string key, object value ) : void
key string
value object
return void

Subscribe() public method

public Subscribe ( string szInstrument, string szExchange ) : void
szInstrument string
szExchange string
return void

TryDequeue() public method

public TryDequeue ( ) : QueueData
return QueueData

Unsubscribe() public method

public Unsubscribe ( string szInstrument, string szExchange ) : void
szInstrument string
szExchange string
return void

XApiCom() public method

public XApiCom ( ) : Ideafixxxer.Generics
return Ideafixxxer.Generics