Instrument List

General

This API provides snapshot and real-time updates for instruments details.

The response is sorted by symbol (case-insensitive)

Use Cases:

  1. Retrieving All Instruments: When all instruments are required, the API should be used without pagination and without filters.

  2. Retrieving a Specific Segment of Instruments: For scenarios where a specific segment of instruments is needed, the API should be used without pagination but with filters.

  3. UI Applications: When the consumer needs to paginate through the instruments, the API should be used with pagination enabled—utilizing the fromSymbol request parameter.

instrumentList

qualifier: v1/exchange.marketdata/instrumentList

This API does not include pagination and support filters on the request.

Upon successful subscription, a snapshot of all active instruments is sent. The last message of the snapshot contains lastMessage=Y. Any changes to the instruments after the snapshot are sent as subsequent updates.

In cases where there are no instruments to return, the system will send an empty message.

Snapshot- will receive all instruments that meet the filters from the request (If no filter exists, only “Active” instruments will be sent)

Live updates-

You will receive live updates for the following:

  1. All Instruments from the Snapshot: Continuous updates on all instruments included in the initial snapshot.

  2. New Instruments Meeting Filter Criteria: Notifications for any new instruments that meet your specified filter criteria.

  3. Updated Instruments Meeting Filter Criteria: Updates on instruments that were modified and now meet your requested filters.

  4. Instruments No Longer Meeting Filter Criteria: If an instrument initially met the filters but no longer does due to an update, you will receive a notification for the first change. After this, no further updates will be sent for that instrument.

  5. Status Change Notifications: When an instrument changes status from Active to Disabled/Archived, you will receive a notification of this change—unless the instrument now meets the specified filters.

Request

Request parameters are the same as define here , below parameters are not included:

  • offset

  • limit

  • orderBy

Response

Similar to this (NEW v1.43.0) with below changes:

  • groupIds field is not returned

  • All numbers are non-stringified

(REMOVED v1.43.0) NOTE: All numbers are stringified

Error Codes

Code
Message

1

System is unavailable

100

Missing or invalid parameter: [FieldName]

102

Single category should be sent

102

Wrong Sub Category

102

Strategies category should be sent

Samples

{
  "q": "v1/exchange.marketdata/instrumentList",
  "token": "eyJleGNoYW5nZUlkIjozMCwicHJvamVjdElkIjoyMDB9",
  "sid": 10,
  "d": {
  }
}

instrumentListWithPagination

qualifier: v1/exchange.marketdata/instrumentListWithPagination

This API includes pagination and filters.

Snapshot- will receive all instruments that meet the filters from the request (If no filter exists, only “Active” instruments will be sent)

Live updates-

You will receive live updates for the following:

  • Snapshot Instruments Only: Updates will be sent exclusively for the instruments included in the initial snapshot.

  • No New Instruments: You will not receive updates for any new instruments created after you subscribed.

  • Status Change Alerts: If an instrument’s status changes from Active to Disabled, you will receive a notification. After this, no further updates will be sent for that instrument, even if it becomes active again.

Request

Similar to this with the below changes:

Request parameters are the same as define here with the below changes:

  • offset is not included

  • Additional parameter:

Name
Type
Description

fromSymbol

String

Optional

From which symbol, start to send, exclusive.

For example:

We have instruments - “AA”, “BA”, “CB”, “CA”

Request: limit: 1, fromSymbol: “BA”

Response: “CB”

Response

Similar to this with the below change:

  • totalCount in Admin API called here count

  • fromSymbol is returned

Error Codes

Same as here

Samples

{
  "q": "v1/exchange.marketdata/instrumentListWithPagination",
  "token": "ABC",
  "sid": 18,
  "d": {
    "fromSymbol": "bonds",
    "calendarId": 10
  }
}

Last updated