DataScope Select Instrument List ES options don't exist even though they follow the format

Hi,
Me and my team are trying to create a tool that automatically reads in a spreadsheet of ours, turns it into a RIC list csv, and then we import that into the DSS web gui to go and make a request with. However, when we import the list of around 33,000 contracts, only about 25% of them exist... which is very confusing to us because the format of the options RICs looks correct and we followed all the documentation on this to the best of our knowledge. We checked on some of the RICs the system says doesn't exist, and they are indeed correct strike prices and such that we verified exist.
This begs the question, has there been a naming schema change or something like that? When we do this for more recent months, we haven't had issues.
See below our code which makes the list given our spreadsheet, it shows exactly how we go from information like the date, strike to the RIC by following the documentation exactly.
dates = lines[dates_row][1:]
strikes_data = lines[dates_row+2:]
month_mapping = {
1: ('A', 'M'), 2: ('B', 'N'), 3: ('C', 'O'), 4: ('D', 'P'), 5: ('E', 'Q'), 6: ('F', 'R'),
7: ('G', 'S'), 8: ('H', 'T'), 9: ('I', 'U'), 10: ('J', 'V'), 11: ('K', 'W'), 12: ('L', 'X')
}
for i in range(len(strikes_data)):
strikes = strikes_data[i][1:]
for j in range(len(strikes)):
if strikes[j] and dates[j]:
try:
strike_price = int(float(strikes[j]))
date_str = dates[j]
date = datetime.strptime(date_str, '%m/%d/%Y')
week_of_month = (date.day - 1) // 7 + 1
month_code_call, month_code_put = month_mapping[date.month]
year_code = str(date.year % 100)
day_of_week = date.strftime('%A')
if day_of_week == 'Friday':
ric_format = f'ES{week_of_month}W'
elif day_of_week == 'Monday':
ric_format = f'1AE{week_of_month}W'
elif day_of_week == 'Tuesday':
ric_format = f'E1B{week_of_month}W'
elif day_of_week == 'Wednesday':
ric_format = f'EC{week_of_month}W'
elif day_of_week == 'Thursday':
ric_format = f'E1D{week_of_month}W'
else:
raise ValueError(f"Invalid day of week: {day_of_week}")
call_code = f"{ric_format}{strike_price:04d}{month_code_call}{year_code}"
put_code = f"{ric_format}{strike_price:04d}{month_code_put}{year_code}"
refinitiv_codes.append(call_code)
refinitiv_codes.append(put_code)
Find in the image attached examples of RICs produced by the above code that do not exist, and we cannot find out why!
Any help is appreciated!
Best Answer
-
Thank you for reaching out to us.
This forum is for API / development how-to type queries.
To verify why those RICs are invalid (not found), Please contact the helpdesk team or Datascope Select support team directly via MyAccount.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 652 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛