class O2GSession

Parents
System.IDisposable

Brief

The session object. The object should be disposed after disconnecting.

Details

The session is an object which can be connected to the trade server. Only one connection can be established from one session object, but multiple connections can be created at the same time.

Use the O2GTransport.createSession method to get an instance of the session.

The type defined in the fxcore2.dll assembly. The namespace is fxcore2.

Public Methods

Dispose

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Important: always call this function after diconnecting of the session object.

getLoginRules

Gets the rules used for the currently established session.

getPriceUpdateMode

Gets the current price update mode.

getRequestFactory

Gets an instance of the request factory.

getResponseReaderFactory

Gets an instance of the response reader factory.

getTimeConverter

Gets an instance of the date/time converter.

getTradingSessionDescriptors

Returns the list of trading station descriptors.

login

Starts the connection with the specified trade server.

LoginFailed

This event occurs when the login procedure is failed.

logout

Starts to close the existing connection with the trade server.

RequestCompleted

This event occurs when a request is completed.

RequestFailed

This event occurs when a request is failed.

sendRequest

Sends a request to the trade server.

SessionStatusChanged

This event occurs when the session status is changed.

setPriceUpdateMode

Sets the price update mode.

setTradingSession

Sets the trading session if a trading session is requested.

subscribeResponse

Subscribes a session response listener.

subscribeSessionStatus

Subscribes a session status listener.

TablesUpdates

This event occurs when a table update appears.

unsubscribeResponse

Unsubscribes a response listener.

unsubscribeSessionStatus

Unsubscribes a session status listener.

back