主要内容

EMSX

创造BloombergEMSX connection

描述

TheEMSXfunction creates anEMSX代表彭博社的对象®EMSX连接。创建一个EMSXobject, you can use the object functions to create and route orders, and manage orders and routes. For details about Bloomberg EMSX, see theEMSX API程序员指南

Creation

描述

本地连接

example

c= emsx(服务名称)creates a connection to the local Bloomberg EMSX communications server using the service服务名称

Remote Connection

example

c= emsx(服务名称,authid,Serverip)使用指定的服务名称,身份验证标识符和服务器IP地址创建与远程EMSX服务器的连接。

example

c= emsx(服务名称,authid,Serverip,Portnumber)also specifies the port number for the remote connection.

example

c= emsx(服务名称,authid,Serverip,Portnumber,终端)also specifies the IP address of the machine you use to access the Bloomberg Terminal for the remote connection.

输入参数

展开全部

彭博社EMSX服务name, specified as one of these connection types.

连接类型 彭博社EMSX服务名称

Test

'// blp/emapisvc_beta'

生产

'// blp/emapisvc'

彭博社EMSX身份验证标识符,指定为字符向量或字符串标量。

For Bloomberg EMSX Desktop, specify an empty character vector or string scalar because this input argument is not required. For Bloomberg EMSX Server, this input argument is required.

彭博社EMSX服务器IP地址,指定为字符向量或字符串标量。此地址是运行彭博社EMSX服务器进程的机器的IP地址。

For Bloomberg EMSX Desktop, specify an empty character vector or string scalar because this input argument is not required. For Bloomberg EMSX Server, this input argument is required.

例子:'111.222.333.44'

运行EMSX服务器进程的计算机的端口号,指定为数字标量。

对于Bloomberg EMSX桌面,请指定一个空数组,因为不需要此输入参数。对于Bloomberg EMSX服务器,需要此输入参数。

彭博终端IP地址, specified as a character vector or string scalar. This address is the IP address of the machine you use to access the Bloomberg Terminal.

例子:'111.222.333.44'

Properties

展开全部

此属性仅阅读。

Bloomberg EMSX session, specified as a Bloomberg EMSX session object.

例子:[1x1 com.bloomberglp.blpapi.Session]

此属性仅阅读。

彭博社EMSX服务, specified as a Bloomberg EMSX service object.

TheEMSX功能使用服务名称输入参数。

例子:[1x1 com.bloomberglp.blpapi.impl.aQ]

此属性仅阅读。

运行彭博EMSX的机器的IP地址,指定为字符向量。

数据类型:char

此属性仅阅读。

端口号of the machine running Bloomberg EMSX, specified as a numeric scalar.

例子:8194

数据类型:双倍的

此属性仅阅读。

用户, specified as a Bloomberg API Java object for Bloomberg EMSX Server. For Bloomberg EMSX Desktop, this property is empty.

例子:[1×1 com.bloomberglp.blpapi.impl.by]

Object Functions

展开全部

close CloseBloombergEMSX connection
订单 ObtainBloombergEMSX订单订阅
路线 ObtainBloombergEMSX路线subscription
createOrder 创造BloombergEMSX order
路由订单 RouteBloombergEMSX order
路由订单WithStrat RouteBloombergEMSX order with strategies
grouprouteorder Route group ofBloombergEMSX orders
grouprouteorderwithstrat Route group ofBloombergEMSX orders with strategies
CreateOrderAndRoute 创造and routeBloombergEMSX order
CreateOrderAndRouteWithStrat 创造and routeBloombergEMSX order with strategies
createBasket 创建篮子BloombergEMSX orders
manualFill 充满BloombergEMSX orders manually
modifyOrder 调整BloombergEMSX order
modifyRoute 调整BloombergEMSX路线
modifyRouteWithStrat 调整BloombergEMSX路线with strategies
deleteOrder 删除BloombergEMSX order
DELETEROUTE 删除BloombergEMSX Active股票
processEvent SampleBloombergEMSX event handler
EMSXOrderBlotter BloombergEMSX示例订购杂志
getBrokerInfo ObtainBloombergEMSX broker and strategy information
getallfieldmetadata ObtainBloombergEMSX field information

例子

全部收缩

首先,创建彭博社EMSX测试​​服务连接。然后,获取经纪人信息。

创造a connectionc到彭博社EMSX测试​​服务。您可以使用此服务进行测试呼叫。

c = emsx('// blp/emapisvc_beta')
c = emsx with properties: Session: [1x1 com.bloomberglp.blpapi.Session] Service: [1x1 com.bloomberglp.blpapi.impl.aQ] Ipaddress: 'localhost' Port: 8194 User: []

MATLAB®returnscas the connection to the Bloomberg EMSX test service with the following properties:

  • Bloomberg EMSX session object

  • 彭博社EMSX服务object

  • IP地址of the machine running the Bloomberg EMSX test service

  • 端口号of the machine running the Bloomberg EMSX test service

Define the broker and strategy information structureBrokersstrat。使用彭博EMSX连接获取经纪人信息c和结构Brokersstrat

TheEMSX_Brokersfield lists the Bloomberg EMSX brokers.

Brokersstrat。EMSX_TICKER ='ABCD US Equity';r = getBrokerInfo(c,brokerstrat)
r = EMSX_BROKERS: {2x1 cell}

关闭彭博社EMSX连接。

close(c)

First, create a Bloomberg EMSX production service connection. Then, obtain broker information.

创造a connectionc到彭博社EMSX生产服务。您可以使用此服务进行实时呼叫。

c = emsx('// blp/emapisvc')
c = emsx with properties: Session: [1x1 com.bloomberglp.blpapi.Session] Service: [1x1 com.bloomberglp.blpapi.impl.aQ] Ipaddress: 'localhost' Port: 8194 User: []

MATLAB返回cas the connection to the Bloomberg EMSX production service with the following properties:

  • Bloomberg EMSX session object

  • 彭博社EMSX服务object

  • 运行彭博社EMSX生产服务的机器的IP地址

  • 运行彭博社EMSX生产服务的机器的端口号

Define the broker and strategy information structureBrokersstrat。使用彭博EMSX连接获取经纪人信息c和结构Brokersstrat

TheEMSX_Brokersfield lists the Bloomberg EMSX brokers.

Brokersstrat。EMSX_TICKER ='ABCD US Equity';r = getBrokerInfo(c,brokerstrat)
r = EMSX_BROKERS: {2x1 cell}

关闭彭博社EMSX连接。

close(c)

使用Bloomberg EMSX连接到远程服务器获得代理信息。

创造a connectionc到Bloomberg EMSX远程服务器。指定服务名称,身份验证标识符和服务器IP地址。

ServiceName ='// blp/emapisvc_beta';authid='abcdef123';serverip ='111.222.333.44';C = EMSX(ServiceName,authid,serverip)
C =具有属性的EMSX:会话:[1x1 com.bloomberglp.blpapi.session]服务:[1x1 com.bloomberglp.blpapi.impl.aq] ipaddress:'111.222.333.44'端口:8194'端口:8194用户:[1×1 com。bloomberglp.blpapi.impl.by]

MATLAB返回cas the connection to the Bloomberg EMSX test service with the following properties:

  • Bloomberg EMSX session object

  • 彭博社EMSX服务object

  • IP地址of the machine running the Bloomberg EMSX test service

  • 端口号of the machine running the Bloomberg EMSX test service

  • 彭博API Java对象

Define the broker and strategy information structureBrokersstrat。使用彭博EMSX连接获取经纪人信息c和结构Brokersstrat

TheEMSX_Brokersfield lists the Bloomberg EMSX brokers.

Brokersstrat。EMSX_TICKER ='ABCD US Equity';r = getBrokerInfo(c,brokerstrat)
r = EMSX_BROKERS: {2x1 cell}

关闭彭博社EMSX连接。

close(c)

使用Bloomberg EMSX连接到具有端口号的远程服务器。

创造a connectionc到Bloomberg EMSX远程服务器。指定服务名称,身份验证标识符,服务器IP地址和端口号。

ServiceName ='// blp/emapisvc_beta';authid='abcdef123';serverip ='111.222.333.44';portnumber = 8194;C = EMSX(ServiceName,authid,serverip,portnumber)
C =具有属性的EMSX:会话:[1x1 com.bloomberglp.blpapi.session]服务:[1x1 com.bloomberglp.blpapi.impl.aq] ipaddress:'111.222.333.44'端口:8194'端口:8194用户:[1×1 com。bloomberglp.blpapi.impl.by]

MATLAB返回cas the connection to the Bloomberg EMSX test service with the following properties:

  • Bloomberg EMSX session object

  • 彭博社EMSX服务object

  • IP地址of the machine running the Bloomberg EMSX test service

  • 端口号of the machine running the Bloomberg EMSX test service

  • 彭博API Java对象

Define the broker and strategy information structureBrokersstrat。使用彭博EMSX连接获取经纪人信息c和结构Brokersstrat

TheEMSX_Brokersfield lists the Bloomberg EMSX brokers.

Brokersstrat。EMSX_TICKER ='ABCD US Equity';r = getBrokerInfo(c,brokerstrat)
r = EMSX_BROKERS: {2x1 cell}

关闭彭博社EMSX连接。

close(c)

获得代理有限公司mation using a Bloomberg EMSX connection to a remote server with a port number and Bloomberg Terminal IP address.

创造a connectionc到Bloomberg EMSX远程服务器。指定服务名称,身份验证标识符,服务器IP地址和端口号。Also, specify the IP address of the machine you use to access the Bloomberg Terminal.

ServiceName ='// blp/emapisvc_beta';authid='abcdef123';serverip ='111.222.333.44';portnumber = 8194;终端='5555.222.333.44';C = EMSX(ServiceName,authid,serverip,portnumber,终端)
C =具有属性的EMSX:会话:[1x1 com.bloomberglp.blpapi.session]服务:[1x1 com.bloomberglp.blpapi.impl.aq] ipaddress:'111.222.333.44'端口:8194'端口:8194用户:[1×1 com。bloomberglp.blpapi.impl.by]

MATLAB返回cas the connection to the Bloomberg EMSX test service with the following properties:

  • Bloomberg EMSX session object

  • 彭博社EMSX服务object

  • IP地址of the machine running the Bloomberg EMSX test service

  • 端口号of the machine running the Bloomberg EMSX test service

  • 彭博API Java对象

Define the broker and strategy information structureBrokersstrat。使用彭博EMSX连接获取经纪人信息c和结构Brokersstrat

TheEMSX_Brokersfield lists the Bloomberg EMSX brokers.

Brokersstrat。EMSX_TICKER ='ABCD US Equity';r = getBrokerInfo(c,brokerstrat)
r = EMSX_BROKERS: {2x1 cell}

关闭彭博社EMSX连接。

close(c)

Version History

在R2013a中引入