EMSX
创造BloombergEMSX connection
描述
TheEMSX
function creates anEMSX
代表彭博社的对象®EMSX连接。创建一个EMSX
object, 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
Syntax
描述
本地连接
Remote Connection
also specifies the port number for the remote connection.c
= emsx(服务名称
,authid
,Serverip
,Portnumber
)
输入参数
服务名称
—彭博社EMSX服务name
'// blp/emapisvc_beta'
|'// blp/emapisvc'
彭博社EMSX服务name, specified as one of these connection types.
连接类型 | 彭博社EMSX服务名称 |
---|---|
Test |
|
生产 |
|
authid
—Bloomberg EMSX authentication identifier
角色向量|string scalar
彭博社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.
Serverip
—彭博社EMSX服务器IP地址
角色向量|string scalar
彭博社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'
Portnumber
—端口号
8194
(default) |数字标量
运行EMSX服务器进程的计算机的端口号,指定为数字标量。
对于Bloomberg EMSX桌面,请指定一个空数组,因为不需要此输入参数。对于Bloomberg EMSX服务器,需要此输入参数。
终端
—彭博终端IP地址
“localhost”
(default) |角色向量|string scalar
彭博终端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
session object
此属性仅阅读。
Bloomberg EMSX session, specified as a Bloomberg EMSX session object.
例子:[1x1 com.bloomberglp.blpapi.Session]
服务
—彭博社EMSX服务
service object
此属性仅阅读。
彭博社EMSX服务, specified as a Bloomberg EMSX service object.
TheEMSX
功能使用服务名称
输入参数。
例子:[1x1 com.bloomberglp.blpapi.impl.aQ]
IP地址
—IP地址
“ Local主持”
(default) |角色向量
此属性仅阅读。
运行彭博EMSX的机器的IP地址,指定为字符向量。
数据类型:char
Port
—端口号
数字标量
此属性仅阅读。
端口号of the machine running Bloomberg EMSX, specified as a numeric scalar.
例子:8194
数据类型:双倍的
用户
—用户
彭博API Java®object
此属性仅阅读。
用户, 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
创造BloombergEMSX连接
创造BloombergEMSX Orders and Routes
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 |
管理BloombergEMSX Orders and Routes
manualFill |
充满BloombergEMSX orders manually |
modifyOrder |
调整BloombergEMSX order |
modifyRoute |
调整BloombergEMSX路线 |
modifyRouteWithStrat |
调整BloombergEMSX路线with strategies |
deleteOrder |
删除BloombergEMSX order |
DELETEROUTE |
删除BloombergEMSX Active股票 |
processEvent |
SampleBloombergEMSX event handler |
取回BloombergEMSX Information
EMSXOrderBlotter |
BloombergEMSX示例订购杂志 |
getBrokerInfo |
ObtainBloombergEMSX broker and strategy information |
getallfieldmetadata |
ObtainBloombergEMSX field information |
例子
连接至BloombergEMSX Test Service
首先,创建彭博社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®returnsc
as 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_Brokers
field lists the Bloomberg EMSX brokers.
Brokersstrat。EMSX_TICKER ='ABCD US Equity';r = getBrokerInfo(c,brokerstrat)
r = EMSX_BROKERS: {2x1 cell}
关闭彭博社EMSX连接。
close(c)
连接至BloombergEMSX生产服务
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返回c
as 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_Brokers
field lists the Bloomberg EMSX brokers.
Brokersstrat。EMSX_TICKER ='ABCD US Equity';r = getBrokerInfo(c,brokerstrat)
r = EMSX_BROKERS: {2x1 cell}
关闭彭博社EMSX连接。
close(c)
连接至BloombergEMSX远程服务器
使用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返回c
as 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_Brokers
field lists the Bloomberg EMSX brokers.
Brokersstrat。EMSX_TICKER ='ABCD US Equity';r = getBrokerInfo(c,brokerstrat)
r = EMSX_BROKERS: {2x1 cell}
关闭彭博社EMSX连接。
close(c)
连接至BloombergEMSX远程服务器with Port Number
使用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返回c
as 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_Brokers
field lists the Bloomberg EMSX brokers.
Brokersstrat。EMSX_TICKER ='ABCD US Equity';r = getBrokerInfo(c,brokerstrat)
r = EMSX_BROKERS: {2x1 cell}
关闭彭博社EMSX连接。
close(c)
连接至Bloomberg带有终端IP地址的EMSX远程服务器
获得代理有限公司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返回c
as 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_Brokers
field 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
matlab命令
You clicked a link that corresponds to this MATLAB command:
通过在MATLAB命令窗口中输入该命令。Web浏览器不支持MATLAB命令。万博1manbetx
选择一个网站
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:。
您还可以从以下列表中选择一个网站:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
美洲
- AméricaLatina(Español)
- 加拿大(英语)
- 美国(英语)