Infront Connect Market Data API

Infront


1 Release information
1.1 Document info
1.2 Release notes
1.2.1 Version 1.10.4
1.2.2 Version 1.10.3
1.2.3 Version 1.10.2
1.2.4 Version 1.10.1
1.2.5 Version 1.10.0
1.2.6 Version 1.9.9
1.2.7 Version 1.9.8
1.2.8 Version 1.9.7
1.2.9 Version 1.9.6
1.2.10 Version 1.9.5
1.2.11 Version 1.9.4
1.2.12 Version 1.9.3
1.2.13 Version 1.9.2
1.2.14 Version 1.9.1
1.2.15 Version 1.9.0
1.2.16 Version 1.8.9
1.2.17 Version 1.8.8
1.2.18 Version 1.8.7
1.2.19 Version 1.8.6
1.2.20 Version 1.8.5
1.2.21 Version 1.8.4
1.2.22 Version 1.8.3
1.2.23 Version 1.8.2
1.2.24 Version 1.8.1
1.2.25 Version 1.8.0
1.2.26 Version 1.7.0
1.2.27 Version 1.6.1
1.2.28 Version 1.5.1
1.2.29 Version 1.5.0
1.2.30 Version 1.4.4
1.2.31 Version 1.4.3
1.2.32 Version 1.4.2
1.2.33 Version 1.4.1
1.2.34 Version 1.4.0
1.2.35 Version 1.3.22
1.2.36 Version 1.3.21
1.2.37 Version 1.3.20
1.2.38 Version 1.3.19
1.2.39 Version 1.3.18
1.2.40 Version 1.3.17
1.2.41 Version 1.3.16
1.2.42 Version 1.3.15
1.2.43 Version 1.3.14
1.2.44 Version 1.3.13
1.2.45 Version 1.3.12
1.2.46 Version 1.3.11
1.2.47 Version 1.3.10
1.2.48 Version 1.3.9
1.2.49 Version 1.3.8
1.2.50 Version 1.3.7
1.2.51 Version 1.3.6
1.2.52 Version 1.3.5
1.2.53 Version 1.3.4
1.2.54 Version 1.3.3
1.2.55 Version 1.3.2
1.2.56 Version 1.3.1
1.2.57 Version 1.3.0
1.2.58 Version 1.2.1
1.2.59 Version 1.2.0
1.2.60 Version 1.1.9
1.2.61 Version 1.1.8
1.2.62 Version 1.1.7
1.2.63 Version 1.1.6
1.2.64 Version 1.1.5
1.2.65 Version 1.1.4
1.2.66 Version 1.1.3
1.2.67 Version 1.1.2
2 Protocol Specification
2.1 Messages
2.2 Transport
2.3 How to read the messages
3 Message Header
3.1 Request Messages
3.2 Response Messages
3.3 Streaming Messages
4 Market data request/response messages
4.1 md_login_request
4.2 md_login_response
4.3 md_logout_request
4.4 md_logout_response
4.5 md_keep_alive_request
4.6 md_keep_alive_response
4.7 md_get_list_names_request
4.8 md_get_list_names_response
4.9 md_get_user_list_request
4.10 md_get_user_list_response
4.11 md_get_chain_request
4.12 md_get_chain_response
4.13 md_get_chains_request
4.14 md_get_chains_response
4.15 md_save_user_list_request
4.16 md_save_user_list_response
4.17 md_delete_user_list_request
4.18 md_delete_user_list_response
4.19 md_get_trades_by_date_request
4.20 md_get_trades_by_date_response
4.21 md_get_trades_by_days_request
4.22 md_get_trades_by_days_response
4.23 md_get_historical_trades_request
4.24 md_get_historical_trades_response
4.25 md_get_snapshot_request
4.26 md_get_snapshot_response
4.27 md_subscribe_instrument_request
4.28 md_subscribe_instrument_response
4.29 md_unsubscribe_instrument_request
4.30 md_unsubscribe_instrument_response
4.31 md_get_feed_metadata_request
4.32 md_get_feed_metadata_response
4.33 md_get_news_items_request
4.34 md_get_news_items_response
4.35 md_get_news_sources_request
4.36 md_get_news_sources_response
4.37 md_get_news_body_request
4.38 md_get_news_body_response
4.39 md_subscribe_news_request
4.40 md_subscribe_news_response
4.41 md_unsubscribe_news_request
4.42 md_unsubscribe_news_response
4.43 md_subscribe_alerts_request
4.44 md_subscribe_alerts_response
4.45 md_unsubscribe_alerts_request
4.46 md_unsubscribe_alerts_response
4.47 md_get_owc_request
4.48 md_get_owc_response
4.49 md_subscribe_owc_request
4.50 md_subscribe_owc_response
4.51 md_unsubscribe_owc_request
4.52 md_unsubscribe_owc_response
4.53 md_instrument_search_request
4.54 md_instrument_search_response
4.55 md_get_intraday_trades_request
4.56 md_get_intraday_trades_response
4.57 md_get_markets_request
4.58 md_get_markets_response
4.59 md_get_contact_info_request
4.60 md_get_contact_info_response
4.61 md_get_infinancials_request
4.62 md_get_infinancials_response
4.63 md_get_url_request
4.64 md_get_url_response
4.65 md_get_reference_data_request
4.66 md_get_reference_data_response
4.67 md_get_ranked_list_request
4.68 md_get_ranked_list_response
4.69 md_get_broker_stats_request
4.70 md_get_broker_stats_response
4.71 md_get_tick_sizes_request
4.72 md_get_tick_sizes_response
4.73 md_get_calendar_request
4.74 md_get_calendar_response
4.75 md_get_market_activity_request
4.76 md_get_market_activity_response
4.77 md_subscribe_market_activity_request
4.78 md_unsubscribe_market_activity_request
4.79 md_get_history_request
4.80 md_get_history_response
4.81 md_get_company_request
4.82 md_get_company_response
4.83 md_get_company_history_request
4.84 md_get_company_history_response
4.85 md_num_constituents_request
4.86 md_num_constituents_response
5 Streaming market data messages
5.1 md_instrument_update
5.2 md_news_update
5.3 md_alert_update
5.4 md_owc_update
5.5 md_feed_reset
5.6 md_session_terminated
5.7 md_resubscribe
6 Classes
6.1 instrument
6.2 chain
6.3 chain_tree
6.4 forward_curve
6.5 instrument_info
6.6 hist_performance
6.7 order_level
6.8 intraday_trade
6.9 historical_trade
6.10 news_region
6.11 news_item
6.12 news_source
6.13 market
6.14 contact
6.15 resource_parameter
6.16 search_item
6.17 broker
6.18 tick_rule
6.19 calendar_event
6.20 split
6.21 dividend
6.22 position
6.23 cash
6.24 other
6.25 owc_message
6.26 payload
6.27 alert_data
6.28 feed_chains
7 Enumerations
7.1 instrument_type
7.2 instrument_subtype
7.3 contract_type
7.4 recommendation_type
7.5 buy_or_sell
7.6 price_type
7.7 certificate_direction
7.8 special_price
7.9 resolution
7.10 intraday_sorting
7.11 historical_fields
7.12 intraday_fields
7.13 snapshot_fields
7.14 sort_order
7.15 news_type
7.16 contact_type
7.17 widget_type
7.18 oauth_server_id
7.19 feature
7.20 item_type
7.21 broker_period
7.22 chain_type
7.23 data_type
7.24 token_type
7.25 alert_type
7.26 curve_availability
7.27 type_number
8 Error codes
9 String formats

1 Release information

1.1 Document info

Table 1.1. Document info

AbstractThis document describes the JSON protocol for the Infront Connect Market Data API
AuthorInfront
API version1.10.3
Release date2021-10-13
StatusDraft
CategoryRestricted

1.2 Release notes

1.2.1 Version 1.10.4

Release date: 2021-12-01

Changes:

1.2.2 Version 1.10.3

Release date: 2021-10-13

Changes:

1.2.3 Version 1.10.2

Release date: 2021-08-13

Changes:

1.2.4 Version 1.10.1

Release date: 2021-04-14

Changes:

1.2.5 Version 1.10.0

Release date: 2018-11-23

Changes:

  • Added RECOMMENDATION_TYPE_UNKNOWN, RECOMMENDATION_TYPE_STRONG_BUY, RECOMMENDATION_TYPE_BUY, RECOMMENDATION_TYPE_HOLD, RECOMMENDATION_TYPE_SELL,RECOMMENDATION_TYPE_STRONG_SELL to recommendation_type.

1.2.6 Version 1.9.9

Release date: 2018-10-31

Changes:

1.2.7 Version 1.9.8

Release date: 2018-10-26

Changes:

  • Added contract_size, contract_type, start_of_index_period, end_of_index_period, participation_level, break_even, asian_average, bond_face_value, bond_minimum_denomination, issue_date, theoretical, delta, elast, nav, bond_coupon_reference_feed, bond_coupon_reference_symbol, bond_coupon_spread, weight, exposure to instrument.

  • Added BOND_BENCHMARK , BOND_COMMODITY , BOND_CREDIT , BOND_EQUITY_INDEX , BOND_FLOATER , BOND_GOVERNMENT , BOND_INTERVAL , BOND_MARKET , BOND_MONEY_MARKET , BOND_MORTGAGE , BOND_OTHER , BOND_PORTFOLIO , BOND_STRATEGY , BOND_STRIPS , BOND_SUSTAINABLE , BOND_TREASURY_BILLS , BOND_TREASURY_NOTES , BOND_ZERO , CERT_BALANCE , CERT_BASKET , CERT_BONUS , CERT_BULL_BEAR , CERT_CASH_OR_SHARE , CERT_COUPON , CERT_CREDIT , CERT_DISCOUNT , CERT_EXPRESS , CERT_GROWTH , CERT_GUARANTEE , CERT_INDEX , CERT_INVESTMENT , CERT_IR , CERT_LEVERAGE , CERT_LONG_SHORT , CERT_MINI_FUTURE , CERT_OTHER , CERT_OUTPERFORM , CERT_PARTICIPATION , CERT_PREMIUM , CERT_V , FOREX_DEPOSIT_INDICATIVE , FOREX_FORWARD , FOREX_FREE_FRA , FOREX_OPTION , FUND_ETP , INDEX_BALANCE , INDEX_COMMODITY , INDEX_CREDIT , INDEX_CURRENCY , INDEX_RATE , INDEX_STOCK , OPTION_BINARY_CON_CALL , OPTION_BINARY_SUPERSHARE , OPTION_STOCK to instrument_subtype.

  • Added contract_type.

1.2.8 Version 1.9.7

Release date: 2018-10-25

Changes:

1.2.9 Version 1.9.6

Release date: 2018-09-23

Changes:

1.2.10 Version 1.9.5

Release date: 2018-09-25

Changes:

1.2.11 Version 1.9.4

Release date: 2018-05-07

Changes:

  • Added one_w_last_div, one_m_last_div, three_m_last_div, six_m_last_div, one_y_last_div, wtd_last_div, mtd_last_div, ytd_last_div to hist_performance.

1.2.12 Version 1.9.3

Release date: 2018-05-02

Changes:

1.2.13 Version 1.9.2

Release date: 2018-04-04

Changes:

1.2.14 Version 1.9.1

Release date: 2017-08-23

Changes:

  • Added multiplier, mic, deleted and precision_code to instrument.

1.2.15 Version 1.9.0

Release date: 2017-07-31

Changes:

1.2.16 Version 1.8.9

Release date: 2017-07-27

1.2.17 Version 1.8.8

Release date: 2017-06-02

Changes:

1.2.18 Version 1.8.7

Release date: 2017-05-22

Changes:

1.2.19 Version 1.8.6

Release date: 2017-02-01

Changes:

1.2.20 Version 1.8.5

Release date: 2016-11-28

Changes:

  • Added ALL_ADJUSTMENTS, to feature.

1.2.21 Version 1.8.4

Release date: 2016-11-04

Changes:

1.2.22 Version 1.8.3

Release date: 2016-09-20

Changes:

  • Added issuer, issuer_full_name, under_full_name to instrument.

1.2.23 Version 1.8.2

Release date: 2016-08-10

Changes:

1.2.24 Version 1.8.1

Release date: 2016-08-02

Changes:

1.2.25 Version 1.8.0

Release date: 2016-05-06

Changes:

1.2.26 Version 1.7.0

Release date: 2015-10-06

Changes:

1.2.27 Version 1.6.1

Release date: 2015-09-24

Changes:

1.2.28 Version 1.5.1

Release date: 2015-09-04

Changes:

1.2.29 Version 1.5.0

Release date: 2015-06-22

Changes:

1.2.30 Version 1.4.4

Release date: 2015-06-17

Changes:

1.2.31 Version 1.4.3

Release date: 2015-05-06

Changes:

1.2.32 Version 1.4.2

Release date: 2015-04-24

Changes:

1.2.33 Version 1.4.1

Release date: 2015-01-13

Changes:

1.2.34 Version 1.4.0

Release date: 2014-12-19

Changes:

1.2.35 Version 1.3.22

Release date: 2014-11-12

Changes:

1.2.36 Version 1.3.21

Release date: 2014-10-16

Changes:

1.2.37 Version 1.3.20

Release date: 2014-10-06

Changes:

1.2.38 Version 1.3.19

Release date: 2014-09-26

Changes:

1.2.39 Version 1.3.18

Release date: 2014-09-23

Changes:

  • Added trades, last_valid, last_valid_date, lv_prev_close, lv_change and lv_pct_change to instrument_info.

  • Added LV_PCT_CHANGE_DESC and LV_PCT_CHANGE_DESC to sort_order.

1.2.40 Version 1.3.17

Release date: 2014-09-15

Changes:

1.2.41 Version 1.3.16

Release date: 2014-06-23

Changes:

1.2.42 Version 1.3.15

Release date: 2014-06-11

Changes:

1.2.43 Version 1.3.14

Release date: 2014-06-03

Changes:

1.2.44 Version 1.3.13

Release date: 2014-05-20

Changes:

1.2.45 Version 1.3.12

Release date: 2014-05-07

Changes:

1.2.46 Version 1.3.11

Release date: 2014-04-26

Changes:

1.2.47 Version 1.3.10

Release date: 2014-03-14

Changes:

1.2.48 Version 1.3.9

Release date: 2014-03-11

Changes:

1.2.49 Version 1.3.8

Release date: 2014-03-06

Changes:

1.2.50 Version 1.3.7

Release date: 2014-02-28

Changes:

1.2.51 Version 1.3.6

Release date: 2014-02-12

Changes:

1.2.52 Version 1.3.5

Release date: 2014-01-10

Changes:

1.2.53 Version 1.3.4

Release date: 2013-12-17

Changes:

1.2.54 Version 1.3.3

Release date: 2013-12-09

Changes:

1.2.55 Version 1.3.2

Release date: 2013-11-25

Changes:

  • Added display_market and display_ticker fields to instrument.

1.2.56 Version 1.3.1

Release date: 2013-11-21

Changes:

1.2.57 Version 1.3.0

Release date: 2013-11-06

Changes:

1.2.58 Version 1.2.1

Release date: 2013-08-20

Changes:

1.2.59 Version 1.2.0

Release date: 2013-08-16

Changes:

  • Support added for logging in using e.g. Facebook and LinkedIn by providing oauth_server_id and auth_token in md_login_request.

1.2.60 Version 1.1.9

Release date: 2013-08-13

Changes:

1.2.61 Version 1.1.8

Release date: 2013-08-12

Changes:

1.2.62 Version 1.1.7

Release date: 2013-08-09

Changes:

1.2.63 Version 1.1.6

Release date: 2013-05-31

Changes:

1.2.64 Version 1.1.5

Release date: 2013-05-16

Changes:

1.2.65 Version 1.1.4

Release date: 2013-01-23.

Changes:

1.2.66 Version 1.1.3

Release date: 2012-11-28.

Changes:

1.2.67 Version 1.1.2

Release date: 2012-11-26.

Changes:

2 Protocol Specification

2.1 Messages

All messages are formatted using JSON (JavaScript Object Notation). JSON is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. See www.json.org for a complete specification of the JSON format.

There are three types of messages:

  • Request

  • Response

  • Update

Request messages are initiated by the client system in order to read or write data to the server. All Request messages will be answered with a Response message by the server. An Update message is a message initiated by the server and sent to the client in real-time with the update information that has occurred. An Update message is not answered by the client.

2.2 Transport

The API supports HTTP and WebSocket (version 13), both with or without TLS. The messages that require asynchronous responses will fail with error code 405 if a synchronous transport is used for the message.

2.3 How to read the messages

The subsection "Keys" contains a table of compulsory and optional key/value combinations. Optional keys are enclosed within square brackets, [ ].

Table 2.1. Parameter types

Key nameValue typeDescription
mandatory_keystringKey that is mandatory
[optional_key]stringKey that is optional
instrumentclass instrumentObject of type INSTRUMENT
instrumentsclass instrument[]Array of objects of type INSTRUMENT
instrument_typeenum instrument_type[]Enumeration value of the INSTRUMENT_TYPE
time_of_tradeDATETIME formatted stringString object where the string adheres to a specific formatting

3 Message Header

3.1 Request Messages

All request messages have the following header fields.

Table 3.1. Request header fields

Key nameValue typeDescription
[request_data]stringOptional value that will be returned in the response. Used for application session identification.
[session_token]stringSession token identifying a market data session. To be used for a every market data request except md_login_request.

Example 3.1. Example request header

{
    "session_token": "733cd539-bd2e-4be8-bd68-f01274ff7706",
    "md_get_historical_trades_request": {
        "instrument": { "feed": 18177, "ticker": "AKBM" },
        "fields": ["LAST", "VOLUME"],
        "start_date": "2011-01-05",
        "end_date": "2011-01-15"
    }
}
			

3.2 Response Messages

All response messages have the following header fields.

Table 3.2. Request header fields

Key nameValue typeDescription
session_tokenstringIdentifies a market data or trading session.
error_codeintegerError code
[error_message]stringProvided if error code is not equal to 0
[error_displayable]stringError suited for direct display to end user. Possibly localized
[request_data]stringMandatory if given in the request message. Used for application session identification

Example 3.2. Example response header

{
    "error_code": 0,
    "session_token": "3932ffad-7de7-4e5e-bf78-82fcc46c363c",
    "md_get_snapshot_response": {
        "instruments": [
        {
            "feed": 18177,
            "ticker": "ORK",
            "bid": 42.82,
            "ask": 42.87
        },
        {
            "feed": 18177,
            "ticker": "STL",
            "bid": 149.40,
            "ask": 149.50
        }]
    }
}
			

3.3 Streaming Messages

All update messages have the following header fields.

Note

Some update messages are sent even if the client has not subscribed to any type of events. These updates, e.g. md_feed_reset and tr_session_terminated, do not contain the update_data field.

Table 3.3. Request header fields

Key nameValue typeDescription
[update_data]stringOptional value that may be set in a subscription request to identify a type of update

Example 3.3. Example update header

{
    "update_data": "oslo_statoil",
    "md_instrument_update": {
        "instrument": {
            "feed": 18177,
            "ticker": "STL",
            "isin": "NO0010096985"
        },
        "bid": 145.900,
        "ask": 146.000,
        "last": 146.000,
        "time": "2012-01-20T12:50:52Z",
        "change": -1.600,
        "pct_change": -1.084
    }
}
			

4 Market data request/response messages

4.1 md_login_request

Creates a session for market data access for the specified user.

Note

Several mutually exclusive combinations of credentials are permitted:

  • login_id and password

  • oauth_server_id, client_application and auth_token

  • signed_token and token_type

Table 4.1. md_login_request parameters

Key nameValue typeDescription
[login_id]stringUser id
[password]stringPassword
[signed_token]stringSigned token
[token_type]enum token_typeType of signed token
[oauth_server_id]enum oauth_server_idOAuth provider, e.g. Facebook
[auth_token]stringOAuth 2.0 authentication token
client_applicationstringDefined by Infront
client_application_versionstringVersion of client application
country_codestringCountry code formatted as the ISO 3166-1 alpha-2 definition
language_codestringLanguage code formatted as the IETF language tag definition
hostnamestringHostname of client
[device_id]stringID of the client device
[device_os]stringOS of the client device
[device_os_version]stringOS version of the client device
[api_version]stringProvided if a certain version of the API is required
[ias_token]stringA signed IAS token containing a certificate and accesses, base64-encoded. Can be used instead of specifying a username and password. Note that this can be very large

Example 4.1. Example md_login_request

{
    "request_data": "ValueToBeReturnedInResponse",
    "md_login_request":
    {
        "login_id": "webserver.company",
        "password": "password",
        "client_application": "WEB",
        "client_application_version": "1.0",
        "country_code": "no",
        "language_code": "en"
    }
}
			

4.2 md_login_response

Response message for md_login_request.

Table 4.2. md_login_response parameters

Key nameValue typeDescription
versionstringAPI version
buildstringBuild version of server component
remote_addressstringAddress of the connecting client
session_tokenstringSession token to be used for every other request message in the future for this logged in session
session_timeoutintegerNumber of milliseconds of inactivity after which a session expires
featuresenum feature[]List of special features the user has access to
[full_name]stringFull name of user
[logical_session_token]stringToken that should be passed unmodified to tr_login_request

Example 4.2. Example md_login_response

{
    "request_data": "ValueToBeReturnedInResponse",
    "error_code": 0,
    "session_token": "9b6aa578-2320-48f2-903a-359e380369c0",
    "md_login_response": {
        "version": "1.3.1",
        "build": "mobile_and_web_server 0.3.0 PRIVATE BUILD",
        "remote_address": "1.2.3.4",
        "session_timeout": 900000,
        "session_token": "9b6aa578-2320-48f2-903a-359e380369c0",
        "features": ["INFINANCIALS", "TWEETWIRES"],
        "logical_session_token": "9b6bc578-1234-48f2-903a-359e365769c2"
    }
}
			

4.3 md_logout_request

Logs the user out.

Note

The request does not contain any return parameters apart from the request header fields.

Example 4.3. Example md_logout_request

{
    "session_token" : "7e28ef2e-bc05-4e3f-b411-165b0bb928e9",
    "md_logout_request" : {}
}
			

4.4 md_logout_response

Response message for md_logout_request.

Note

The response does not contain any return parameters apart from the response header fields.

Example 4.4. Example md_logout_response

{
    "error_code": 0,
    "session_token": "7e28ef2e-bc05-4e3f-b411-165b0bb928e9",
    "md_logout_response": {}
}
			

4.5 md_keep_alive_request

Prevents the market data session from expiring.

Note

The request does not contain any return parameters apart from the request header fields.

Example 4.5. Example md_keep_alive_request

{
    "session_token" : "7e28ef2e-bc05-4e3f-b411-165b0bb928e9",
    "md_keep_alive_request" : {}
}
			

4.6 md_keep_alive_response

Response message for md_logout_request.

Note

The response does not contain any return parameters apart from the response header fields.

Example 4.6. Example md_keep_alive_response

{
    "error_code": 0,
    "session_token": "7e28ef2e-bc05-4e3f-b411-165b0bb928e9",
    "md_keep_alive_response": {}
}
			

4.7 md_get_list_names_request

Retrieves a list of the user defined lists associated with the user.

Table 4.3. md_get_user_list_request parameters

Key nameValue typeDescription
[ext_user_id]stringThe user ID this request is sent on behalf of
[ext_group_id]stringThe group that the ext_user_id is part of

Note

The request does not contain any return parameters apart from the request header fields.

Example 4.7. Example md_get_list_names_request

{
    "session_token" : "33b643a6-0f6f-40ce-a823-4feeccb54df0",
    "md_get_list_names_request" : {}
}
			

4.8 md_get_list_names_response

Response message for md_get_list_names_request.

Table 4.4. md_get_list_names_response parameters

Key nameValue typeDescription
listsstring[]Array of list names

Example 4.8. Example md_get_list_names_response

{
    "error_code" : 0,
    "session_token" : "33b643a6-0f6f-40ce-a823-4feeccb54df0",
    "md_get_default_list_response" : 
    {
        "lists" : ["my favourites", "currencies"]
    }
}
			

4.9 md_get_user_list_request

Retrieves a list of instruments.

Table 4.5. md_get_user_list_request parameters

Key nameValue typeDescription
liststringName of the list to download
[ext_user_id]stringThe user ID this request is sent on behalf of
[ext_group_id]stringThe group that the ext_user_id is part of
[get_xml]booleanGet XML of underlying list

Example 4.9. Example md_get_user_list_request

{
    "request_data": "semla",
    "session_token": "5fcce5df-a988-4ed9-b5f2-033f17bf5e28",
    "md_get_user_list_request": {
        "list": "Default"
    }
}
			

4.10 md_get_user_list_response

Response message for md_get_user_list_request.

Table 4.6. md_get_user_list_response parameters

Key nameValue typeDescription
list_descriptionstringDescription of the list
itemsclass instrument[]Array of instrument identifiers
read_onlybooleanList is read only
currencystringTarget currency (for portfolios)
is_portfoliobooleanAlways "true" for portfolios
portfolio_idstringOptional arbitrary identifier of the portfolio
xmlstringReturned if get_xml is set in request

Example 4.10. Example md_get_user_list_response

{
    "request_data": "semla",
    "error_code": 0,
    "session_token": "5fcce5df-a988-4ed9-b5f2-033f17bf5e28",
    "md_get_user_list_response": {
        "items": [
            {
                "feed": 18177,
                "ticker": "OBX",
                "instrument_type": "INDEX"
            },
            {
                "feed": 12,
                "ticker": "EURUSD",
                "instrument_type": "FOREX"
            }
        ]
    }
}
			

Example 4.11. Example md_get_user_list_response (portfolio)

{
    "request_data": "semla",
    "error_code": 0,
    "session_token": "5fcce5df-a988-4ed9-b5f2-033f17bf5e28",
    "md_get_user_list_response": {
        "items": [
            {
                "feed": 18177,
                "ticker": "OBX",
                "instrument_type": "INDEX"
            },
            {
                "feed": 12,
                "ticker": "EURUSD",
                "instrument_type": "FOREX"
            }
        ],
        "is_portfolio": true,
        "currency": "SEK",
        "portfolio_id": "12345ABCDS"
    }
}
			

4.11 md_get_chain_request

Retrieves a chain (list of instruments) based on a name/feed pair.

Note

Some chains have multiple versions that are provider specific. If the provider field is not set, the standard version will be selected. If the provider field is set, the chain with the specified provider ID will be chosen. If the chain exists, but not with the specified provider version, the general version will be used. The optional fields provider and home_provider are mutually exclusive.

Table 4.7. md_get_chain_request parameters

Key nameValue typeDescription
chainstringName of the chain to download
feedintegerFeed of the chain to download
[provider]integerIf a provider specific chain is available, it will be favoured over a general chain
[home_provider]booleanIf true, equivalent to setting the provider field to the ID of the user's provider

Example 4.12. Example md_get_chain_request

{
    "session_token": "5fcce5df-a988-4ed9-b5f2-033f17bf5e28",
    "md_get_chain_request": {
        "chain": "MWS_Default",
        "feed": 996
    }
}
			

4.12 md_get_chain_response

Response message for md_get_chain_request.

Table 4.8. md_get_chain_response parameters

Key nameValue typeDescription
chain_descriptionstringDescription of the chain
itemsclass instrument[]Array of instrument identifiers

Example 4.13. Example md_get_chain_response

{
    "error_code": 0,
    "session_token": "5fcce5df-a988-4ed9-b5f2-033f17bf5e28",
    "md_get_chain_response": {
        "chain_description": "Default mobile list",
        "items": [
            {
                "feed": 20,
                "ticker": "DJI",
                "instrument_type": "INDEX"
            },
            {
                "feed": 100,
                "ticker": "OMXH25",
                "instrument_type": "INDEX"
            }
        ]
    }
}
			

4.13 md_get_chains_request

Retrieves a list of chains available for a feed.

Note

Some chains have multiple versions that are provider specific. If the provider field is not set, the standard version will be selected. If the provider field is set, the chain with the specified provider ID will be chosen. If the chain exists, but not with the specified provider version, the general version will be used. The optional fields provider and home_provider are mutually exclusive.

Table 4.9. md_get_chain_request parameters

Key nameValue typeDescription
feedintegerFeed to fetch chains for
[types]enum chain_typeLimit the chains returned to a certain type
[provider]integerIf a provider specific chain is available, it will be favoured over a general chain
[home_provider]booleanIf true, equivalent to setting the provider field to the ID of the user's provider
[tree]booleanIf true, return response in tree form

Example 4.14. Example md_get_chains_request

{
    "session_token": "5fcce5df-a988-4ed9-b5f2-033f17bf5e28",
    "md_get_chains_request": {
        "feed": 18177
    }
}
			

4.14 md_get_chains_response

Response message for md_get_chains_request. If tree is set in the request, the chain_tree is returned, otherwise the chains structure is returned.

Table 4.10. md_get_chains_response parameters

Key nameValue typeDescription
chain_descriptionstringDescription of the chain
chainsclass chain[]Array of instrument identifiers
chain_treeclass chain_tree[]Chain tree structure

Example 4.15. Example md_get_chains_response

 {
    "error_code": 0,
    "session_token": "db18a449-01db-4804-8362-2fb4e4bb1c19",
    "md_get_chains_response": { 
        "chains": [
            {
                "feed": 18177,
                "name": "STANDARD",
                "description": "OB Standard"
            },
            {
                "feed": 18177,
                "name": "OBX-IDX",
                "description": "OBX Constituents"
            }
        ]
    }
}
			

4.15 md_save_user_list_request

Saves a list of instruments or portfolio positions, as a list of instruments/positions or as an XML document. Note that if updating an existing list using an array of instruments, the operation will fail if the existing list has metadata that cannot be expressed solely using instruments (e.g. headline separators).

Note

Example 4.16. Example XML

<?xml version="1.0" encoding="UTF-8"?>
<Symbollist>
  <Symbol FeedNu="17921" SymbolTicker="AAK" Volume="800" AveragePrice="510"/>
  <Symbol FeedNu="17921" SymbolTicker="ABB" Volume="900" AveragePrice="193"/>
  <Symbol FeedNu="18177" SymbolTicker="FUNCOM" Volume="600" AveragePrice="1.9"/>
  <Headline Row="2" Caption="My separator"/>
</Symbollist>

Table 4.11. md_save_user_list_request parameters

Key nameValue typeDescription
liststringName of the list to create or update
currencystringTarget currency (mandatory for portfolios)
is_portfoliobooleanAlways "true" for portfolios
portfolio_idstringOptional arbitrary identifier of the portfolio
[items]class instrument[]Array of instrument identifiers
[positions]class position[]Array of portfolio positions
[cash]class cash[]Array of portfolio cash positions
[other]class other[]Array of other portfolio positions
[content]stringBase64 encoded XML
[ext_user_id]stringThe user ID this request is sent on behalf of
[ext_group_id]stringThe group that the ext_user_id is part of

Example 4.17. Example md_save_user_list_request using instruments

{
    "session_token" : "33b643a6-0f6f-40ce-a823-4feeccb54df0",
    "md_save_user_list_request" : 
    {
        "list": "my favourites",
        "items" : [
        {
            "feed": 18177,
            "ticker": "ORK"
        },
        {
            "feed": 18177,
            "ticker": "STL"
        }]
    }
}
			

Example 4.18. Example md_save_user_list_request using positions

{
    "session_token": "5fb50e27-8428-49b3-a724-1d31f731f945",
    "md_save_user_list_request": {
        "list": "my portfolio",
        "positions": [
            {
                "instrument": {
                    "ticker": "ERIC B",
                    "isin": "SE0000108656",
                    "currency": "SEK",
                    "market": "XSTO"
                },
                "volume": 100,
                "avg_price": 80.25
            },
            {
                "instrument": {
                    "ticker": "AXFO",
                    "isin": "SE0006993770",
                    "currency": "SEK",
                    "market": "XSTO"
                },
                "volume": 200,
                "avg_price": 40.25
            },
            {
                "instrument": {
                    "ticker": "ROM",
                    "isin": "BMG763301022",
                    "currency": "NOK",
                    "market": "XOSL"
                },
                "volume": 200,
                "avg_price": 40.25
            }
        ]
    }
}
			

Example 4.19. Example md_save_user_list_request (portfolio)

{
    "session_token": "5fb50e27-8428-49b3-a724-1d31f731f945",
    "md_save_user_list_request": {
        "list": "my portfolio",
        
        "is_portfolio": true,
        "currency": "SEK",
        "portfolio_id": "12345ABCDS",        
        
        "positions": [
            {
                "instrument": {
                    "ticker": "ERIC B",
                    "isin": "SE0000108656",
                    "currency": "SEK",
                    "market": "XSTO"
                },
                "volume": 100,
                "avg_price": 80.25
            },
            {
                "instrument": {
                    "ticker": "AXFO",
                    "isin": "SE0006993770",
                    "currency": "SEK",
                    "market": "XSTO"
                },
                "volume": 200,
                "avg_price": 40.25
            },
            {
                "instrument": {
                    "ticker": "ROM",
                    "isin": "BMG763301022",
                    "currency": "NOK",
                    "market": "XOSL"
                },
                "volume": 200,
                "avg_price": 40.25
            }
        ]
    }
}
			

Example 4.20. Example md_save_user_list_request with cash and other positions (portfolio)

{
    "session_token": "5fb50e27-8428-49b3-a724-1d31f731f945",
    "md_save_user_list_request": {
        "list": "my portfolio",
        "currency": "SEK",
        "is_portfolio": true,
        "cash":[  
            {  
                "currency": "USD",
                "value": 20000.00
            }
        ],
        "other": [
            {
                "type": "cool equities",
                "description": "buffalo",
                "currency": "EUR",
                "value": "3030.10"
            },
            {
                "type": "cool equities",
                "description": "buffalo2",
                "currency": "EUR",
                "value": "4040.10"
            }
        ]
    }
}
			

4.16 md_save_user_list_response

Response message for md_save_user_list_request.

Note

The response does not contain any return parameters apart from the response header fields.

Example 4.21. Example md_save_user_list_response

{
    "error_code" : 0,
    "session_token" : "33b643a6-0f6f-40ce-a823-4feeccb54df0",
    "md_save_user_list_response" : {}
}
			

4.17 md_delete_user_list_request

Deletes a list of instruments.

Table 4.12. md_delete_user_list_request parameters

Key nameValue typeDescription
liststringName of the list to delete
[ext_user_id]stringThe user ID this request is sent on behalf of
[ext_group_id]stringThe group that the ext_user_id is part of

Example 4.22. Example md_delete_user_list_request

{
    "error_code" : 0,
    "session_token" : "33b643a6-0f6f-40ce-a823-4feeccb54df0",
    "md_delete_user_list_request" : 
    {
        "list": "my favourites",
    }
}
			

4.18 md_delete_user_list_response

Response message for md_delete_user_list_request.

Note

The response does not contain any return parameters apart from the response header fields.

Example 4.23. Example md_delete_user_list_response

{
    "error_code" : 0,
    "session_token" : "33b643a6-0f6f-40ce-a823-4feeccb54df0",
    "md_delete_user_list_response" : {}
}
			

4.19 md_get_trades_by_date_request

Retrieves a time series of intraday trades for a particular instrument.

Note

Both start_date and end_date are optional from a validation standpoint, but at least one of them has to be specified.

Table 4.13. md_get_trades_by_date_request parameters

Key nameValue typeDescription
instrumentclass instrument[] 
[start_date]DATE formatted stringStart of time series - if empty the earliest available date will be used
[end_date]DATE formatted stringEnd of time series - if empty the latest available date will be used
resolutionenum resolutionSpecifies the unit of time for the step_size parameter
step_sizeintegerSpacing of the entries returned, where the unit of time is decided by the resolution parameter
fieldsclass intraday_fields[]Fields to be returned - if empty, all fields will be returned

Example 4.24. Example md_get_trades_by_date_request

{
    "session_token": "590efb53-be2e-4430-a2c1-f402059bb2da",
    "md_get_trades_by_date_request": {
        "instrument": { "feed": 18177, "ticker": "ORK" },
        "resolution": "MINUTES",
        "step_size": 15,
        "fields": ["LAST", "VOLUME"],
        "start_date": "2011-11-20",
        "end_date": "2011-11-20",
    }
}
			

4.20 md_get_trades_by_date_response

Response message for md_get_trades_by_date_request.

Table 4.14. md_get_trades_by_date_response parameters

Key nameValue typeDescription
tradesclass intraday_trade[]Array of trades
first_trade_of_day_offsetsinteger[]Index of the items in the trades structure representing the first trade of the day

Example 4.25. Example md_get_trades_by_date_response

{
    "request_data": "gnagare",
    "error_code": 0,
    "session_token": "f1990375-5e9a-48e0-a6b9-4da17d296839",
    "md_get_trades_by_days_response": {
        "trades": [
            {
                "time": "2012-10-02T13:00:00Z",
                "bid": 251.6200,
                "ask": 251.7400,
                "last": 251.7201,
                "open": 253.1500,
                "high": 253.1500,
                "low": 250.3300,
                "volume": 255278.0000,
                "turnover": 64171125.6615
            },
            {
                "time": "2012-10-02T14:00:00Z",
                "bid": 250.9300,
                "ask": 250.9900,
                "last": 250.8700,
                "open": 251.9000,
                "high": 252.0000,
                "low": 250.3500,
                "volume": 308100.0000,
                "turnover": 77407585.4278
            }
        ],
        "first_trade_of_day_offsets": [0]
    }
}
			

4.21 md_get_trades_by_days_request

Retrieves a time series of intraday trades for a particular instrument.

Note

Both start_date and end_date are optional from a validation standpoint, but at least one of them has to be specified.

Table 4.15. md_get_trades_by_days_request parameters

Key nameValue typeDescription
instrumentclass instrument[] 
days_backintegerNumber of trading days back the time series should start
num_of_daysintegerNumber of days returned
resolutionenum resolutionSpecifies the unit of time for the step_size parameter
step_sizeintegerSpacing of the entries returned, where the unit of time is decided by the resolution parameter
fieldsclass intraday_fields[]Fields to be returned - if empty, all fields will be returned

Example 4.26. Example md_get_trades_by_days_request

{
    "session_token": "87398a2e-4423-4f45-a930-1c1adc90aff2",
    "md_get_trades_by_days_request": {
        "instrument": { "feed": 18177, "ticker": "ORK" },
        "resolution": "MINUTES",
        "step_size": 60,
        "days_back": 3,
        "fields": ["LAST", "VOLUME", "OPEN"]
    }
}
			

4.22 md_get_trades_by_days_response

Response message for md_get_trades_by_days_request.

Table 4.16. md_get_trades_by_days_response parameters

Key nameValue typeDescription
tradesclass intraday_trade[]Array of trades
first_trade_of_day_offsetsinteger[]Index of the items in the trades structure representing the first trade of the day

Example 4.27. Example md_get_trades_by_days_response

{
    "error_code": 0,
    "session_token": "87398a2e-4423-4f45-a930-1c1adc90aff2",
    "md_get_trades_by_days_response": {
        "trades": [
            {
                "time": "2012-01-17T09:00:00Z",
                "last": 44.950,
                "open": 44.520,
                "volume": 256161.000
            },
            {
                "time": "2012-01-17T10:00:00Z",
                "last": 44.950,
                "open": 44.950,
                "volume": 340715.000
            },
            {
                "time": "2012-01-17T11:00:00Z",
                "last": 44.880,
                "open": 44.950,
                "volume": 210963.000
            },
            {
                "time": "2012-01-17T12:00:00Z",
                "last": 44.880,
                "open": 44.900,
                "volume": 86288.000
            },
            {
                "time": "2012-01-17T13:00:00Z",
                "last": 44.750,
                "open": 44.890,
                "volume": 112357.000
            },
            {
                "time": "2012-01-17T14:00:00Z",
                "last": 44.840,
                "open": 44.750,
                "volume": 109378.000
            },
            {
                "time": "2012-01-17T15:00:00Z",
                "last": 44.880,
                "open": 44.820,
                "volume": 271367.000
            },
            {
                "time": "2012-01-17T16:00:00Z",
                "last": 44.980,
                "open": 44.890,
                "volume": 263793.000
            }
        ],
        "first_trade_of_day_offsets": [0]
    }
}
			

4.23 md_get_historical_trades_request

Retrieves a time series of historical trades on a day by day level.

Table 4.17. md_get_historical_trades_request parameters

Key nameValue typeDescription
instrumentclass instrument[] 
[adjust_split]booleanPrices adjusted for splits by server - defaults to TRUE
[adjust_div]booleanPrices adjusted for dividends by server - defaults to FALSE
[start_date]DATE formatted stringStart of time series - if empty the earliest available date will be used
[end_date]DATE formatted stringEnd of time series - if empty the latest available date will be used
fieldsenum historical_fields[]Fields to be returned - if empty, all fields will be returned

Example 4.28. Example md_get_historical_trades_request

{
    "session_token": "733cd539-bd2e-4be8-bd68-f01274ff7706",
    "md_get_historical_trades_request": {
        "instrument": { "feed": 18177, "ticker": "AKBM" },
        "fields": ["LAST", "VOLUME"],
        "start_date": "2011-01-05",
        "end_date": "2011-01-15"
    }
}
			

4.24 md_get_historical_trades_response

Response message for md_get_historical_trades_request.

Table 4.18. md_get_historical_trades_response parameters

Key nameValue typeDescription
tradesclass historical_trade[]Array of historical trades

Example 4.29. Example md_get_historical_trades_response

{
    "error_code": 0,
    "session_token": "733cd539-bd2e-4be8-bd68-f01274ff7706",
    "md_get_historical_trades_response": {
        "trades": [
        {
            "date": "2011-01-05",
            "last": 1.56,
            "volume": 197040.00
        },
        {
            "date": "2011-01-06",
            "last": 1.54,
            "volume": 553018.00
        },
        {
            "date": "2011-01-07",
            "last": 1.54,
            "volume": 425226.00
        },
        {
            "date": "2011-01-10",
            "last": 1.50,
            "volume": 159565.00
        },
        {
            "date": "2011-01-11",
            "last": 1.53,
            "volume": 67322.00
        },
        {
            "date": "2011-01-12",
            "last": 1.57,
            "volume": 184235.00
        },
        {
            "date": "2011-01-13",
            "last": 1.52,
            "volume": 217165.00
        }]
    }
}
			

4.25 md_get_snapshot_request

Retrieves a snapshot of the current market data for a particular instrument.

Table 4.19. md_get_snapshot_request parameters

Key nameValue typeDescription
instrumentsclass instrument[] 
fieldsenum snapshot_fields[]Fields to be returned - if empty, all fields will be returned
[orderbook_levels]integerHow many levels to construct if the orderbook is derived from a list of individual orders

Example 4.30. Example md_get_snapshot_request

{
    "session_token": "3932ffad-7de7-4e5e-bf78-82fcc46c363c",
    "md_get_snapshot_request": {
        "fields": ["BID", "ASK"],
        "instruments": [
            {
                "feed": 18177,
                "ticker": "ORK"
            },
            {
                "feed": 18177,
                "ticker": "STL"
            }]
    }
}
			

4.26 md_get_snapshot_response

Response message for md_get_snapshot_request.

Table 4.20. md_get_snapshot_response parameters

Key nameValue typeDescription
instrumentsclass instrument_info[]Array of instruments

Example 4.31. Example md_get_snapshot_response

{
    "error_code": 0,
    "session_token": "3932ffad-7de7-4e5e-bf78-82fcc46c363c",
    "md_get_snapshot_response": {
        "instruments": [
        {
            "feed": 18177,
            "ticker": "ORK",
            "bid": 42.82,
            "ask": 42.87
        },
        {
            "feed": 18177,
            "ticker": "STL",
            "bid": 149.40,
            "ask": 149.50
        }]
    }
}
			

4.27 md_subscribe_instrument_request

Use this message to initiate or update a subscription for streaming updates of market data. The request will fail if sent using a non-streaming connection, e.g. HTTP.

The fields describing the instrument itself (e.g. feed and ticker) will be returned automatically, and will at least be the same identifiers used in the initial request.

Subscriptions are incremental and the fields subscribed to are reference counted: if a subscribe request is sent for an instrument that already has a subscription, the old set of fields will be augmented with the new fields. Not specifying any fields increases the reference count of all fields.

The update_data field is overwritten by subsequent subscription requests for the same instrument. An absent upate_data field will clear the existing value.

Note

The streaming updates will be returned asynchronously in the md_instrument_update message.

Table 4.21. md_subscribe_instrument_request parameters

Key nameValue typeDescription
instrumentsclass instrument[] 
[fields]enum snapshot_fields[]Fields to be returned - if empty, all fields will be returned
num_tradesintegerIf subscribing to TRADES, the number of latest trades to return in the key-frame

Example 4.32. Example md_subscribe_instrument_request

{
    "session_token": "99ce6fce-cd09-416b-9def-57e5bc6fc21b",
    "md_subscribe_instrument_request": {
        "update_data": "oslo",
        "fields": ["BID", "ASK", "TIME", "LAST", "CHANGE", "PCT_CHANGE"],
        "instruments": [{ "feed": 18177, "ticker": "STL" }, { "feed": 18177, "ticker": "REC" }]
    }
}
			

4.28 md_subscribe_instrument_response

Response message for md_subscribe_instrument_request.

Note

The response does not contain any return parameters apart from the response header fields.

Example 4.33. Example md_subscribe_instrument_response

{
    "error_code": 0,
    "session_token": "99ce6fce-cd09-416b-9def-57e5bc6fc21b",
    "md_subscribe_instrument_response": {}
}
			

4.29 md_unsubscribe_instrument_request

Terminates a subscription or changes the fields subscribed to.

If no fields are specified, the reference count of all fields subscribed to will be decreased by one. In other words, if two previous md_subscribe_instrument_request has been sent for a particular field, updates for the field will only cease to be published after two messages unsubscribing to the same field has been sent.

Table 4.22. md_unsubscribe_instrument_request parameters

Key nameValue typeDescription
instrumentsclass instrument[] 
[fields]enum snapshot_fields[]Fields to be unsubscribed. If empty, all fields will be unsubscribed.

Example 4.34. Example md_unsubscribe_instrument_request

{
    "session_token": "99ce6fce-cd09-416b-9def-57e5bc6fc21b",
    "md_unsubscribe_instrument_request": {
        "update_data": "oslo",
        "fields": ["BID", "ASK", "TIME", "LAST", "CHANGE", "PCT_CHANGE" ],
        "instruments": [{ "feed": 18177, "ticker": "STL" }, { "feed": 18177, "ticker": "REC" }]
    }
}
			

4.30 md_unsubscribe_instrument_response

Response message for md_unsubscribe_instrument_request.

Note

The response does not contain any return parameters apart from the response header fields.

Example 4.35. Example md_unsubscribe_instrument_response

{
    "error_code": 0,
    "session_token": "99ce6fce-cd09-416b-9def-57e5bc6fc21b",
    "md_unsubscribe_instrument_response": {}
}
			

4.31 md_get_feed_metadata_request

Retrieves metadata concerning a specific exchange.

Table 4.23. md_get_feed_metadata_request parameters

Key nameValue typeDescription
feedintegerFeed code of exchange

Example 4.36. Example md_get_feed_metadata_request

{
    "session_token": "48b6c531-056e-4e16-b633-12e607961bbc",
    "md_get_feed_metadata_request": {
        "feed": 18177
    }
}
			

4.32 md_get_feed_metadata_response

Response message for md_get_feed_metadata_request.

Table 4.24. md_get_feed_metadata_response parameters

Key nameValue typeDescription
feedinteger 
countryinteger 
feed_codestring 
micstring 
descriptionstring 
all_daybooleanTrue if the feed represents an exchange that is open 24hrs
buyer_sellerbooleanTrue if the feed identifies the buyers and sellers of trades, e.g. in md_get_intraday_trades_response. Required for a feed to support broker statistics.
start_timeTIME formatted stringOnly present if all_day is false
end_timeTIME formatted stringOnly present if all_day is false
decimalsinteger 
local_time_offsetUTC_OFFSET formatted string 
min_delay_secsinteger 
max_delay_secsinteger 
full_feedbooleanRequired to be true for md_get_broker_stats_request and md_get_market_activity_request
main_indexstringTicker of main index
main_index_feedintegerOnly returned if different than requested feed
tradesbooleanThe feed supports intraday trades
data_typesenum data_type[] 

Example 4.37. Example md_get_feed_metadata_response

{
    "error_code": 0,
    "session_token": "48b6c531-056e-4e16-b633-12e607961bbc",
    "md_get_feed_metadata_response": {
        "feed": 18177,
        "country": 47,
        "exchange_code": "OSS",
        "mic": "XOSL",
        "description": "Oslo SE, Stocks",
        "start_time": "09:00:00",
        "end_time": "17:30:00",
        "local_time_offset": "-04:00",
        "decimals": 3,
        "min_delay_secs": 0,
        "max_delay_secs": 0
    }
}
			

4.33 md_get_news_items_request

Retrieves news headlines within a time interval.

Table 4.25. md_get_news_items_request parameters

Key nameValue typeDescription
news_feedsinteger[]News feeds of interest
start_timeDATETIME formatted stringEarliest time
end_timeDATETIME formatted stringLatest time
[max_items]integerMaximum number of news items to return
[instrument]class instrumentIf specified, only news related to the instrument are returned
[instruments]class instrument[]If specified, only news related to the instruments are returned
[offset]integerPositive integer describing the offset to start at
[types]enum news_type[]If specified, only news of the specified types are returned
[regions]integer[]If specified, only news from the specified regions are returned

Example 4.38. Example md_get_news_items_request

{
    "session_token": "5b34715e-4169-467b-b493-8e0f935e2c64",
    "md_get_news_items_request": {
        "max_items": 20,
        "start_time": "2012-04-09T12:00:00Z",
        "end_time": "2012-04-11T23:59:00Z",
        "news_feeds": [17929, 1062, 18200, 17941 ]
    }
}
			

4.34 md_get_news_items_response

Response message for md_get_news_items_request.

Table 4.26. md_get_news_items_response parameters

Key nameValue typeDescription
itemsclass news_item[] 

Example 4.39. Example md_get_news_items_response

{
    "error_code": 0,
    "session_token": "5b34715e-4169-467b-b493-8e0f935e2c64",
    "md_get_news_items_response": {
        "items": [
            {
                "instrument": {
                    "feed": 2130,
                    "ticker": "NTL"
                },
                "headline": "AKBM : Change in announcement date for the first quarter 2012 financial results",
                "time": "2012-04-11T15:43:00Z",
                "news_id": 1601623,
                "news_feed": 18200,
                "type": "REGULAR"
            }
        ]
    }
}
			

4.35 md_get_news_sources_request

Retrieve news sources (feeds) available to the client.

Note

The request does not contain any return parameters apart from the request header fields.

Example 4.40. Example md_get_news_sources_request

{
    "session_token": "5b34715e-4169-467b-b493-8e0f935e2c64",
    "md_get_news_sources_request": {}
}
			

4.36 md_get_news_sources_response

Response message for md_get_news_sources_request.

Table 4.27. md_get_news_sources_response parameters

Key nameValue typeDescription
sourcesclass news_source[] 
regionsclass news_region[] 

Example 4.41. Example md_get_news_sources_response

{
    "error_code": 0,
    "session_token": "c1417a8b-3b57-4298-a022-00fbdf061c8f",
    "md_get_news_sources_response": {
        "sources": [
            {
                "name": "ComputerWorld",
                "feed": 18204,
                "region": 47
            },
            {
                "name": "TR ONE, Norway",
                "feed": 18200,
                "region": 47
            },
            {
                "name": "Oslo SE, News",
                "feed": 18182,
                "region": 47
            },
            {
                "name": "TDN Finans",
                "feed": 18181,
                "region": 47
            }
        ],
        "regions": [
        {
            "code": 47,
            "description": "Norway"
        }
        ]
    }
}
			

4.37 md_get_news_body_request

Retrieve news sources (feeds) available to the client.

Table 4.28. md_get_news_body_request parameters

Key nameValue typeDescription
news_feedintegerNews feed
news_idstringID of the news item
dark_themebooleanStyle with dark theme for non-preformatted items

Example 4.42. Example md_get_news_body_request

{
    "session_token": "5b34715e-4169-467b-b493-8e0f935e2c64",
    "md_get_news_body_request": {
        "news_feed": 13,
        "news_id": "2_2_102424"
    }
}
			

4.38 md_get_news_body_response

Response message for md_get_news_body_request.

Table 4.29. md_get_news_body_response parameters

Key nameValue typeDescription
mime_typestringMime type of the news body - default is application/xhtml+xml
bodystringHTML formatted news body in UTF-8 encoding, then BASE64 encoded

Example 4.43. Example md_get_news_body_response

{
    "error_code": 0,
    "session_token": "581fbbe7-c56f-40fd-b876-483919fe07da",
    "md_get_news_body_response": {
        "mime_type": "application/xhtml+xml",
        "body": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgaHRtbCBQVUJMSUMgIi0vL1czQy8vRFREIFhIVE1MIDEuMCBTdHJpY3QvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvVFIveGh0bWwxL0RURC94aHRtbDEtc3RyaWN0LmR0ZCI+PGh0bWwgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiPjxoZWFkPjxtZXRhIGh0dHAtZXF1aXY9IkNvbnRlbnQtVHlwZ
gY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PXV0Zi04Ii8+PHRpdGxlPk5ld3M8L3RpdGxlPjwvaGVhZD48Ym9keT48cD5PcmtsYSBBU0EgaGFyIGRlbiA5LiBtYXJzIDIwMTIga2rDuHB0IDI5NSAwMDAgZWduZSBha3NqZXIgZ2plbm5vbSBtZWdsZXIgdGlsIGdqZW5ub21zbml0dHMga3VycyBrciA0NSw1IHByLiBha3NqZS48L3A+PHA+T3JrbGFzIGJlaG9sZG5pbmcgYXYgZWduZSBha3NqZXIgZXR0ZXIgZGVubmUgd
hbnNha3Nqb25lbiBlciAxNSA0ODEgNzkxIGFrc2plci48L3A+PHA+T3JrbGEgQVNBIE9zbG8sIDEyLiBtYXJzIDIwMTI8L3A+PHA+S29udGFrdCBPcmtsYSBJbnZlc3RvciBSZWxhdGlvbnM6IFJ1bmUgSGVsbGFuZCwgVGVsLjogKzQ3IDIyNTQgNDQxMS8rNDcgOTc3IDEzMjUwPC9wPjxwPkRlbm5lIG9wcGx5c25pbmdlbiBlciBpbmZvcm1hc2pvbnNwbGlrdGlnIGV0dGVyIHZlcmRpcGFwaXJoYW5kZWxsb3ZlbiDCpzUtM
8L3A+PHA+VGhpcyBhbm5vdW5jZW1lbnQgaXMgZGlzdHJpYnV0ZWQgYnkgVGhvbXNvbiBSZXV0ZXJzIG9uIGJlaGFsZiBvZiBUaG9tc29uIFJldXRlcnMgY2xpZW50cy4gVGhlIG93bmVyIG9mIHRoaXMgYW5ub3VuY2VtZW50IHdhcnJhbnRzIHRoYXQ6IChpKSB0aGUgcmVsZWFzZXMgY29udGFpbmVkIGhlcmVpbiBhcmUgcHJvdGVjdGVkIGJ5IGNvcHlyaWdodCBhbmQgb3RoZXIgYXBwbGljYWJsZSBsYXdzOyBhbmQgKGlpK
0aGV5IGFyZSBzb2xlbHkgcmVzcG9uc2libGUgZm9yIHRoZSBjb250ZW50LCBhY2N1cmFjeSBhbmQgb3JpZ2luYWxpdHkgb2YgdGhlIGluZm9ybWF0aW9uIGNvbnRhaW5lZCB0aGVyZWluLiBTb3VyY2U6IE9ya2xhIEFTQSB2aWEgVGhvbXNvbiBSZXV0ZXJzIE9ORTwvcD48cD5bSFVHIzE1OTMwNDldPC9wPjwvYm9keT48L2h0bWw+"
    }
}
			

4.39 md_subscribe_news_request

Use this message to initiate or overwrite a subscription for streaming news updates. The request will fail if sent using a non-streaming connection, e.g. HTTP.

If instruments are specified, all the feeds the user has access to will be used, and news_feeds is ignored.

Note

The streaming updates will be returned asynchronously in the md_news_update message.

Table 4.30. md_subscribe_news_request parameters

Key nameValue typeDescription
update_datastringUnique identifier of subscription
[instruments]class instrument[]Excludes all news items not tagged with one of the specificed instruments
[news_feeds]integer[]Specified the feeds to be subscribed to
[types]class news_type[]Excludes all news items not tagged with one of the specificed instruments
[regions]integer[]Exclude feeds from all regions not specified

Example 4.44. Example md_subscribe_news_request

{
    "session_token": "99ce6fce-cd09-416b-9def-57e5bc6fc21b",
    "md_subscribe_news_request": {
        "update_data": "STL_NEWS",
        "instruments": [{ "feed": 18177, "ticker": "STL" }]
    }
}
			

4.40 md_subscribe_news_response

Response message for md_subscribe_news_request.

Note

The response does not contain any return parameters apart from the response header fields.

Example 4.45. Example md_subscribe_news_response

{
    "error_code": 0,
    "session_token": "99ce6fce-cd09-416b-9def-57e5bc6fc21b",
    "md_subscribe_news_response": {}
}
			

4.41 md_unsubscribe_news_request

Terminates a subscription.

Table 4.31. md_unsubscribe_news_request parameters

Key nameValue typeDescription
update_datastringTerminates the subscription with the associated update_data

Example 4.46. Example md_unsubscribe_news_request

{
    "session_token": "99ce6fce-cd09-416b-9def-57e5bc6fc21b",
    "md_unsubscribe_news_request": {
        "update_data": "NewsFilter1"
    }
}
			

4.42 md_unsubscribe_news_response

Response message for md_unsubscribe_instrument_request.

Note

The response does not contain any return parameters apart from the response header fields.

Example 4.47. Example md_unsubscribe_news_response

{
    "error_code": 0,
    "session_token": "99ce6fce-cd09-416b-9def-57e5bc6fc21b",
    "md_unsubscribe_news_response": {}
}
			

4.43 md_subscribe_alerts_request

Use this message to initiate a subscription for streaming alert updates. The request will fail if sent using a non-streaming connection, e.g. HTTP.

Note

The streaming updates will be returned asynchronously in the md_alert_update message.

Table 4.32. md_subscribe_alerts_request parameters

Key nameValue typeDescription
update_datastringUnique identifier of subscription

Example 4.48. Example md_subscribe_alerts_request

{
    "session_token": "99ce6fce-cd09-416b-9def-57e5bc6fc21b",
    "md_subscribe_alerts_request": {
        "update_data": "ALERTS"
    }
}
			

4.44 md_subscribe_alerts_response

Response message for md_subscribe_alerts_request.

Note

The response does not contain any return parameters apart from the response header fields.

Example 4.49. Example md_subscribe_alerts_response

{
    "error_code": 0,
    "session_token": "99ce6fce-cd09-416b-9def-57e5bc6fc21b",
    "md_subscribe_alerts_response": {}
}
			

4.45 md_unsubscribe_alerts_request

Terminates the alerts subscription.

Table 4.33. md_unsubscribe_alerts_request parameters

Key nameValue typeDescription

Example 4.50. Example md_unsubscribe_alerts_request

{
    "session_token": "99ce6fce-cd09-416b-9def-57e5bc6fc21b",
    "md_unsubscribe_alerts_request": {
    }
}
			

4.46 md_unsubscribe_alerts_response

Response message for md_unsubscribe_alerts_request.

Note

The response does not contain any return parameters apart from the response header fields.

Example 4.51. Example md_unsubscribe_alerts_response

{
    "error_code": 0,
    "session_token": "99ce6fce-cd09-416b-9def-57e5bc6fc21b",
    "md_unsubscribe_alerts_response": {}
}
			

4.47 md_get_owc_request

Retrieves a backlog of One Way Communication bulletins.

Table 4.34. md_get_owc_request parameters

Key nameValue typeDescription

Example 4.52. Example md_get_owc_request

{
    "session_token": "3932ffad-7de7-4e5e-bf78-82fcc46c363c",
    "md_get_owc_request": {
    }
}
			

4.48 md_get_owc_response

Response message for md_get_owc_request.

Table 4.35. md_get_owc_response parameters

Key nameValue typeDescription
instrumentsclass owc_message[]Array of instruments

Example 4.53. Example md_get_owc_response

{
    "error_code": 0,
    "session_token": "0aef3f42-2bb5-4911-a3dd-49c8b428e6cf",
    "md_get_owc_response": { 
        "messages": [
            {
                "id": 555,
                "level": 0,
                "format": 0,
                "headline": "STL suspended",
                "message": "STL suspended. More info to come.",
                "read": false,
                "expiry_date": "2016-05-10T07:47:53Z"
            },
            {
                "id": 2360,
                "level": 0,
                "format": 0,
                "headline": "ORK suspended",
                "message": "ORK suspended. More info to come.",
                "read": false,
                "expiry_date": "2016-05-27T10:33:48Z"
            }
        ]
    }
}
			

4.49 md_subscribe_owc_request

Use this message to initiate a subscription for streaming bulletin updates. The request will fail if sent using a non-streaming connection, e.g. HTTP.

Note

The streaming updates will be returned asynchronously in the md_owc_update message.

Table 4.36. md_subscribe_owc_request parameters

Key nameValue typeDescription
update_datastringUnique identifier of subscription

Example 4.54. Example md_subscribe_owc_request

{
    "session_token": "99ce6fce-cd09-416b-9def-57e5bc6fc21b",
    "md_subscribe_owc_request": {
        "update_data": "OWC"
    }
}
			

4.50 md_subscribe_owc_response

Response message for md_subscribe_owc_request.

Note

The response does not contain any return parameters apart from the response header fields.

Example 4.55. Example md_subscribe_owc_response

{
    "error_code": 0,
    "session_token": "99ce6fce-cd09-416b-9def-57e5bc6fc21b",
    "md_subscribe_owc_response": {}
}
			

4.51 md_unsubscribe_owc_request

Terminates a subscription.

Table 4.37. md_unsubscribe_owc_request parameters

Key nameValue typeDescription

Example 4.56. Example md_unsubscribe_owc_request

{
    "session_token": "99ce6fce-cd09-416b-9def-57e5bc6fc21b",
    "md_unsubscribe_owc_request": {
    }
}
			

4.52 md_unsubscribe_owc_response

Response message for md_unsubscribe_owc_request.

Note

The response does not contain any return parameters apart from the response header fields.

Example 4.57. Example md_unsubscribe_owc_response

{
    "error_code": 0,
    "session_token": "99ce6fce-cd09-416b-9def-57e5bc6fc21b",
    "md_unsubscribe_owc_response": {}
}
			

4.53 md_instrument_search_request

Searches for instruments and other types of assets.

Table 4.38. md_instrument_search_request parameters

Key nameValue typeDescription
querystring 
instrument_typesenum instrument_type[]Instrument types to search for - if left empty, all types will be included
item_typesenum item_type[]Item types to search for - defaults to INSTRUMENT if left empty
[max_results]integerMaximum number of results returned
[feeds]integer[]Limit search to specified feeds
[ticker]booleanOnly search in ticker field
[feed_chain_filters]class feed_chains[]List of chains to which search should be restricted
[feed_only_filters]integer[]full feeds to include in search in addition to chain filter

Example 4.58. Example md_instrument_search_request

{
        "session_token": "bbec30fa-670e-4ba1-b91b-6a2f109e0e09",
        "md_instrument_search_request": {
                "query": "mobile",
                "item_types": ["CHAIN"],
                "max_results": 10
        }
}
			

4.54 md_instrument_search_response

Response message for md_instrument_search_request.

Table 4.39. md_instrument_search_response parameters

Key nameValue typeDescription
itemsclass search_item[]List of search items matching the query, sorted by rank

Example 4.59. Example md_instrument_search_response

{
    "error_code": 0,
    "session_token": "bbec30fa-670e-4ba1-b91b-6a2f109e0e09",
    "md_instrument_search_response": {
        "items": [
            {
                "type": "CHAIN",
                "chain": {
                    "feed": 2146,
                    "name": "Commodities List",
                    "description": "Commodities List Infront Mobile"
                }
            }
        ]
    }
}
			

4.55 md_get_intraday_trades_request

Retrieves the trades of the current day. If num_trades is set, it specifies how many trades to be returned, starting at the latest trade. highest_seq_id and offset can be used to achieve paging of trades: set the highest_seq_id to be the higest sequence ID of the trade currently available to the client, and offset will then be relative to the highest sequence ID instead of the possibly new latest trade.

Table 4.40. md_get_intraday_trades_request parameters

Key nameValue typeDescription
instrumentclass instrument[] 
sort_byenum intraday_sortingHow to sort the result
num_tradesintegerNumber of trades returned
[offset]integerOffset from highest_seq_id to start returning trades from
[highest_seq_id]integerHighest sequence ID of the trade returned

Example 4.60. Example md_get_intraday_trades_request

{
    "session_token": "3cb75648-5d89-4706-9f2d-e1bc23f07bd9",
    "md_get_intraday_trades_request": {
        "instrument": { "feed": 18177, "ticker": "ORK" },
        "num_trades": 10,
        "offset": 0,
        "sort_by": "VOLUME_ASC",
        "highest_seq_id": 400
    }
}
			

4.56 md_get_intraday_trades_response

Response message for md_get_intraday_trades_request.

Table 4.41. md_get_intraday_trades_response parameters

Key nameValue typeDescription
tradesclass intraday_trade[]list of intraday trades

Example 4.61. Example md_get_intraday_trades_response

{
    "error_code": 0,
    "session_token": "3cb75648-5d89-4706-9f2d-e1bc23f07bd9",
    "md_get_intraday_trades_response": {
        "trades": [
            {
                "time": "2012-10-04T07:34:10Z",
                "last": 44.5800,
                "volume": 1.0000,
                "buyer": "SB1M",
                "seller": "NIP",
                "seq_id": 257
            },
            {
                "time": "2012-10-04T07:00:14Z",
                "last": 44.5000,
                "volume": 1.0000,
                "buyer": "UBS",
                "seller": "UBS",
                "seq_id": 2
            },
            {
                "time": "2012-10-04T07:02:10Z",
                "last": 44.4200,
                "volume": 1.0000,
                "buyer": "MLI",
                "seller": "ESO",
                "seq_id": 30
            },
            {
                "time": "2012-10-04T07:03:21Z",
                "last": 44.4100,
                "volume": 1.0000,
                "buyer": "CSB",
                "seller": "CSB",
                "seq_id": 79
            },
            {
                "time": "2012-10-04T07:03:04Z",
                "last": 44.3900,
                "volume": 1.0000,
                "buyer": "CSB",
                "seller": "CSB",
                "seq_id": 59
            },
            {
                "time": "2012-10-04T07:00:14Z",
                "last": 44.5000,
                "volume": 2.0000,
                "buyer": "CSB",
                "seller": "CSB",
                "seq_id": 3
            },
            {
                "time": "2012-10-04T07:02:12Z",
                "last": 44.4200,
                "volume": 2.0000,
                "buyer": "CSB",
                "seller": "SB1M",
                "seq_id": 37
            },
            {
                "time": "2012-10-04T07:03:04Z",
                "last": 44.3900,
                "volume": 3.0000,
                "buyer": "CSB",
                "seller": "CSB",
                "seq_id": 61
            },
            {
                "time": "2012-10-04T07:03:18Z",
                "last": 44.4100,
                "volume": 5.0000,
                "buyer": "CSB",
                "seller": "CSB",
                "seq_id": 76
            },
            {
                "time": "2012-10-04T07:26:02Z",
                "last": 44.6400,
                "volume": 6.0000,
                "buyer": "CSB",
                "seller": "DNM",
                "seq_id": 223
            }
        ]
    }
}
			

4.57 md_get_markets_request

Retrieves a list of markets the user has access to.

Note

The request does not contain any return parameters apart from the request header fields.

Example 4.62. Example md_get_markets_request

{
    "session_token": "3cb75648-5d89-4706-9f2d-e1bc23f07bd9",
    "md_get_markets_request": {
    }
}
			

4.58 md_get_markets_response

Response message for md_get_markets_request.

Table 4.42. md_get_markets_response parameters

Key nameValue typeDescription
marketsclass market[]List of market accesses

Example 4.63. Example md_get_markets_response

{
    "error_code": 0,
    "session_token": "c2a05654-8433-440e-ba09-f10f50469fc2",
    "md_get_markets_response": { 
        "markets": [
            {
                "service": "ASX Sydney, Bonds [ASXB]",
                "provider": "Infront",
                "access": "Delayed 20 minutes",
                "feed": 7230,
                "min_delay_secs": 1200,
                "max_delay_secs": 1200,
                "country": 61,
                "feed_types": ["BONDS"]
            }
		]
	}
}
			

4.59 md_get_contact_info_request

Retrieves a list of markets the user has access to.

Note

The request does not contain any return parameters apart from the request header fields.

Example 4.64. Example md_get_contact_info_request

{
    "session_token": "3cb75648-5d89-4706-9f2d-e1bc23f07bd9",
    "md_get_contact_info_request": {
    }
}
			

4.60 md_get_contact_info_response

Response message for md_get_contact_info_request.

Table 4.43. md_get_contact_info_response parameters

Key nameValue typeDescription
[support_name]stringName of the product given support for
contactsclass contact[]List of contacts

Example 4.65. Example md_get_contact_info_response

{
    "error_code": 0,
    "session_token": "4886d21d-89ec-46f7-8329-30dff69853a5",
    "md_get_contact_info_response": {
        "provider": "Infront",
        "contacts": [
            {
                "value": "support@infront.no",
                "type": "EMAIL"
            }
        ]
    }
}
			

4.61 md_get_infinancials_request

Retrieves a link to an Infinancials widget.

Table 4.44. md_get_infinancials_request parameters

Key nameValue typeDescription
instrumentclass instrument[] 
widgetsenum widget_type[]Type of widgets
widthintegerSize hint
heightintegerSize hint
dark_themebooleanStyle with dark theme

Example 4.66. Example md_get_infinancials_request

{
        "session_token": "eecdf481-e7dd-46fb-a863-51a8e1052789",
        "md_get_infinancials_request": {
                "instrument": { "isin": "NO0010208051"},
                "widgets": ["GPRV"],
                "width": 1024,
                "height": 768
        }
}
			

4.62 md_get_infinancials_response

Response message for md_get_infinancials_request.

Table 4.45. md_get_infinancials_response parameters

Key nameValue typeDescription
urlstringURL to resource

Example 4.67. Example md_get_infinancials_response


{
    "error_code": 0,
    "session_token": "eecdf481-e7dd-46fb-a863-51a8e1052789",
    "md_get_infinancials_response": {
        "url": "http://www.infinancials.com/Eurofin/control/directaccess?isin=NO0010208051&usr=inf_test&tkn=3f038830d4819d152126492ceb65ff2b&nonce=41&product=35"
    }
}

			

4.63 md_get_url_request

Retrieves a link to an Infinancials widget.

Table 4.46. md_get_url_request parameters

Key nameValue typeDescription
resourceenum featureType of resource
[parameters]class resource_parameter[] 

Example 4.68. Example md_get_url_request

{
        "session_token": "93381410-fdba-4625-9f65-530cce5f09c5",
        "md_get_url_request": {
                "resource": "TWEETWIRES"
        }
}
			

4.64 md_get_url_response

Response message for md_get_url_request.

Table 4.47. md_get_url_response parameters

Key nameValue typeDescription
urlstringURL to resource

Example 4.69. Example md_get_url_response

{
    "error_code": 0,
    "session_token": "93381410-fdba-4625-9f65-530cce5f09c5",
    "md_get_url_response": {
        "url": "http://tweetwires.example.com/tweetwire/tweet/thewire"
    }
}
			

4.65 md_get_reference_data_request

Retrieves reference data for all symbols of a feed or for a single instrument

Note

Provide either feed or instrument.

Table 4.48. md_get_reference_data_request parameters

Key nameValue typeDescription
[feed]integerFeed to get reference data for
[instrument]class instrumentInstrument to get reference data for

Example 4.70. Example md_get_reference_data_request

{
        "session_token": "93381410-fdba-4625-9f65-530cce5f09c5",
        "md_get_reference_data_request": {
                "feed": 18177
        }
}
			

4.66 md_get_reference_data_response

Response message for md_get_reference_data_request.

Table 4.49. md_get_reference_data_response parameters

Key nameValue typeDescription
instrumentsclass instrument[] 

Example 4.71. Example md_get_reference_data_response

{
    "error_code": 0,
    "session_token": "11953d54-ed79-4749-b8ad-a7bca527d1ad",
    "md_get_reference_data_response": {
        "instruments": [
            {
                "feed": 18177,
                "ticker": "SER T",
                "isin": "NO0010700289",
                "currency": "NOK",
                "exchange_instrument_id": "1300828",
                "instrument_type": "STOCK",
                "instrument_subtype": "STOCK_RIGHT",
                "full_name": "Serodus TR"
            },
            {
                "feed": 18177,
                "ticker": "NMG",
                "isin": "SE0005569100",
                "currency": "NOK",
                "exchange_instrument_id": "28597",
                "instrument_type": "STOCK",
                "instrument_subtype": "NONE",
                "full_name": "Nickel Mountain Group"
            }
        ]
    }
}	
			

4.67 md_get_ranked_list_request

Retrieves the instruments of an exchange sorted by a specified field in either ascending or descending order. The list may also be paged.

Note

Only supported for feeds with full_feed set to true in md_get_feed_metadata_request.

Table 4.50. md_get_ranked_list_request parameters

Key nameValue typeDescription
feedinteger 
[chain]stringRank the contents of the chain, e.g. index constituents
itemsintegerNumber of items to return
fieldsenum snapshot_fields[]Fields to return
sort_orderenum sort_orderRanking order
instrument_typesenum instrument_type[]If supplied, limits the returned items to the specified types
min_turnoverdoubleIf supplied, sets a floor for the minimum turnover of the items returned
pageintegerUsed together with items to facilitate a paged list

Example 4.72. Example md_get_ranked_list_request

{
        "session_token": "11953d54-ed79-4749-b8ad-a7bca527d1ad",
        "md_get_ranked_list_request": {
                "fields": ["BID", "ASK", "LAST", "CHANGE", "PCT_CHANGE", "ONEXCH_VOLUME", "ONEXCH_TURNOVER", "HIST_PERFORMANCE"],
                "sort_order": "YTD_PCT_CHANGE_DESC",
                "instrument_types": ["STOCK"],
                "feed": 18177,
                "items": 10
        }
}
			

4.68 md_get_ranked_list_response

Response message for md_get_ranked_list_request.

Table 4.51. md_get_ranked_list_response parameters

Key nameValue typeDescription
instrumentsclass instrument_info[] 

Example 4.73. Example md_get_ranked_list_response

{
    "request_data": "Seflapod no 9",
    "error_code": 0,
    "session_token": "11953d54-ed79-4749-b8ad-a7bca527d1ad",
    "md_get_ranked_list_response": {
        "instruments": [
            {
                "instrument": {
                    "feed": 18177,
                    "ticker": "PCIB",
                    "market": "XOSL",
                    "isin": "NO0010405640",
                    "currency": "NOK",
                    "exchange_instrument_id": "71329",
                    "instrument_type": "STOCK",
                    "instrument_subtype": "NONE",
                    "full_name": "PCI Biotech Holding"
                },
                "onexch_volume": 3401.0000,
                "onexch_turnover": 125811.5000,
                "last": 36.4000,
                "change": 0.2000,
                "pct_change": 0.5525,
                "bid": 34.1000,
                "ask": 36.5000,
                "hist_performance": {
                    "ytd_close": 22.0000,
                    "one_w_close": 35.0000,
                    "one_m_close": 22.3000,
                    "three_m_close": 17.5000,
                    "six_m_close": 19.0000,
                    "one_y_close": 30.8000,
                    "two_y_close": 38.0000,
                    "three_y_close": 47.8000,
                    "five_y_close": 6.0717,
                    "ytd_change": 16.0000,
                    "one_w_change": 3.0000,
                    "one_m_change": 15.7000,
                    "three_m_change": 20.5000,
                    "six_m_change": 19.0000,
                    "one_y_change": 7.2000,
                    "two_y_change": 0.0000,
                    "three_y_change": -9.8000,
                    "five_y_change": 31.9283,
                    "ytd_pct_change": 72.7273,
                    "one_w_pct_change": 8.5714,
                    "one_m_pct_change": 70.4036,
                    "three_m_pct_change": 117.1429,
                    "six_m_pct_change": 100.0000,
                    "one_y_pct_change": 23.3766,
                    "two_y_pct_change": 0.0000,
                    "three_y_pct_change": -20.5021,
                    "five_y_pct_change": 525.8523,
                    "ytd_high": 40.0000,
                    "one_w_high": 40.0000,
                    "one_m_high": 40.0000,
                    "three_m_high": 40.0000,
                    "six_m_high": 40.0000,
                    "one_y_high": 40.0000,
                    "two_y_high": 43.0000,
                    "three_y_high": 58.5000,
                    "five_y_high": 64.0000,
                    "ytd_low": 20.0000,
                    "one_w_low": 32.0000,
                    "one_m_low": 22.3000,
                    "three_m_low": 16.0000,
                    "six_m_low": 16.0000,
                    "one_y_low": 16.0000,
                    "two_y_low": 16.0000,
                    "three_y_low": 16.0000,
                    "five_y_low": 0.0000,
                    "last_trade": 38.0000,
                    "rsi13_gain": 14.0871,
                    "rsi13_loss": 4.5035
                }
            }...
			

4.69 md_get_broker_stats_request

Retrieves statistics on broker activity for a particular broker and feed, instrument, or feed. Note that some fields (e.g. avg_bug) are only returned for statistics on a specific instrument, while instrument is only returned for broker specific statistics for particular feed.

Table 4.52. md_get_broker_stats_request parameters

Key nameValue typeDescription
[broker]stringIf set, retrieves statistics for a particular broker
[instrument]class instrument[]If set, retrieves statistics for a particular instrument
[feed]integerIf set, retrieves statistics for the entire feed
periodenum broker_periodThe period of the activities

Example 4.74. Example md_get_broker_stats_request

{
        "session_token": "adf7a731-63e5-4d7f-ad9e-8d46bb1fc519",
        "md_get_broker_stats_request": {
                "period": "YTD",
                "instrument": {
                        "feed": 18177,
                        "ticker": "STL"
                }
        }
}
			

4.70 md_get_broker_stats_response

Response message for md_get_broker_stats_request.

Table 4.53. md_get_broker_stats_response parameters

Key nameValue typeDescription
brokersclass broker[] 

Example 4.75. Example md_get_broker_stats_response

{
    "error_code": 0,
    "session_token": "adf7a731-63e5-4d7f-ad9e-8d46bb1fc519",
    "md_get_broker_stats_response": {
        "brokers": [
            {
                "name": "MSI",
                "buys": 21012,
                "sells": 18038,
                "int_trades": 3252,
                "buy_volume": 16692336.0000,
                "sell_volume": 14013816.0000,
                "buy_value": 2575227904.5000,
                "sell_value": 2156989136.7000,
                "int_value": 215698916.2000,
                "avg_buy": 154.2761,
                "avg_sell": 153.9188,
                "net_buy_value": 418238767.8000
            },
            ...
			

4.71 md_get_tick_sizes_request

Retrieves the tick sizes for different price intervals for a feed.

Table 4.54. md_get_tick_sizes_request parameters

Key nameValue typeDescription
feedinteger 
[id]integerIf supplied, limits the response to this tick size category

Example 4.76. Example md_get_tick_sizes_request

{
        "session_token": "adf7a731-63e5-4d7f-ad9e-8d46bb1fc519",
        "md_get_tick_sizes_request": {
                "feed": 18177,
                "id": 1
        }
}
			

4.72 md_get_tick_sizes_response

Response message for md_get_tick_sizes_request.

Table 4.55. md_get_tick_sizes_response parameters

Key nameValue typeDescription
tick_sizesclass tick_rule[] 

Example 4.77. Example md_get_tick_sizes_response

{
    "error_code": 0,
    "session_token": "d6044cd4-bf69-4aac-b712-e3dfac47291d",
    "md_get_tick_sizes_response": {
        "tick_sizes": [
            {
                "id": 1,
                "upper_bound": 49.9900,
                "size": 0.0100
            },
            {
                "id": 1,
                "upper_bound": 99.9500,
                "size": 0.0500
            },
            {
                "id": 1,
                "upper_bound": 249.9000,
                "size": 0.1000
            },
            {
                "id": 1,
                "upper_bound": 499.7500,
                "size": 0.2500
            },
            {
                "id": 1,
                "upper_bound": 9999999.0000,
                "size": 0.5000
            }
        ]
    }
}
			

4.73 md_get_calendar_request

Retrieves a calendar of events

Table 4.56. md_get_calendar_request parameters

Key nameValue typeDescription
[sources[]]integerIf specified, only events from the specified feeds are returned
[countries[]]stringIf specified, only events from the specified countries are returned (2 letter ISO 3166)
[instrument]class instrumentIf specified, only events for the specified instrument are returned
[start_date]DATE formatted stringIf specified, only events occurring after or on start_date are returned
[end_date]DATE formatted stringIf not specified, only events occurring before or on the current day are returned
[num_items]integerLimits the number of items returned

Example 4.78. Example md_get_calendar_request

{
        "session_token": "8402a0a2-d626-402a-bef9-ef933182be49",
        "md_get_calendar_request": {
                "countries": ["NO", "SE"],
                "start_date": "2014-05-10",
                "end_date": "2014-05-15"
        }
}
			

4.74 md_get_calendar_response

Response message for md_get_calendar_request.

Table 4.57. md_get_calendar_response parameters

Key nameValue typeDescription
eventsclass calendar_event[] 

Example 4.79. Example md_get_calendar_response

{
    "error_code": 0,
    "session_token": "8402a0a2-d626-402a-bef9-ef933182be49",
    "md_get_calendar_response": {
        "events": [
            {
                "source": 960,
                "id": 912692,
                "date": "2014-05-12",
                "description": "Royal Caribbean Cruises Ltd.: Annual General Meeting",
                "instrument": {
                    "feed": 18177,
                    "ticker": "RCL"
                }
            }
        ]			
    }
}
			

4.75 md_get_market_activity_request

Retrieves a succinct summary of a market

Note

Only supported for feeds with full_feed set to true in md_get_feed_metadata_request.

Table 4.58. md_get_market_activity_request parameters

Key nameValue typeDescription
feedintegerFeed code of market
[chain]stringName of chain

Example 4.80. Example md_get_market_activity_request

{
        "session_token": "8402a0a2-d626-402a-bef9-ef933182be49",
        "md_get_market_activity_request": {
                "feed": 18177
        }
}
			

4.76 md_get_market_activity_response

Response message for md_get_market_activity_request.

Table 4.59. md_get_market_activity_response parameters

Key nameValue typeDescription
upinteger 
downinteger 
unchangedinteger 
up_pctinteger 
down_pctinteger 
unchanged_pctinteger 
turnoverfloat 

Example 4.81. Example md_get_market_activity_response

{
    "error_code": 0,
    "md_get_market_activity_response": {
        "up": 46,
        "down": 73,
        "unchanged": 125,
        "up_pct": 19,
        "down_pct": 30,
        "unchanged_pct": 51,
        "turnover": 610926878.6350
    }
}
			

4.77 md_subscribe_market_activity_request

Subscribes for perdiodical getting of a succinct summary of a chain

Note

"chain" field must be present

Table 4.60. md_subscribe_market_activity_request parameters

Key nameValue typeDescription
update_datastringUnique identifier of subscription
feedintegerFeed code of market
chainstringName of chain

Example 4.82. Example md_subscribe_market_activity_request

{
    session_token: "8402a0a2-d626-402a-bef9-ef933182be49",
    request_data: "safsasa",
    md_subscribe_market_activity_request:
    {
        update_data: "hello92",
        feed: 2098,
        chain: "DAX"
    }
}
		

4.78 md_unsubscribe_market_activity_request

Unsubscribes from getting a summary of a chain

Note

"chain" field must be present

Table 4.61. md_unsubscribe_market_activity_request parameters

Key nameValue typeDescription
feedintegerFeed code of market
chainstringName of chain

Example 4.83. Example md_unsubscribe_market_activity_request

{
    session_token: "8402a0a2-d626-402a-bef9-ef933182be49",
    md_unsubscribe_market_activity_request:
    {
        feed: 2098,
        chain: "DAX"
    }
}
		

4.79 md_get_history_request

Retrieves historical End of Day data. Days are counted backwards from start_date. If both start_date and end_date is set, the num_days parameter will be ignored.

Table 4.62. md_get_history_request parameters

Key nameValue typeDescription
instrumentsclass instrument[] 
[start_date]DATE formatted stringIf set, date of newest data point
[end_date]DATE formatted stringIf set, date of oldest data point
num_daysintegerMaximum number of data points to return

Example 4.84. Example md_get_history_request

{
        "session_token": "a47727dc-f0c1-4360-a7d5-c9a3fe754c02",
        "md_get_history_request": {
                "instruments": [
                        { "feed": 18177,
                        "ticker": "NAS" }
                ],
                "num_days": 1
        }
}
			

4.80 md_get_history_response

Response message for md_get_history_request.

Table 4.63. md_get_history_response parameters

Key nameValue typeDescription
tradesclass historical_trade[]Array of instruments

Example 4.85. Example md_get_history_response

{
    "error_code": 0,
    "session_token": "a6f36463-277f-4d2a-ac62-c8f5779e3c6c",
    "md_get_history_response": {
        "trades": [
            {
                "date": "2014-05-21",
                "last": 240.0000,
                "open": 239.9000,
                "high": 241.7000,
                "low": 238.3000,
                "feed": 18177,
                "ticker": "NAS"
            }
        ]
    }
}
			

4.81 md_get_company_request

Retrieves information about a company.

Table 4.64. md_get_company_request parameters

Key nameValue typeDescription
instrumentclass instrument 

Example 4.86. Example md_get_company_request

{
        "session_token": "a47727dc-f0c1-4360-a7d5-c9a3fe754c02",
        "md_get_company_request": {
                "instrument": { "feed": 18177, "ticker": "STL" }
        }
}
			

4.82 md_get_company_response

Response message for md_get_company_request.

Table 4.65. md_get_company_response parameters

Key nameValue typeDescription
descriptionstringDescription
urlsstring[]Company URLs

Example 4.87. Example md_get_company_response

{
    "error_code": 0,
    "session_token": "23905495-34fe-44df-b5ce-cf46f9e08162",
    "md_get_company_response": {
        "description": "Statoil ASA is an integrated oil and gas company. The Company's focus is on exploration, development and production of oil and natural gas from the Norwegian Continental Shelf (NCS). \r\n\r\n",
        "urls": ["http://www.statoil.com", "http://en.wikipedia.org/wiki/Statoil"]
    }
}
			

4.83 md_get_company_history_request

Retrieves information about splits and dividends for a company.

Table 4.66. md_get_company_history_request parameters

Key nameValue typeDescription
instrumentclass instrument 

Example 4.88. Example md_get_company_history_request

{
        "session_token": "a47727dc-f0c1-4360-a7d5-c9a3fe754c02",
        "md_get_company_history_request": {
                "instrument": { "feed": 18177, "ticker": "DNO" }
        }
}
			

4.84 md_get_company_history_response

Response message for md_get_company_history_request.

Table 4.67. md_get_company_history_response parameters

Key nameValue typeDescription
splitsclass split[] 
dividendsclass dividend[] 

Example 4.89. Example md_get_company_history_response

{
    "error_code": 0,
    "session_token": "ae04b689-2139-4d8b-b20e-00acfe56618c",
    "md_get_company_history_response": { 
        "splits": [
            {
                "date": "2000-10-31",
                "factor": 0.2249
            },
            {
                "date": "2005-10-26",
                "factor": 0.9524
            },
            {
                "date": "2006-06-16",
                "factor": 0.2500
            },
            {
                "date": "2007-06-22",
                "factor": 1.0000
            }
        ],
        "dividends": [
            {
                "date": "2004-08-10",
                "amount": 3.8095
            },
            {
                "date": "2005-06-23",
                "amount": 0.1148
            }
        ]
    }
}
			

4.85 md_num_constituents_request

Returns the number of constituents associated with the index. If the number of constituents is non-zero, the constituents may be fetched using md_get_chain_request, where the name of the chain is the ticker of the index instrument.

Table 4.68. md_num_constituents_request parameters

Key nameValue typeDescription
indexclass instrumentInstrument must be of type INDEX

Example 4.90. Example md_num_constituents_request

{
        "session_token": "a47727dc-f0c1-4360-a7d5-c9a3fe754c02",
        "md_num_constituents_request": {
                "index": { "feed": 18177, "ticker": "OBX" }
        }
}
			

4.86 md_num_constituents_response

Response message for md_num_constituents_request.

Table 4.69. md_num_constituents_response parameters

Key nameValue typeDescription
constituentsinteger 

Example 4.91. Example md_num_constituents_response

{
    "error_code": 0,
    "session_token": "ae04b689-2139-4d8b-b20e-00acfe56618c",
    "md_num_constituents_response": {
        "constituents": 25
    }
}
			

5 Streaming market data messages

5.1 md_instrument_update

Streaming update messages resulting from a md_subscribe_instrument_request.

Note

The structure itself is of the type instrument_info.

Example 5.1. Example md_instrument_update

{
    "update_data": "oslo",
    "md_instrument_update": {
        "instrument": {
            "feed": 18177,
            "ticker": "STL",
            "isin": "NO0010096985"
        },
        "bid": 145.900,
        "ask": 146.000,
        "last": 146.000,
        "time": "2012-01-20T12:50:52Z",
        "change": -1.600,
        "pct_change": -1.084
    }
}
			

5.2 md_news_update

Streaming update messages resulting from a md_subscribe_news_request.

Note

The structure itself is of the type news_item.

Example 5.2. Example md_news_update

{
    "update_data": "NEWS",
    "md_news_update": { 
        "instruments": [
            {
                "feed": 26,
                "ticker": "DNQ"
            },
            {
                "feed": 2057,
                "ticker": "STL"
            }
        ],
        "type": "REGULAR",
        "headline": "ECB-Spurred Credit Pricing Gap to Widen -- Market Talk",
        "time": "2016-05-09T08:06:33Z",
        "news_id": "2_0_05091725",
        "news_feed": 1302,
        "orig_news_id": "05091725",
        "category": "1085,5005",
        "industry": "ALC,EGU,ELC,FSL,OIL,TRQ,VEH,XDJGI,XEX6,XNYA,XOBX,XOGT,XSLI,XSXA"
    }
}
			

5.3 md_alert_update

Streaming update messages resulting from a md_subscribe_alerts_request.

Note

The structure itself is of the type alert_data.

Example 5.3. Example md_alert_update

{
    "update_data": "ALERTS",
    "md_alert_update": { 
        "instruments": [
            {
                "feed": 26,
                "ticker": "DNQ"
            },
            {
                "feed": 2057,
                "ticker": "STL"
            }
        ],
        "type": "REGULAR",
        "headline": "ECB-Spurred Credit Pricing Gap to Widen -- Market Talk",
        "time": "2016-05-09T08:06:33Z",
        "news_id": "2_0_05091725",
        "news_feed": 1302,
        "orig_news_id": "05091725",
        "category": "1085,5005",
        "industry": "ALC,EGU,ELC,FSL,OIL,TRQ,VEH,XDJGI,XEX6,XNYA,XOBX,XOGT,XSLI,XSXA"
    }
}
			

5.4 md_owc_update

Streaming update messages resulting from a md_subscribe_owc_request.

Note

The structure itself is of the type owc_message.

Example 5.4. Example md_owc_update

{
    "update_data": "OWC",
    "md_owc_update": { 
        "id": 2363,
        "level": 0,
        "format": 0,
        "headline": "RUBICON SUSPENDED",
        "message": "Trading in Rubicon (QWE:RBC) has been suspended. More info to follow.",
    }
}			

5.5 md_feed_reset

Pushed out to all clients connected through a transport supporting streaming updates. The meaning of a feed reset depends on the type of the feed: for e.g. news feeds, all news identifiers will be invalid after a feed reset, and the list of news items must be fetched anew.

Table 5.1. md_feed_reset parameters

Key nameValue typeDescription
feedsinteger[]Array of feeds that have been reset

Example 5.5. Example md_feed_reset

{
    "md_feed_reset":
    {
        "feeds": [793, 1066]
    }
}
			

5.6 md_session_terminated

Session terminated.

Table 5.2. Termination codes

CodeDescription
2Kicked out, usually due to user logging in using a different IP
3Session timed out
5User logged out

Table 5.3. md_session_terminated parameters

Key nameValue typeDescription
termination_codeintegerReason for termination
termination_reasonstringDescriptive reason for termination

Example 5.6. Example md_session_terminated

{
    "md_session_terminated": {
        "session_token": "eae7adc9-32d4-4f52-b307-aac8cb3f3102",
        "termination_code": 3,
        "termination_reason": "Session expired"
    }
}
			

5.7 md_resubscribe

Resubscribe to instrument.

Table 5.4. md_resubscribe parameters

Key nameValue typeDescription
feedintegerInfront internal feed identifier
tickerstringTicker code for the instrument as given at the market

Example 5.7. Example md_resubscribe

{
    "update_data": "An error occured, please resubscribe",
    "md_resubscribe":
    {
        "feed": 18177,
        "ticker": "STL"
    }
}
			

6 Classes

6.1 instrument

Specifies a financial instrument.

Table 6.1. instrument member attributes

Key nameValue typeDescription
feedintegerInfront internal feed identifier
tickerstringTicker code for the instrument as given at the market
isinstringISIN code of the instrument
currencystringCurrency of the instrument
marketstringMarket code as wanted by the OMS or routing network. Normally MIC. Left out for some positions depending on money_kind value
exchange_instrument_idstring 
under_feedintegerFeed of underlying instrument
under_tickerstringTicker of underlying instrument
under_isinstringISIN of underlying instrument
under_currencystringCurrency of underlying instrument
under_marketstringMarket of underlying instrument
under_exchange_instrument_idstringExchange ID of underlying instrument
under_basestring 
[under_full_name]stringFull name of underlying
[display_ticker]stringUI specific value, used if set
full_namestringFull name of the instrument
[display_market]stringUI specific value, used if set
instrument_typeenum instrument_typeType of the instrument
instrument_subtypeenum instrument_subtypeA subtype of the instrument_type, e.g. if the option is a put or a call option
cfistringClassification Financial Instrument (ISO)
[expiry_date]DATE formatted stringExpiry date for derivates
[strike_price]doubleStrike price for options
feed_codestringDisplayable name for the feed
min_iceberg_sizeintegerIf set, describes the minimum visible size of an iceberg order
company_urlstringLink to company web site
[index_desc]stringDescription of index instruments
[issuer]stringIssuer short code
[issuer_full_name]stringIssuer full name
multiplierdouble?
[mic]string?
[deleted]bool?
[precision_code]integerids floating point precision enum
contract_sizeint32 
[contract_type]enum contract_type 
[start_of_index_period]DATE formatted string 
[end_of_index_period]DATE formatted string 
participation_levelint32 
break_evendouble 
asian_averagedouble 
bond_face_valueint32 
bond_minimum_denominationint32 
issue_dateDATE formatted string 
theoreticaldouble 
deltadouble 
elastdouble 
navdouble 
bond_coupon_reference_feedint32 
bond_coupon_reference_symbolstring 
bond_coupon_spreaddouble 
weightdouble 
exposuredouble 
barrierdouble 
[recommendation_type]enum recommendation_type 
bond_next_coupon_dateDATE formatted string 
coupons_per_yearint32 
[price_type]enum price_type 
official_closedouble 
[certificate_direction]enum certificate_direction 
traded_through_dateDATE formatted string 
cfi_codestring 
[eusipa_code]int32 
[board_lot] int32 

6.2 chain

A predefined list of instruments.

Table 6.2. chain member attributes

Key nameValue typeDescription
[provider]integerProvider specific chain
feedinteger 
namestring 
descriptionstring 

6.3 chain_tree

Tree structure for feeds supporting hierarchical chains.

Table 6.3. chain_tree member attributes

Key nameValue typeDescription
[label]stringLevel label on non-leaf nodes
[nodes]class chain_tree[]Child nodes
[chain]class chainLeaf node

6.4 forward_curve

A predefined list of instruments.

Table 6.4. chain member attributes

Key nameValue typeDescription
[availability]enum curve_availability 
[month1_bid]float 
[month1_ask]float 
[month2_bid]float 
[month2_ask]float 
[month3_bid]float 
[month3_ask]float 
[month4_bid]float 
[month4_ask]float 
[month5_bid]float 
[month5_ask]float 
[month6_bid]float 
[month6_ask]float 
[month7_bid]float 
[month7_ask]float 
[month8_bid]float 
[month8_ask]float 
[month9_bid]float 
[month9_ask]float 
[month10_bid]float 
[month10_ask]float 
[month11_bid]float 
[month11_ask]float 
[month12_bid]float 
[month12_ask]float 

6.5 instrument_info

Instrument data.

Table 6.5. instrument_info member attributes

Key nameValue typeDescription
instrumentclass instrument 
[hist_performance]class hist_performance 
[trades]class intraday_trade[] 
acc_volumefloat 
turnoverfloat 
onexch_volumefloat 
onexch_turnoverfloat 
bidfloat 
bid_sizefloat 
num_bidsinteger 
askfloat 
ask_sizefloat 
num_asksinteger 
bidsclass order_level[] 
asksclass order_level[] 
openfloat 
highfloat 
lowfloat 
lastfloat 
last_validfloat 
previous_closefloat 
lv_prev_closefloatLast valid previous close
timeDATETIME formatted string 
last_valid_dateDATE formatted string 
changefloat 
pct_changefloat 
lv_changefloatChange since last valid previous close
lv_pct_changefloatPercentage change since last valid previous close
gicsstring[]Global Industry Classification Standard
num_sharesfloat 
num_tradesinteger 
rsi14floatRelative Strength Index
macdfloatMoving Average Convergence / Divergence
ma50float50 day Moving Average
ma100float100 day Moving Average
ma200float200 day Moving Average
contract_sizefloatValue of a position is volume * last * contract_size
trading_statusstringCurrent trading status, e.g. "Opening Auction Call"
tick_size_idintegerTick size rule category
segmentstringExchange segment
indic_pricefloatIndicative price during auction
indic_volumefloatIndicative volume during auction
bid_spec_priceenum special_priceSpecial price on bid side. If returned, the bid field should NOT be used
ask_spec_priceenum special_priceSpecial price on ask side. If returned, the ask field should NOT be used
currency_ratiofloatRatio between instrument currency and USD
orderbook_resetbooleanIf TRUE, the orderbook must be emptied.
fund_typestringFund type
fund_total_expensefloatTotal expense from morningstar
fund_total_assetsfloatTotal assets from morningstar
fund_prospective_book_value_yieldfloat 
fund_prospective_dividend_yieldfloat 
fund_sharpe_ratiofloat 
fund_std_dev_1yfloat 
maturity_datestring 
coupon_ratefloat 
forward_curvesclass forward_curve 
value_datestring 
board_lotinteger 

6.6 hist_performance

Historical performance

Table 6.6. hist_performance member attributes

Key nameValue typeDescription
wtd_closefloat 
mtd_closefloat 
ytd_closefloat 
one_w_closefloat 
one_m_closefloat 
three_m_closefloat 
six_m_closefloat 
one_y_closefloat 
two_y_closefloat 
three_y_closefloat 
five_y_closefloat 
wtd_changefloat 
mtd_changefloat 
ytd_changefloat 
one_w_changefloat 
one_m_changefloat 
three_m_changefloat 
six_m_changefloat 
one_y_changefloat 
two_y_changefloat 
three_y_changefloat 
five_y_changefloat 
wtd_pct_changefloat 
mtd_pct_changefloat 
ytd_pct_changefloat 
one_w_pct_changefloat 
one_m_pct_changefloat 
three_m_pct_changefloat 
six_m_pct_changefloat 
one_y_pct_changefloat 
two_y_pct_changefloat 
three_y_pct_changefloat 
five_y_pct_changefloat 
wtd_highfloat 
mtd_highfloat 
ytd_highfloat 
one_w_highfloat 
one_m_highfloat 
three_m_highfloat 
six_m_highfloat 
one_y_highfloat 
two_y_highfloat 
three_y_highfloat 
five_y_highfloat 
wtd_lowfloat 
mtd_lowfloat 
ytd_lowfloat 
one_w_lowfloat 
one_m_lowfloat 
three_m_lowfloat 
six_m_lowfloat 
one_y_lowfloat 
two_y_lowfloat 
three_y_lowfloat 
five_y_lowfloat 
last_tradefloat 
last_trade_dateDATE formatted string 
one_w_last_divfloat 
one_m_last_divfloat 
three_m_last_divfloat 
six_m_last_divfloat 
one_y_last_divfloat 
wtd_last_divfloat 
mtd_last_divfloat 
ytd_last_divfloat 

6.7 order_level

Specifies an order level.

Table 6.7. order_level member attributes

Key nameValue typeDescription
levelintegerOrderbook level
pricefloatPrice
volumefloatTotal volume on level
ordersintegerNumber of orders on level

6.8 intraday_trade

Represents a trade.

Table 6.8. intraday_trade member attributes

Key nameValue typeDescription
openfloat 
lastfloat 
highfloat 
lowfloat 
bidfloat 
askfloat 
volumefloat 
turnoverfloat 
buyerstring 
sellerstring 
buyer_fullstringFullname
seller_fullstringFullname
marketstring 
typestring 
type_numberintegerSee info on bit flag type_number
seq_idintegerPer instrument, reset at start of day

6.9 historical_trade

Represents a historical trade in a time series.

Table 6.9. historical_trade member attributes

Key nameValue typeDescription
dateDATE formatted string 
[feed]integerOnly returned in md_get_history_request
[ticker]stringOnly returned in md_get_history_request
[ask]floatOnly returned in md_get_history_request
[bid]floatOnly returned in md_get_history_request
openfloat 
lastfloat 
highfloat 
lowfloat 
volumefloat 
num_tradesinteger 

6.10 news_region

Geographical news region.

Table 6.10. news_region member attributes

Key nameValue typeDescription
codeinteger 
descriptionstring 

6.11 news_item

News item.

Table 6.11. news_item member attributes

Key nameValue typeDescription
news_idstring 
news_feedinteger 
headlinestring 
typeenum news_type 
timeDATETIME formatted string 
[language]stringLanguage code of the news item
urlstringOnly present if the news is of type URL
[category]stringNews category
[instruments]class instrument[] 

6.12 news_source

News source.

Table 6.12. news_source member attributes

Key nameValue typeDescription
namestringName of the news source
short_namestringShort name of the news source
feedintegerFeed number of the news source
regionintegerRegional code of the news source

6.13 market

Market access.

Table 6.13. market member attributes

Key nameValue typeDescription
servicestringMarket description
providerstringVendor description
accessstringDescribes the update frequency of the vendor
feedintegerInternal feed number of market
min_delay_secsinteger 
max_delay_secsinteger 
countryinteger 
data_typesenum data_type[] 
custom_codesstring[] 
hiddenboolean 

6.14 contact

Support contact item.

Table 6.14. contact member attributes

Key nameValue typeDescription
valuestringContact value
[title]stringContact description
typeenum contact_typeType of contact

6.15 resource_parameter

Parameters for requestion resource URLs

Table 6.15. resource_parameter member attributes

Key nameValue typeDescription
[width]integerWidth of sizeable resource
[height]stringHeight of sizeable resource

6.16 search_item

Search result items

Table 6.16. search_item member attributes

Key nameValue typeDescription
typeenum item_typeType of item
[instrument]class instrument[] 
[chain]class chain[] 

6.17 broker

Statistics for a broker

Table 6.17. broker member attributes

Key nameValue typeDescription
namestringBroker code
fullnamestringBroker fullname
timeTIME formatted stringTime of last trade
buysinteger 
sellsinteger 
int_tradesintegerNumber of internal trades
buy_volumefloat 
sell_volumefloat 
int_volumefloat 
total_volumefloatbuy_volume + sell_volume + 2 * int_volume
buy_valuefloat 
sell_valuefloat 
int_valuefloatValue of internal trades
avg_buyfloat 
avg_sellfloat 
net_buy_valuefloatbuy_turnover - sell_turnover
[instrument]class instrumentOnly returned for broker specific statistics
hit_valuefloatValue of buy orders placed on ask level
hit_value_pctfloathit_value / buy_value * 100
take_valuefloatValue of sell orders placed on bid level
take_value_pctfloattake_value / sell_value * 100
total_valuefloatbuy_value + sell_value + 2 * int_value
total_value_pctfloat 
tradesintegerbuys + sells + 2 * int_trades
trades_pctfloat 
sym_turnfloatTurnover of underlying instrument
sym_turn_pctfloattotal_value / (sym_turn * 2) * 100 (only valid for intraday)

6.18 tick_rule

Tick size rule

Table 6.18. tick_rule member attributes

Key nameValue typeDescription
idintegerFeed specific tick size rule category
upper_boundfloatHighest price abiding to the tick size
sizefloatTick size

6.19 calendar_event

Calendar event

Table 6.19. calendar_event member attributes

Key nameValue typeDescription
sourceintegerEvent source feed
idintegerEvent id
dateDATE formatted stringEvent date
[time]TIME formatted stringEvent time, in UTC
descriptionstringEvent description
countrystringEvent country (2 letter ISO 3166)
[instrument]class instrument[] 

6.20 split

Stock split event

Table 6.20. split member attributes

Key nameValue typeDescription
dateDATE formatted stringEvent date
factordoubleSplit factor

6.21 dividend

Stock dividend event

Table 6.21. dividend member attributes

Key nameValue typeDescription
dateDATE formatted stringDividend date
[currency]stringDividend currency
amountdoubleDividend amount

6.22 position

A portfolio position

Table 6.22. position member attributes

Key nameValue typeDescription
instrumentclass instrument 
[invested]floatAmount invested in position
[avg_price]floatAverage acquisition price
[volume]floatPosition volume
[group]floatPosition group
[weight]floatPosition weight
[open_ccy_rate]floatOpen currency rate

6.23 cash

A cash position in portfolio

Table 6.23. cash member attributes

Key nameValue typeDescription
currencystringThe currency of the position
valuefloatThe value of the position

6.24 other

An other position in portfolio

Table 6.24. other member attributes

Key nameValue typeDescription
typestringUser-defined position type
descriptionstringUser-defined position description. Unique
currencystringThe currency of the position
valuefloatThe value of the position

6.25 owc_message

One Way Communication bulletin

Table 6.25. owc_message member attributes

Key nameValue typeDescription
idinteger 
levelintegerIntrusion level
formatintegerType of message
headlinestringHeadling
[message]stringPure-text bulletin
[url]stringURL
readbooleanAlready read

6.26 payload

Alert update

Table 6.26. payload member attributes

Key nameValue typeDescription
event_idinteger 
alert_idstring 
alert_typeenum alert_type 
commentstring 
instrumentclass instrument 

6.27 alert_data

Alert update

Table 6.27. alert_data member attributes

Key nameValue typeDescription
messagestring 
payloadclass payload 

6.28 feed_chains

feed with chain names list to use as search filter

Table 6.28. feed_chains member attributes

Key nameValue typeDescription
feedinteger 
[provider]integer 
chain_namesstring[] 

7 Enumerations

7.1 instrument_type

Specifies an instrument type.

Table 7.1. instrument_type enumerations

EnumerationDescription
NONE 
STOCK 
NEWS 
BOND 
EURO_OPTION 
FUTURES 
COMMODITY 
INDEX 
FOREX 
US_OPTION 
FUND 
OPTION 
COMBO 
CFD 
CERTIFICATE 
UNKNOWN 

7.2 instrument_subtype

Specifies an instrument subtype.

Table 7.2. instrument_subtype enumerations

EnumerationDescription
NONE 
UNKNOWN 
OPTION_CALL 
OPTION_PUT 
OPTION_FUTURE 
OPTION_FORWARD 
OPTION_CALL_WARRANT 
OPTION_SEC_LENDING 
OPTION_PUT_WARRANT 
OPTION_CALENDAR_SPREAD 
OPTION_VOLATILITY_TRADE 
OPTION_BARRIER_CALL 
OPTION_BARRIER_PUT 
OPTION_BARRIER 
OPTION_BARRIER_DOWN_IN_CALL 
OPTION_BARRIER_DOWN_IN_PUT 
OPTION_BARRIER_DOWN_OUT_CALL 
OPTION_BARRIER_DOWN_OUT_PUT 
OPTION_BARRIER_UP_IN_CALL 
OPTION_BARRIER_UP_IN_PUT 
OPTION_BARRIER_UP_OUT_CALL 
OPTION_BARRIER_UP_OUT_PUT 
BOND_CONVERTIBLE 
BOND_PREMIUM 
BOND_SWAP 
BOND_UTC 
BOND_CERTIFICATE 
STOCK_BONUS 
STOCK_RIGHT 
STOCK_SUBSCRIPTION_OPTION 
FOREX_SPOT 
FOREX_DEPOSIT 
FOREX_FRA 
FOREX_FORWARD 
FOREX_DEPOSIT_INDICATIVE 
FOREX_FREE_FRA 
FOREX_OPTION 
OPTION_STOCK 
OPTION_BINARY_CON_CALL 
OPTION_BINARY_CON_PUT 
OPTION_BINARY_GAP_CALL 
OPTION_BINARY_GAP_PUT 
OPTION_BINARY_AON_CALL 
OPTION_BINARY_AON_PUT 
OPTION_BINARY_SUPERSHARE 
CERT_BASKET 
CERT_DISCOUNT 
CERT_LEVERAGE 
CERT_BONUS 
CERT_OTHER 
CERT_INVESTMENT 
CERT_PARTICIPATION 
CERT_CASH_OR_SHARE 
CERT_EXPRESS 
CERT_GUARANTEE 
CERT_INDEX 
CERT_OUTPERFORM 
CERT_BALANCE 
CERT_BULL_BEAR 
CERT_LONG_SHORT 
CERT_MINI_FUTURE 
CERT_IR 
CERT_CREDIT 
CERT_COUPON 
CERT_PREMIUM 
CERT_GROWTH 
CERT_V 
BOND_TREASURY_NOTES 
BOND_TREASURY 
BOND_CORPORATE 
BOND_MUNICIPAL 
BOND_LOAN_INSTITUTION 
BOND_LEASING_COMPANY 
BOND_HOUSING 
BOND_FOREIGN 
BOND_BANK_SAVINGS 
BOND_TREASURY_BILLS 
BOND_FLOATER 
BOND_STRIPS 
BOND_ZERO 
BOND_GOVERNMENT 
BOND_OTHER 
BOND_MONEY_MARKET 
BOND_MORTGAGE 
BOND_BENCHMARK 
BOND_EQUITY_INDEX 
BOND_SUSTAINABLE 
BOND_MARKET 
BOND_CREDIT 
BOND_COMMODITY 
BOND_STRATEGY 
BOND_INTERVAL 
BOND_PORTFOLIO 
INDEX_BALANCE 
INDEX_CREDIT 
INDEX_COMMODITY 
INDEX_CURRENCY 
INDEX_RATE 
INDEX_STOCK 
FUND_ETN 
FUND_MUTUAL 
FUND_ETF 
COMBO_UNKNOWN 
COMBO_STRIP 
COMBO_FUT_CS 
COMBO_FWD_CS 
COMBO_CALL_CS 
COMBO_PUT_CS 
COMBO_FUT_BUTTERFL 
COMBO_FWD_BUTTERFL 
COMBO_CALL_BUTTERFL 
COMBO_PUT_BUTTERFL 
COMBO_IRON_BUTTERFL 
COMBO_FUT_CONDOR 
COMBO_FWD_CONDOR 
COMBO_PUT_CONDOR 
COMBO_CALL_CONDOR 
COMBO_PACK_WHITE 
COMBO_PACK_RED 
COMBO_PACK_GREEN 
COMBO_PACK_BLUE 
COMBO_PACK_GOLD 
COMBO_BUNDLE_2Y 
COMBO_BUNDLE_3Y 
COMBO_BUNDLE_4Y 
COMBO_BUNDLE_5Y 
COMBO_CALL_SPREAD 
COMBO_PUT_SPREAD 
COMBO_CALL_DCS 
COMBO_PUT_DCS 
COMBO_GUTS 
COMBO_2X1_CALL_SPREAD 
COMBO_2X1_PUT_SPREAD 
COMBO_COMBO 
COMBO_STRANGLE 
COMBO_CALL_LADDER 
COMBO_PUT_LADDER 
COMBO_STRADDLE_CS 
COMBO_STRADDLE_DCS 
COMBO_STRADDLE 
COMBO_BOX 
COMBO_REVERSAL 
COMBO_IRON_CONDOR 
COMBO_CALL_VOLTRADE 
COMBO_PUT_VOLTRADE 
COMBO_CALL_SPREAD_VSU 
COMBO_PUT_SPREAD_VSU 
COMBO_STRADDLE_VSBU 
COMBO_STRADDLE_VSSU 
COMBO_STRANGLE_VSSU 
COMBO_SPRD_VSSP_VSU 
COMBO_SPRD_VSSC_VSU 
COMBO_LADDER_VSBU_CALL 
COMBO_LADDER_VSSU_CALL 
COMBO_LADDER_VSSU_PUT 
COMBO_COMBO_VSBU 
COMBO_CS_CALL_VSBU 
COMBO_CS_CALL_VSSU 
COMBO_CS_PUT_VSBU 
COMBO_CS_PUT_VSSU 
COMBO_2X1_CALL_SPD_VSBU 
COMBO_2X1_CALL_SPD_VSSU 
COMBO_2x1_PUT_SPD_VSBU 
COMBO_2X1_PUT_SPD_VSSU 
COMBO_REV_VSSU 
COMBO_3W_CALL_SPD_VSP 
COMBO_3W_PUT_SPD_VSC 
COMBO_3W_STRADDLE_VSC 
COMBO_3W_STRADDLE_VSP 
COMBO_VERTICAL_SPREAD 
COMBO_PRICE_SPREAD 

7.3 contract_type

Specifies an contract type.

Table 7.3. contract_type enumerations

EnumerationDescription
CONTRACT_TYPE_CALL 
CONTRACT_TYPE_PUT 
CONTRACT_TYPE_UKNOWN 

7.4 recommendation_type

Specifies an recommendation type.

Table 7.4. recommendation_type enumerations

EnumerationDescription
RECOMMENDATION_TYPE_UNKNOWN 
RECOMMENDATION_TYPE_STRONG_BUY 
RECOMMENDATION_TYPE_BUY 
RECOMMENDATION_TYPE_HOLD 
RECOMMENDATION_TYPE_SELL 
RECOMMENDATION_TYPE_STRONG_SELL 

7.5 buy_or_sell

Type of transaction.

Table 7.5. buy_or_sell enumerations

EnumerationDescription
BUYBuy order
SELLSell order

7.6 price_type

Specifies an price type.

Table 7.6. price_type enumerations

EnumerationDescription
PRICE_TYPE_PRICE_PER_UNIT 
PRICE_TYPE_PECENTAGE_OF_NOMINAL 
PRICE_TYPE_PECENTAGE_OF_NOMINAL_EXCLUDING_ACCRUED 
PRICE_TYPE_PECENTAGE_OF_NOMINAL_INCLUDING_ACCRUED 

7.7 certificate_direction

Specifies an certificate direction.

Table 7.7. certificate_direction enumerations

EnumerationDescription
CERTIFICATE_DIRECTION_BEAR 
CERTIFICATE_DIRECTION_BULL 
CERTIFICATE_DIRECTION_BUY 
CERTIFICATE_DIRECTION_LONG 
CERTIFICATE_DIRECTION_SELL 
CERTIFICATE_DIRECTION_SHORT 
CERTIFICATE_DIRECTION_UNKNOWN 

7.8 special_price

Some exchange feeds use special prices (e.g. 9999.99) with semantic meaning.

Table 7.8. special_price enumerations

EnumerationDescription
AT_MARKET 
AT_OPEN 

7.9 resolution

Resolution of results in chart data responses.

Table 7.9. resolution enumerations

EnumerationDescription
TICKSIndividual trades
MINUTESMinutes
HOURSHours

7.10 intraday_sorting

Sort order of list of trades.

Table 7.10. intraday_sorting enumerations

EnumerationDescription
TIME_DESC 
TIME_ASC 
VOLUME_DESC 
VOLUME_ASC 
PRICE_DESC 
PRICE_ASC 

7.11 historical_fields

Market data historical chart filters.

Table 7.11. historical_fields enumerations

EnumerationDescription
OPEN 
HIGH 
LOW 
LAST 
VOLUME 
NUM_TRADES 
TURNOVER 

7.12 intraday_fields

Market data intraday chart filters.

Table 7.12. intraday_fields enumerations

EnumerationDescription
BID 
ASK 
OPEN 
HIGH 
LOW 
LAST 
VOLUME 
TURNOVER 

7.13 snapshot_fields

Market data update filters.

Table 7.13. snapshot_fields enumerations

EnumerationDescription
ACC_VOLUME 
TURNOVER 
ONEXCH_VOLUME 
ONEXCH_TURNOVER 
BID 
ASK 
BID_SIZE 
ASK_SIZE 
NUM_BIDS 
NUM_ASKS 
ORDERBOOK 
VWAP 
AVG_VOLUME 
AVG_VALUE 
OPEN 
ASK 
HIGH 
LOW 
LAST 
LAST_VALID 
LAST_VALID_DATE 
PREVIOUS_CLOSE 
LV_PREV_CLOSE 
TIME 
CHANGE 
PCT_CHANGE 
LV_CHANGE 
LV_PCT_CHANGE 
NUM_TRADES 
GICS 
NUM_SHARES 
RSI14 
MACD 
MA50 
MA100 
MA200 
CONTRACT_SIZE 
TRADING_STATUS 
TICK_SIZE_ID 
SEGMENT 
INDIC_PRICE 
INDIC_VOLUME 
CURRENCY_RATIO 
TRADESIntraday trades
HIST_PERFORMANCEHistorical performance
REF_DATA_DETAILSGet fund_type, fund_total_expense, fund_total_assets fields
FORWARD_CURVES 

7.14 sort_order

Sort order for ranked lists.

Table 7.14. sort_order enumerations

EnumerationDescription
PCT_CHANGE_DESC 
PCT_CHANGE_ASC 
LV_PCT_CHANGE_DESC 
LV_PCT_CHANGE_ASC 
TURNOVER_DESC 
TURNOVER_ASC 
TICKER_DESC 
TICKER_ASC 
VOLUME_DESC 
VOLUME_ASC 
ONE_W_PCT_CHANGE_DESC 
ONE_W_PCT_CHANGE_ASC 
ONE_M_PCT_CHANGE_DESC 
ONE_M_PCT_CHANGE_ASC 
THREE_M_PCT_CHANGE_DESC 
THREE_M_PCT_CHANGE_ASC 
SIX_M_PCT_CHANGE_DESC 
SIX_M_PCT_CHANGE_ASC 
ONE_Y_PCT_CHANGE_DESC 
ONE_Y_PCT_CHANGE_ASC 
TWO_Y_PCT_CHANGE_DESC 
TWO_Y_PCT_CHANGE_ASC 
THREE_Y_PCT_CHANGE_DESC 
THREE_Y_PCT_CHANGE_ASC 
FIVE_Y_PCT_CHANGE_DESC 
FIVE_Y_PCT_CHANGE_ASC 
YTD_PCT_CHANGE_DESC 
YTD_PCT_CHANGE_ASC 

7.15 news_type

News item type.

Table 7.15. news_type enumerations

EnumerationDescription
FLASH_LEVEL_1 
FLASH_LEVEL_2 
FLASH_LEVEL_3 
URL 
REGULAR 

7.16 contact_type

Contact item type.

Table 7.16. contact_type enumerations

EnumerationDescription
PHONE 
EMAIL 
GENERIC 

7.17 widget_type

Type of Infinancials widget

Table 7.17. widget_type enumerations

EnumerationDescription
GPRV 
CHART1 
CHART2 
SNAPSHOT 
PEERS 
ESTIMATES 

7.18 oauth_server_id

OAuth provider.

Table 7.18. oauth_server_id enumerations

EnumerationDescription
FACEBOOK 
LINKEDIN 

7.19 feature

Feature access

Table 7.19. feature enumerations

EnumerationDescription
INFINANCIALS 
TWEETWIRES 
NEWS_SEARCHUser has access to historical news search, and search in news bodies. If not present, the user is only allowed to search the headlines of intraday news.
WEBUser may use web clients
MOBILEUser may use mobile clients
ALERTSUser has access to alert functionality
ALL_ADJUSTMENTSUser has access to all adjustments

7.20 item_type

Search item type

Table 7.20. item_type enumerations

EnumerationDescription
INSTRUMENTStocks, funds, etc.
CHAINPredefined list of instruments

7.21 broker_period

Period of broker statistics

Table 7.21. broker_period enumerations

EnumerationDescription
INTRADAY 
TWO_DAYS 
ONE_WEEK 
ONE_MONTH 
THREE_MONTHS 
SIX_MONTHS 
ONE_YEAR 
YTD 

7.22 chain_type

Chain type

Table 7.22. chain_type enumerations

EnumerationDescription
FEED 
INDEX 
GLOBAL 

7.23 data_type

Data type

Table 7.23. data_type enumerations

EnumerationDescription
STOCKS 
NEWS 
BONDS 
EUROOPTIONS 
FUTURES 
COMMODITIES 
INDICIES 
FOREX 
USOPTIONS 
FUNDS 
CHAT 
URLNEWS 
ORDERS 
WARRANTS 
FEATURES 
SYMBOL_EXT 
CALENDAR_UPDATES 
FX_DEPOSIT_RATES 
MTF 
WEB_FEATURE 

7.24 token_type

Signed token type

Table 7.24. token_type enumerations

EnumerationDescription
INVALID 
SAML1 
JWT 

7.25 alert_type

Alert type

Table 7.25. alert_type enumerations

EnumerationDescription
INSTRUMENT_ALERT 
CHAIN_ALERT 
LIST_ALERT 
NEWS_ALERT 

7.26 curve_availability

Curve availability

Table 7.26. curve_availability enumerations

EnumerationDescription
BID 
ASK 
BOTH 

7.27 type_number

Trade type number bit flag

Table 7.27. type_number bits

Note

Example value of 0x00000300 would be a combination of 0x00000100 (No High/Low) and 0x00000200 (No Volume).
ValueNameDescription
0x00000001AuctionTrade executed in auction
0x00000002ShortShort sell
0x00000004Bid tradeUpdate bid only
0x00000008Ask tradeUpdate ask only
0x00000010Reserved 
0x00000020Reserved 
0x00000040Reserved 
0x00000080Reserved 
0x00000100No High/LowDo not update last/high/low
0x00000200No VolumeDo not update last/volume
0x00000400Deleted trade 
0x00000800Deleted trade 
0x00001000Inserted trade 
0x00002000Use LAST 
0x00004000Modify tradeOnly used to update trade volume
0x00008000Auction no stats 
0x00010000Reserved 
0x00020000Reserved 
0x00040000Reserved 
0x00080000Reserved 
0x00100000Reserved 
0x00200000Reserved 
0x00400000Reserved 
0x00800000Reserved 
0x01000000Equilibrium 
0x02000000Pre tradePre-market trade (for charts)
0x04000000Post tradePost-market trade (for charts)
0x08000000No chart updateDon't update the charts
0x10000000BA tradeSimulated trade created based on bid/ask

8 Error codes

Note

The error codes are for the benefit of the developer using the API. Error messages to the end user should be based on the error codes, rather than the message. It may not be assumed that the error message returned will be identical for every message with an identical error code.

Table 8.1. Error codes

Error codeTypeDescription
1SUPERUSER_FORBIDDENInsufficient access for superuser
2EXTERNALError passed on from external service or module
42RETRYTemporary failure, the last message should be repeated
77SESSION_TOKEN_REUSEDThe socket has already been used by another session
79TOKEN_ERRORInvalid or missing session token
400BAD_REQUESTBad request
403FORBIDDENInsufficient access
404NOT_FOUNDThe resource could not be found
405METHOD_NOT_ALLOWEDMethod not allowed
501NOT_IMPLEMENTEDNot implemented
504SERVICE_TIMEOUTService timeout

9 String formats

String format conventions.

Table 9.1. String formats

NameFormatDescription
DATEYYYY-MM-DD 
TIMEHH:MM:SS 
DATETIMEYYYY-MM-DDTHH:MM:SSZ 
UTC_OFFSET[+ | -]HH:MMSpecifies a time offset from UTC, e.g. "-04:00".