"BloombergDataLicense" (Service Connection)

This service connection requires Wolfram Finance Platform »

Connect your Bloomberg Data License account to the Wolfram Language to analyze market data. Support for this service is provided in Wolfram Finance Platform.

Connecting & Authenticating

ServiceConnect["BloombergDataLicense"] creates a connection to the Bloomberg Data License API. A client certificate must be installed to verify the user's identity.

Entity Lookup

Entity["BloombergDataLicense","entity"]["property"] gets the property "property" for Bloomberg Data License entity "entity".

Requests

ServiceRequest["BloombergDataLicense","request",params] creates a service request object to be sent to Bloomberg Data License service, using parameters params.
ServiceSubmit[req] submits a service request to the Bloomberg Data License API.
ServiceSubmit[ScheduledTask[req,spec]] submits a request to be run on Bloomberg Data License servers on the schedule specified by spec.
ServiceExecute[req] sends a service request to the Bloomberg Data License API.
The following give possible requests.

Fields

Requests:

"Fields" look up valid fields supported by Bloomberg Data License service

Market Data

Requests:

"GetData" look up information on Bloomberg Data License service

Parameters:
  • "Instruments"instrument nameBloomberg instrument name or Bloomberg Global ID (BBGID)
    "Fields"list of fieldsBloomberg fields
  • Requests:

    "GetQuotes" return sale price of each trade

    Parameters:
  • "Instrument"instrument nameBloomberg instrument name or BBGID
    "Period" time intervaltime interval of tick events
  • Requests:

    "GetAllQuotes" return sale price and matching bid, and ask price for each trade

    Parameters:
  • "Instrument"instrument nameBloomberg instrument name or BBGID
    "Period" time intervaltime interval of tick events
  • During the execution of the task, the following events can be generated:
  • "TaskStarted"task is started
    "ScheduleTriggered"scheduled task evaluation is triggered
    "ResponseReceived"response received from the service
    "ScheduleExecuted"scheduled task evaluation is executed
    "TaskStatusChanged"task status changed
    "TaskFinished"task is completely finished
    "TaskRemoved"task is being removed
  • With the specification HandlerFunctions-><|,"eventi"->fi,|>, fi[assoc] is evaluated whenever eventi is generated. The elements of assoc have keys specified by the setting for HandlerFunctionsKeys.
    Possible keys specified by HandlerFunctionsKeys include:
  • "Request"request being submitted
    "EvaluationResult"response received
    "Service"name of the service
    "Instrument"Bloomberg instrument
    "Property"Bloomberg property
    "Value"value for given instrument and property
    "EventName"the name of the event being handled
  • For scheduled tasks, the following additional keys can be specified:
  • "Schedule"task schedule specification
    "RunInterval"interval between task runs
    "PreviousRunCount"number of times the task has already run
    "RemainingRunCount"number of times the task still has to run
    "TotalRunCount"total number of times the task is scheduled to run
  • Examples

    Basic Examples  (5)

    Create a new connection:

    In[1]:=
    Click for copyable input
    Out[1]=

    Look up the last available "BID" and "ASK" prices for "MSFT US Equity":

    In[2]:=
    Click for copyable input
    Out[2]=

    Create a request to fetch all trade prices for an instrument:

    In[1]:=
    Click for copyable input
    Out[1]=
    In[2]:=
    Click for copyable input
    Out[2]=

    Create a request:

    In[1]:=
    Click for copyable input
    Out[1]=

    Submit the request:

    In[2]:=
    Click for copyable input
    Out[2]=

    Create a request to fetch historical data:

    In[1]:=
    Click for copyable input
    Out[1]=

    Submit the request:

    In[2]:=
    Click for copyable input
    Out[2]=

    Examine the result:

    In[3]:=
    Click for copyable input
    Out[3]=

    Create a request to query deployed tasks:

    In[1]:=
    Click for copyable input
    Out[1]=

    Query deployed tasks:

    In[2]:=
    Click for copyable input

    Redeploy a task:

    In[3]:=
    Click for copyable input
    Out[3]=