Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| developers:fixapi:securitydefinitionrequest [2025/09/12 01:33] – removed - external edit (Unknown date) 127.0.0.1 | developers:fixapi:securitydefinitionrequest [2025/09/12 02:37] (current) – chad | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== SECURITY DEFINITION REQUEST [35=c] ====== | ||
| + | The Security Definition Request message queries available trading instruments. | ||
| + | |||
| + | ===== Prerequisites ===== | ||
| + | * Enable via Logon with RefMsgType=c (Tag 372) | ||
| + | * Requests without enablement rejected with SecurityResponseType=5 | ||
| + | |||
| + | ===== Request Types ===== | ||
| + | ^ SecurityRequestType (321) ^ Description ^ | ||
| + | | 3 | Active markets | | ||
| + | | 4 | Expired markets only | | ||
| + | |||
| + | ===== Query Patterns ===== | ||
| + | 1. **List Exchanges: | ||
| + | 2. **List Contracts: | ||
| + | 3. **List Markets:** SecurityType + SecurityExchange + Symbol | ||
| + | 4. **Specific Market:** Add SecurityID to above | ||
| + | 5. **Expired Markets:** Use SecurityRequestType=4 | ||
| + | |||
| + | ===== Message Specification ===== | ||
| + | |||
| + | **Message Direction: | ||
| + | |||
| + | ^ Tag ^ Field Name ^ Type ^ Req'd ^ Description ^ | ||
| + | | | **Message Header** | | Y | MsgType = c | | ||
| + | | 320 | SecurityReqID | String | Y | Unique request ID | | ||
| + | | 321 | SecurityRequestType | Int | Y | 3=Active, 4=Expired | | ||
| + | | 167 | SecurityType | String | O | FUT, OPT, STK, SYN, BIN | | ||
| + | | 207 | SecurityExchange | String | O | T4 Exchange ID | | ||
| + | | 55 | Symbol | String | O | T4 Contract ID | | ||
| + | | 48 | SecurityID | String | O | T4 Market ID | | ||
| + | | 201 | PutOrCall | Int | O | 0=Put, 1=Call | | ||
| + | | 200 | MaturityMonthYear | String | O | Format: YYYYMM | | ||
| + | | 762 | SecuritySubType | String | O | Strategy type (see table) | | ||
| + | | | **Message Trailer** | | Y | | | ||
| + | |||
| + | ===== SecuritySubType Values ===== | ||
| + | ^ Code ^ Type ^ | ||
| + | | 0 | Outrights | | ||
| + | | 1 | Calendar Spread | | ||
| + | | 3 | Inter-Contract Spread | | ||
| + | | 4 | Butterfly | | ||
| + | | 5 | Condor | | ||
| + | | 14 | Straddle | | ||
| + | | 15 | Strangle | | ||
| + | | 19 | Vertical Spread | | ||
| + | |||
| + | ===== Sample Messages ===== | ||
| + | |||
| + | **List All Exchanges: | ||
| + | < | ||
| + | 8=FIX.4.2|9=100|35=c|49=T4Example|56=T4|52=20121015-21: | ||
| + | 320=sc-10/ | ||
| + | </ | ||
| + | |||
| + | **List Exchange Contracts: | ||
| + | < | ||
| + | 8=FIX.4.2|9=120|35=c|49=T4Example|56=T4|52=20121015-21: | ||
| + | 320=sc-10/ | ||
| + | </ | ||
| + | |||
| + | **List Contract Markets:** | ||
| + | < | ||
| + | 8=FIX.4.2|9=140|35=c|49=T4Example|56=T4|52=20121015-21: | ||
| + | 320=sc-10/ | ||
| + | </ | ||
| + | |||
| + | **Specific Market:** | ||
| + | < | ||
| + | 8=FIX.4.2|9=160|35=c|49=T4Example|56=T4|52=20121015-21: | ||
| + | 320=sc-10/ | ||
| + | 48=CME_20121200_ESZ2|10=123| | ||
| + | </ | ||
| + | |||
| + | ===== Notes ===== | ||
| + | * Process responses before next request (no batching) | ||
| + | * Cache definitions to avoid repeated requests | ||
| + | * Match discovery to contract cycles (e.g., quarterly) | ||