example of snapshot using the endpoint

All,
I am trying to use an endpoint to get snapshot of the 'YIELD' fid of few RICs(e.g. SPY, DIA).
I believe the appropriate endpoint is https://api.refinitiv.com/data/pricing/snapshots/v1/ but not sure and could not find full example.
Can you please share an example using Python?
Thanks
Moti
Best Answer
-
Hi @Moti.Konak
If you are accessing this content directly from RDP (Platform session) and are a Wealth client, you should have access to the 'data/pricing/snapshots/v1/' endpoint. If so, you can follow the Pricing Snapshot example. Otherwise, if you have access to streaming data, you can follow the "Alternative method for Snapshot data" within that same example.
0
Answers
-
If you would like to use the REST API call directly, you can access the API playground and select the /data/pricing/snapshots/v1/ endpoint.
The playground can generate the sample Python code.
https://api.refinitiv.com/data/pricing/snapshots/v1/?universe=/SPY,/DIA&fields=YIELD
I used delayed RICs: /SPY and /DIA because I don't have permission to access those real-time RICs.
0 -
Thanks Both!!
I am getting the following error while using the rest API copied from the playground into Python :
{"error":{"id":"e1f34f35-ef10-41ca-991a-90c451992b78","code":"insufficient_scope","message":"access denied. Scopes required to access the resource: [trapi.data.pricing.read]. Missing scopes: [trapi.data.pricing.read]","status":"Forbidden"}}
Also, the "send" button is grayed out for me in the API Playground using //data/pricing/snapshots/v1/ endpoint.
Do I have a permission issue? if so, what kind of permission do I need to ask for?
Thanks
Moti
0 -
Hi @Moti.Konak
You are not permissioned for this service. In my above answer, you can try to use the streaming service instead using the alternative approach mechanism. If you want to go the route of getting permission via that snapshot endpoint, you have to reach out to your account representative and request you need access to the snapshot service.
0 -
i got the same question, if we want to get some stock like `CBA.AX`, what should i input after "universe"?
is it `/CBA.AX=`?
0 -
Hello @maxma
The answered question will not be monitored. Please post a new question next time.
The RDP /data/pricing/snapshots/v1/ endpoint supports both HTTP GET and HTTP POST request as follows:
HTTP GET:
You can just input CBA.AX RIC Code after the universe query parameter (without "=" suffix).
HTTP POST:
Note: The RIC codes with "=" suffix are the Currency RICs such as THB=, HKD=, etc.
0 -
this is my result, is it because i don't have permission?
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
- 684 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
- 249 ETA
- 554 WebSocket API
- 37 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
- 643 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 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 中文论坛