What does 'Cannot send request to ADS' mean?

fields =
{'TR.EPSActValue':
{'params':{"Period":"FQ0", "Frq": "FQ"},'sort_dir':'asc'}
},
{'TR.EPSActValue.periodenddate':
{'params':{"Period":"FQ0", "Frq": "FQ"},'sort_dir':'asc'}
},
]
I'm trying to request these fields, but I always get the following message as response:
Status received for FNOX.NGM {'status': <StreamState.Closed: 1>, 'code': 'ConnectionError', 'message': 'Cannot send request to ADS'}
NOTE: The method get_data returns the data normally with these fields, but with StramingPrices I get the error message. Any idea of the reason / solution?
Request with get_data:
df, err = ek.get_data(valid_rics, fields)
Request with StramingPrices:
def get_streaming(instruments, fields):
return ek.StreamingPrices(
instruments = instruments,
fields = fields,
on_refresh = on_update,
on_update = on_update,
on_status = on_status,
on_complete = on_complete,
)
def on_update(stream, instrument_name, fields)
print(f'Upate for {instrument_name}: {fields}'.)
def on_status(stream, instrument_name, status)
print('Status received for {} {}'.format(instrument_name, status))
def on_complete(stream)
print(stream.get_snapshot())
streaming = get_streaming(valid_rics, fields)
streaming.open()
asyncio.get_event_loop().run_until_complete(asyncio.sleep(600))
RICs:
valid_rics = [
'CCHW.NLB',
'FNOX.NGM',
'MMED.NLB',
'NTAR.NLB',
'OLIS.DH',
'SOSIL.NGM',
'SYNTH.TE',
]
Thank you in advance.
Best Answer
-
StreamingPrices class is specifically created to retrieve streaming market data from Refinitiv Real-Time Network. You can see the full list of fields available for a RIC on Refinitiv Real-Time Network by displaying the RIC in a Quote app in Eikon application, right clicking within the app and selecting Templates - Display All Fields from the right-click menu. This will display the raw view of the streaming record as a vector of field name/value pairs. The list of fields available varies between the RICs, but only the fields returned in the Quote app can be retrieved using StreamingPrices.
The field TR.EPSActValue you used (and any other fields that start with "TR.") comprise fundamental and reference dataset, which is separate from streaming data on Refinitiv Real-Time Network, and which cannot be retrieved using StreamingPrices. To retrieve fundamental & reference data you need to use get_data method.
0
Answers
-
Hi @diego37,
The 'Cannot send request to ADS' implies the data you request for cannot be processed by the backend streaming server (ADS - Advanced Distribution Server).
The streaming service requires a field name only, i.e. "CF_BID", "CF_ASK", etc. Refer to the description page for an example. You are requesting for historical values from the streaming service which only supports real-time data.
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
- 616 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 中文论坛