OEC Application Programming Interface

OECClient Methods

The methods of the OECClient class are listed below. For a complete list of OECClient class members, see the OECClient Members topic.

Public Static Methods

CreateInstance Creates an instance of OECClient or connects remotely to exposed one, if searchRemoteAtFirst is true

Public Instance Methods

AcceptCommand Accepts incomming Modify or Cancel Command.
AcceptOrder Accepts an incoming Order.
AddFill Adds a new Fill to a working Order
CancelFill Cancels existing Fill
CancelOrder Sends cancel request for an existing Order.
CancelSubscription Cancels updatable historical subscription
CompleteOrder Makes a working Order completed.
Connect Establishes new connection to the OEC server.
CreateCustomCompound Creates a new blank CustomCompound
CreateDraftOverloaded. Creates a new blank OrderDraft
CreateOsmChildDraft Creates a draft for OSM child order.
Disconnect Closes the connection to the OEC server.
DisconnectClient Disconnects logged user session
LoadOsmAlgoList Loads a list of OSM algorithms.
ModifyOrder Modifies an existing Order
RejectCommand Rejects incomming Modify or Cancel Command.
RejectOrder Rejects an incoming Order.
RequestBarsOverloaded. Requests price historical information in form of intra-day bars.
RequestContractsObsolete. Request additional contracts - options and strategies (compounds)
RequestHistoryObsolete. Requests price historical information in form of daily bars.
RequestIndexComponents Sends a request to retrieve Index Components. Index Components will be available in Contract.IndexComponents after event OnIndexComponentsReceived with defined contract
RequestQuoteDetails Sends a request to retrieve Quote Details. Quote Details will be available in Contract.QuoteDetails after event OnQuoteDetailsChanged with defined contract
RequestRangeBarsObsolete. Requests price historical information in form of intra-day bars.
RequestTickBarsObsolete. Requests price historical information in form of intra-day bars.
RequestTicksOverloaded. Requests price ticks for given time range
RequestVolumeBarsObsolete. Requests price historical information in form of intra-day bars.
SendLinkedOrders Sends an chain of orders
SendMessageOverloaded. Sends a text message to a user
SendNewsMessage Send news message to everybody subscribed for given channel.
SendOCOOrders Sends a group of orders as OCO - One cancels other
SendOrderOverloaded. Internal, sends an Order with forced route.
SetLoggingConfig Sets logging config of API
SubmitAllocationBlocks Submits new allocation block list for logged user. When the list is applied OnAllocationBlocksChanged will be occured
Subscribe Subscribes for realtime Price feed.
SubscribeBarsOverloaded. Subscribes price historical information in form of intra-day bars.
SubscribeDOM Subscribes for Depth of Market (DOM) data.
SubscribeHistogram Subscribes price historical information in form of price histogram.
SubscribeHistoryObsolete. Subscribes for price historical information in form of daily bars.
SubscribeRangeBarsObsolete. Subscribes for range bars for given time range
SubscribeTickBarsObsolete. Subscribes for tick bars for given time range
SubscribeTicksOverloaded. Subscribes for price ticks for given time range
SubscribeVolumeBarsObsolete. Subscribes for volume bars for given time range
SymbolLookupOverloaded. Sends symbol lookup request to server. Results will be available via event OnSymbolLookupReceived
Unsubscribe Unsubscribes for realtime price feed
UnsubscribeDOM Unsubscribes from DOM data for a given contract
UpdateOsmAlgoList Updates a list of OSM algorithms.
ValidateAllocationBlock Validate allocation block

See Also

OECClient Class | OEC.API Namespace