Documentation Center

  • Trial Software
  • Product Updates

emsxOrderBlotter

Bloomberg EMSX example order blotter

Syntax

  • [T,Subs] = emsxOrderBlotter(c) example

Description

example

[T,Subs] = emsxOrderBlotter(c) displays a trader's order information. c is the Bloomberg® EMSX connection object, T is the timer object associated with the event handler, and Subs is the Bloomberg order subscription.

Examples

expand all

Display Order in Order Blotter Interface

Start the EMSX order blotter interface for connection object C.

emsxOrderBlotter(c)

The order blotter interface shows the current order information for a trader.

Define a reqSruct and then create a Bloomberg order.

reqStruct.EMSX_AMOUNT = int32(330);
reqStruct.EMSX_ORDER_TYPE = 'MKT';
reqStruct.EMSX_BROKER = 'BB';
reqStruct.EMSX_TIF = 'DAY';
reqStruct.EMSX_HAND_INSTRUCTION = 'ANY';
reqStruct.EMSX_SIDE = 'BUY';
reqStruct.EMSX_TICKER = 'XYZ';
b.createOrderAndRoute(reqStruct,'useDefaultEventHandler',false)
 CreateOrderAndRoute = {
 
     EMSX_SEQUENCE = 381499
 
     EMSX_ROUTE_ID = 1
 
     MESSAGE = Order created and routed
 
     }

This updates the order blotter interface with information on the created and routed order (EMSX_SEQUENCE 381499) using the event handler function processEventToBlotter. As orders are created and managed, the blotter is updated.

Input Arguments

expand all

c — Connection object for Bloomberg EMSX serviceobject structure

Connection object for Bloomberg EMSX service, specified using emsx.

Output Arguments

expand all

T — Timer for event handlerstring

Timer for the event handler, returned as a string.

Subs — Bloomberg EMSX order subscription structure

Bloomberg EMSX order subscription, returned as an object.

See Also

|

Was this topic helpful?