interface TradeDeskAut

Brief

Trade desk class.

Public Constants

COLUMNSFILTER_DEFAULT

Do not show the stop/limit columns mode for the SetColumnsFilterType method.

COLUMNSFILTER_EXTENDED

Show the stop/limit columns mode for the SetColumnsFilterType method.

EventAdd

Gets mask for the OnRowAdded event for the EnablePendingEvents method.

EventAsyncRequestResult

Gets mask for all events related to the asynchronous methods for the EnablePendingEvents method.

EventChange

Gets mask for the OnRowChanged event for the EnablePendingEvents method.

EventGetPriceHistory

Gets mask for events related to getting historical prices for the EnablePendingEvents method.

EventPriceSessionStatusChange

Gets mask for the OnPriceSessionStatusChanged event for the EnablePendingEvents method.

EventRemove

Gets mask for the OnRowBeforeRemove event for the EnablePendingEvents method.

EventRetrieveSessions

Gets mask for events related to retrieving trading sessions for the EnablePendingEvents method.

EventSessionStatusChange

Gets mask for the OnSessionStatusChanged event for the EnablePendingEvents method.

EVENTSFILTER_ALL

The "all events" mode for the SetTableEventsFilter method.

EVENTSFILTER_SERVER

The "server events" mode for the SetTableEventsFilter method.

FIX_CLOSE

Creates Immediate Close order in the CreateFixOrder, CreateFixOrder2 and CreateFixOrder3 methods.

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

FIX_CLOSELIMIT

Creates Immediate Close Limit order in the CreateFixOrder, CreateFixOrder2 and CreateFixOrder3 methods.

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

FIX_CLOSEMARKET

Creates Immediate Close Market order in the CreateFixOrder, CreateFixOrder2 and CreateFixOrder3 methods.

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

FIX_CLOSERANGE

Creates Immediate Close Range order in the CreateFixOrder, CreateFixOrder2 and CreateFixOrder3 methods.

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

FIX_CLOSEREQUOTE

Accepts a previously requoted close order in the CreateFixOrder, CreateFixOrder2 and CreateFixOrder3 methods.

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

FIX_ENTRYLIMIT

Creates Entry Limit order in the CreateFixOrder, CreateFixOrder2 and CreateFixOrder3 methods.

FIX_ENTRYSTOP

Creates Entry Stop order in the CreateFixOrder, CreateFixOrder2 and CreateFixOrder3 methods.

FIX_LIMIT

Creates Limit order in the CreateFixOrder, CreateFixOrder2 and CreateFixOrder3 methods.

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

FIX_OPEN

Creates Immediate Open order in the CreateFixOrder, CreateFixOrder3 and CreateFixOrder2 methods.

FIX_OPENLIMIT

Creates Immediate Open Limit order in the CreateFixOrder, CreateFixOrder2 and CreateFixOrder3 methods.

FIX_OPENMARKET

Creates Immediate Open Market order in the CreateFixOrder, CreateFixOrder2 and CreateFixOrder3 methods.

FIX_OPENRANGE

Creates Immediate Open Range order in the CreateFixOrder, CreateFixOrder2 and CreateFixOrder3 methods.

FIX_OPENREQUOTE

Accepts a previously requoted open order in the CreateFixOrder, CreateFixOrder2 and CreateFixOrder3 methods.

FIX_STOP

Creates Stop order in the CreateFixOrder, CreateFixOrder2 and CreateFixOrder3 methods.

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

ORDER_ID

The search by the OrderID field mode for the RequestOrderStatus method.

REQUEST_ID

The search by the RequestID field mode for the RequestOrderStatus method.

REQUEST_TEXT

The search by the QTXT field mode for the RequestOrderStatusmethod.

ROWSFILTER_DEFAULT

Do not show the stop/limit orders mode for the SetRowsFilterType method.

ROWSFILTER_EXTENDED

Show the stop/limit orders mode for the SetRowsFilterType method.

SL_LIMIT

The "simple limit order" mode for the methods which set pegged stop/limit orders.

SL_NONE

The "no orders" mode for the methods which set pegged stop/limit orders.

SL_PEGGEDLIMIT

Deprecated; use the SL_PEGLIMITOPEN property instead.

SL_PEGGEDSTOP

Deprecated; use the SL_PEGSTOPOPEN property instead.

SL_PEGLIMITCLOSE

The "pegged limit order from close price" mode for the methods which set pegged stop/limit orders.

SL_PEGLIMITOPEN

The "pegged limit order from open price" mode for the methods which set pegged stop/limit orders.

SL_PEGSTOPCLOSE

The "pegged stop order from close price" mode for the methods which set pegged stop/limit orders.

SL_PEGSTOPOPEN

The "pegged stop order from open price" mode for the methods which set pegged stop/limit orders.

SL_STOP

The "simple stop order" mode for the methods which set pegged stop/limit orders.

TIF_DAY

The DAY Time In Force option for entry orders.

TIF_FOK

The Fill Or Kill (FOK) option for immediate orders.

TIF_GTC

The Good Until Cancelled (GTC) option for immediate orders.

TIF_IOC

The Immediate Or Cancel (IOC) option for immediate orders.

TIMEOUT_COMMON

The "timeout on other operations" mode for the SetTimeout and GetTimeout methods.

TIMEOUT_LOGIN

The "timeout on login" mode for the SetTimeout and GetTimeout methods.

TIMEOUT_PRICEHISTORY

The "timeout on getting price history" mode for the SetTimeout and GetTimeout methods.

TIMEOUT_REFRESH

The "timeout on table refresh" mode for the SetTimeout and GetTimeout methods.

Public Properties

ApplicationID

Gets/Sets the application ID.

LastError

Gets the text of the latest error.

PendingEventsMonitor

Gets an instance of pending events Monitor.

PermissionChecker

Gets an instance of the permission checker.

PriceHistoryHelper

Gets an instance of the price history helper.

ServerTime

Gets the server time.

TablesManager

Gets an instance of the table manager.

TimeZoneConverter

Gets an instance of the time zone converter.

TradingSettingsProvider

Gets an instance of the trading settings provider.

Public Methods

AcceptOrder

Accepts an order in the "requoted" state.

AcceptQuote

Accept the previously requested quote.

ChangeEntryOrder, ChangeEntryOrderAsync

Changes a rate, amount and trailing of an entry order.

ChangeEntryOrderAmount, ChangeEntryOrderAmountAsync

Changes the amount of the entry order.

ChangeEntryOrderStopLimit

Deprecated. Please use the ChangeEntryOrderStopLimit3 method instead.

Changes either a stop or limit order for the entry order.

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

ChangeEntryOrderStopLimit2, ChangeEntryOrderStopLimitAsync

Deprecated. Please use the ChangeEntryOrderStopLimit3 method instead.

Changes either a stop or limit order both simple and pegged for the entry order and returns id of the stop or limit order.

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

ChangeEntryOrderStopLimit3, ChangeEntryOrderStopLimit3Async

Changes a stop/limit order both simple and pegged for the entry order, allows setting the traling mode for stop/limit and returns the order id.

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

ChangeEntryOrderStopLimitELS, ChangeEntryOrderStopLimitELSAsync

Changes either a secondary stop or limit order associated with the entry order in ELS order group. Allows to choose the kind of stop/limit orders.

ChangeEntryOrderStopLimitEx

Deprecated. Please use the ChangeEntryOrderStopLimit3 method instead.

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

ChangeNetStopLimit, ChangeNetStopLimitAsync

Deprecated. Please use the ChangeNetStopLimit2 method instead.

Creates or changes a net position stop/limit order.

ChangeNetStopLimit2, ChangeNetStopLimit2Async

Creates or changes a net position stop/limit order and allows setting the traling mode.

ChangeOrderRate, ChangeOrderRateAsync

Deprecated. Please use the ChangeOrderRate2 method instead.

Changes the rate of the order.

ChangeOrderRate2, ChangeOrderRate2Async

Changes the rate of the order and allows making the order trailing.

ChangeTradeStopLimit

Deprecated. Please use the ChangeTradeStopLimit3 method instead.

Changes either a stop or limit order for the trade.

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

ChangeTradeStopLimit2, ChangeTradeStopLimitAsync

Deprecated. Please use the ChangeTradeStopLimit3 method instead.

Changes either a stop or limit order for the trade and returns the order id.

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

ChangeTradeStopLimit3, ChangeTradeStopLimit3Async

Changes a stop/limit order for the trade, allows setting the trailing mode for stop/limit and returns the order id.

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

ChangeTradeStopLimitEx

Deprecated. Please use the ChangeTradeStopLimit3 method instead.

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

CheckVersion

Checks whether the instance of the Order2Go must be updated.

CloseTrade, CloseTradeAsync

Deprecated. Please use the CloseTrade2 method instead.

Closes a trade.

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

Please read: How to close positions on United States based (FIFO) accounts.

CloseTrade2, CloseTrade2Async

Closes a trade by a GTC/IOC order.

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

Please read: How to close positions on United States based (FIFO) accounts.

CloseTradesByInstrument, CloseTradesByInstrumentAsync

Deprecated. Please use the CloseTradesByInstrument2 method instead.

Closes all short or long positions for an instrument on an account.

CloseTradesByInstrument2, CloseTradesByInstrument2Async

Closes all short or long positions for an instrument on an account by a GTC/IOC order.

CreateEntryOrder

Deprecated. Please use the CreateEntryOrder3 method instead.

Creates an entry order and a stop or limit or both orders on this order if requested.

Partial functionality for United States based accounts. Specifying any values for Stop and Limit (besides 0) in this function will result in this function throwing an Exception/Error. Please read NFA Compliance Rule 2-43(b).

CreateEntryOrder2, CreateEntryOrderAsync

Deprecated. Please use the CreateEntryOrder3 method instead.

Creates an entry order and, if requested, a stop or limit or both orders (simple or pegged) on the entry order.

Partial functionality for United States based accounts. Specifying any values for Stop and Limit (besides 0) in this function will result in this function throwing an Exception/Error. Please read NFA Compliance Rule 2-43(b).

CreateEntryOrder3, CreateEntryOrder3Async

Creates an entry order and, if requested, a stop or limit or both orders (simple or pegged) on the entry order. Allows making any of the orders trailing.

Partial functionality for United States based accounts. Specifying any values for Stop and Limit (besides 0) in this function will result in this function throwing an Exception/Error. Please read NFA Compliance Rule 2-43(b).

CreateEntryOrder4, CreateEntryOrder4Async

Creates an entry order and, if requested, a stop or limit or both orders (simple or pegged) on the entry order. Allows making any of the orders trailing and also allows choosing Time In Force for the entry order.

Partial functionality for United States based accounts. Specifying any values for Stop and Limit (besides 0) in this function will result in this function throwing an Exception/Error. Please read NFA Compliance Rule 2-43(b).

CreateEntryOrderELS, CreateEntryOrderELSAsync

Creates an ELS batch with an entry order as a primary order.

CreateFixOrder

Deprecated. Please use the CreateFixOrder3 method instead.

Creates a FIX order.

CreateFixOrder2, CreateFixOrderAsync

Deprecated. Please use the CreateFixOrder3 method instead.

Creates a FIX order.

CreateFixOrder3, CreateFixOrder3Async

Creates a FIX order.

CreateOCO, CreateOCOAsync

Creates an OCO order.

CreateOrdersBatch

Creates an instance of the OrdersBatchAut class.

CreateOrdersIDEnum

Creates an instance of the OrdersIDEnumAut class.

DeleteEntryOrderStopLimit

Deletes either a stop or limit order created for the entry order.

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

DeleteNetStopLimit

Deletes a net position stop/limit order.

DeleteOrder, DeleteOrderAsync

Deletes the order.

DeleteQuote

Rejects the quote.

DeleteTradeStopLimit

Deletes either a stop or limit order created for the trade.

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

EnablePendingEvents

Enables or disables pending events.

ExcludeFromOCO, ExcludeFromOCOAsync

Moves entry order(s) from the corresponding OCO order(s) and makes independent orders.

FindMainTable

Finds the table by the type.

FindRowInTable

Finds the row in the specified table.

GetInstruments

Gets a list of all available instruments.

GetNetSLOrders

This method retrieves Net Stop and Limit OrderIDs from specified Instrument and Account.

GetOCOList

Gets a list of OCO orders.

GetOrderAmount

Gets the amount of the order

GetOrdersInOCO

Gets a list of orders linked to an OCO order.

GetOrderSL

The method gets a rate of the stop or limit order associated with the entry order.

GetOrderSLOrders

Gets the stop and limit orders associated with the specified order.

GetOrderStatus

Gets the status of the order.

GetOrderTime

Gets a time of the order.

GetOrderType

Gets the type of the order.

GetParser

Gets an instance of the ParserAut class.

GetPendingEvents

Gets all accumulate pending events.

GetPriceHistory, GetPriceHistoryAsync

Gets the historical prices (EST).

GetPriceHistoryUTC, GetPriceHistoryUTCAsync

Gets the historical prices (UTC).

NOTE: Use TimeZoneCoverterAut to convert UTC dates to format you want it in.
Example can found in method TimeZoneConverterAut.Convert

GetQuoteRate

Gets the rate of the quote.

GetReportURL

Gets URL for receiving the combo account statement report

GetSignalEventHandle

Gets signal event HANDLE.

GetSystemProperty

Returns the trade server properties.
NOTE: Please use TradingSettingsProviderAut interface to retrieve trading settings, instead of retrieving system properties.

GetTableRowsNumber

Gets the number of the rows in the specified table.

GetTimeout

Gets the length of time, in milliseconds, before the request times out.

GetTradeByOrder

Gets the TradeID by the OrderID.

GetTradeSLOrders

Gets the stop and limit orders associated with the specified trade.

IsLoggedIn

Checks whether there is connection to the trade server.

IsPriceServerConnected

Defines whether the conection with the price server is established.

JoinToOCO, JoinToOCOAsync

Adds specified order(s) to an OCO order.

Login

Establishes connection with the trade server.

LoginAsync

Establishes connection with the trade server. The method is implemented for asynchronous execution.

LoginWithSubidPIN

Establishes connection with the trade server with using PIN.

Logout

Closes connection with the trade server.

LogoutAsync

Closes connection with the trade server. The method is implemented for asynchronous execution.

OpenTrade

Deprecated. Please use the OpenTrade3 method instead.

Opens a trade and creates a stop or limit or both orders on this trade if requested.

Partial functionality for United States based accounts. Specifying any values for Stop and Limit (besides 0) in this function will result in this function throwing an Exception/Error. Please read NFA Compliance Rule 2-43(b).

OpenTrade2, OpenTradeAsync

Deprecated. Please use the OpenTrade3 method instead.

Opens a trade and, if requested, creates a stop or limit or both orders (simple or pegged) on this trade.

Partial functionality for United States based accounts. Specifying any values for Stop and Limit (besides 0) in this function will result in this function throwing an Exception/Error. Please read NFA Compliance Rule 2-43(b).

OpenTrade3, OpenTrade3Async

Opens a trade by a GTC/IOC order and, if requested, creates a stop or limit or both orders (simple or pegged) on this trade and allows making stop/limit trailing.

Partial functionality for United States based accounts. Specifying any values for Stop and Limit (besides 0) in this function will result in this function throwing an Exception/Error. Please read NFA Compliance Rule 2-43(b).

OpenTradeELS, OpenTradeELSAsync

Creates an ELS batch with a market order as a primary order.

OpenTradeEx

Deprecated. Please use the OpenTrade3 method instead.

Partial functionality for United States based accounts. Specifying any values for Stop and Limit (besides 0) in this function will result in this function throwing an Exception/Error. Please read NFA Compliance Rule 2-43(b).

RequestOrderStatus

Requests the status of the order.

RequestQuote

Requests the quote from a dealer.

RetrieveTradeSessions, RetrieveTradeSessionsAsync

Gets the information about available trading sessions.

SetColumnsFilterType

Sets the extended filter for columns.

SetOfferSubscription

Subscribes or unsubscribes for the offers of the specified instrument.

SetProxySettings

Sets the settings for the HTTP proxy server.

SetRequestParameter

Sets the additional parameter to all requests.

SetRowsFilterType

Sets the extended filter for rows.

SetTableEventsFilter

Sets filtration type of events for a table.

SetTimeout

Sets the length of time, in milliseconds, before the request times out.

Subscribe

Subscribes the TradeDeskEventsSink ActiveX control for the events.

Unsubscribe

Unsubscribe the TradeDeskEventsSink ActiveX control.

back