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.
1
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.
1
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛