Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
api:markets [2024/01/09 20:05] – chad | api:markets [2025/03/14 02:49] (current) – removed chad | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Market Definition Service ====== | ||
- | |||
- | The T4 system identifies products using a 3-part identifier system: | ||
- | |||
- | | **ExchangeID** | A unique ID representing the exchange. \\ (Note: These are logical groupings, therefore there will be more than one ExchangeID for most exchanges.\\ e.g. '' | ||
- | | **ContractID** | A unique ID representing the specific product group.\\ e.g. '' | ||
- | | **MarketID** | A unique ID representing the contract expiry.\\ e.g. '' | ||
- | |||
- | < | ||
- | |||
- | < | ||
- | |||
- | |||
- | |||
- | ===== Exchanges ====== | ||
- | |||
- | Retrieves a list of exchanges available in the market data system. | ||
- | |||
- | ==== API Endpoint ==== | ||
- | < | ||
- | |||
- | ==== Header ==== | ||
- | Include **Authorization** which should contain a valid bearer token. | ||
- | < | ||
- | |||
- | The JSON response is an array of objects, each representing an exchange with its ID, clearing exchange, and description. | ||
- | |||
- | ==== Response Structure ==== | ||
- | ^ Element | ||
- | | exchangeId | ||
- | | clearingExchange | ||
- | | description | ||
- | |||
- | |||
- | ==== Example JSON Response ==== | ||
- | < | ||
- | [ | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | }, | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | }, | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | }, | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | }, | ||
- | // ... additional exchanges ... | ||
- | ] | ||
- | </ | ||
- | |||
- | |||
- | ====== Contracts ====== | ||
- | |||
- | The **Contracts** API endpoint retrieves a list of contracts for a given exchange. This endpoint requires an authenticated user. | ||
- | |||
- | ==== API Endpoint ==== | ||
- | < | ||
- | |||
- | ==== Header ==== | ||
- | Include **Authorization** which should contain a valid bearer token. | ||
- | < | ||
- | |||
- | ==== Parameters ==== | ||
- | ^ Parameter | ||
- | | exchangeID | ||
- | |||
- | ==== Response Structure ==== | ||
- | ^ Element | ||
- | | exchangeID | ||
- | | contractID | ||
- | | contractType | ||
- | | description | ||
- | |||
- | ==== Example JSON Response ==== | ||
- | < | ||
- | [ | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | }, | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | }, | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | }, | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | }, | ||
- | // ... additional contracts... | ||
- | ] | ||
- | </ | ||
- | |||
- | The JSON response is an array of objects, each representing a contract with its exchange ID, contract ID, type, and description. | ||
- | |||
- | |||
- | ====== Contract Search ====== | ||
- | |||
- | The **Contract Search** API endpoint is used to search for contracts based on a given search query. | ||
- | |||
- | ==== API Endpoint ==== | ||
- | < | ||
- | |||
- | ==== Header ==== | ||
- | Include **Authorization** which should contain a valid bearer token. | ||
- | < | ||
- | |||
- | ==== Parameters ==== | ||
- | ^ Parameter | ||
- | | s | The search query string used to search for contracts. | | ||
- | |||
- | ==== Response Structure ==== | ||
- | The response structure will be an array of contract objects. Each object includes details about the contract found in the search. | ||
- | |||
- | ==== Example JSON Response ==== | ||
- | |||
- | < | ||
- | [ | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | }, | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | }, | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | }, | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | }, | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | }, | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | }, | ||
- | // ... additional results ... | ||
- | ] | ||
- | </ | ||
- | |||
- | |||
- | ====== Markets ====== | ||
- | |||
- | ====== Market Details ====== | ||
- | |||
- | |||
- | |||
- | |||