How can I correctly obtain your HPA Java SDK tool?
We are using Java and we expect to use RESTful HTTP requests to retrieve the K-line data for stocks. Here is an example: https://api.refinitiv.com/data/historical-pricing/v1/views/intraday-summaries/0700.HK?interval=PT5M&start=2023-08-01T00:00:00.000000000Z&end=2023-10-30T18:00:00.000000000Z&fields=BID,ASK,OPEN_PRC. Our project is built with Maven, and we are looking for an SDK that provides this HTTP request utility class. You should have this dependency, right? Could you please provide it to us along with a user manual? Thank you!
Best Answer
-
Thank you for reaching out to us.
According to the URL, you are using Refinitiv Data Platform APIs.
Currently, we don't have Refinitiv Data Platform for Java. We have Refinitiv Data Platform Libraries for Python. DotNet, and Typescript.
However, to use the RDP APIs in Java, you can use any Java HTTP Client libraries. You can download RDP Postman Starter Collection and Tutorial Samples. Postman can generate Java snippet code for a REST API call.
For more information, please refer to the Generate code for a REST API call using Postman in just a few clicks article.
0
Answers
-
Hello @guoshuai
The API Playground page (https://apidocs.refinitiv.com/Apps/ApiDocs) also has a feature to generate the source code for each API endpoint.
You can click the "code": button under the URL as follows:
0 -
this is our machineId:
GE-A-10288435-3-16229
Unable to get data. Code 403, Message: {"error":{"id":"d5163dd0-de03-4860-b6ff-475a1e12766c","code":"insufficient_scope","message":"access denied. Scopes required to access the resource: [trapi.data.historical-pricing.events.read]. Missing scopes: [trapi.data.historical-pricing.events.read]","status":"Forbidden"}}
0 -
The error indicates that this machine Id doesn't have permission to access the historical-pricing service.
"access denied. Scopes required to access the resource: [trapi.data.historical-pricing.events.read]. Missing scopes: [trapi.data.historical-pricing.events.read]","status":"Forbidden"
Please contact your LSEG account team or sales team directly to verify the permission.
You may also check the authentication request.
Set the scope in the body to trapi. The response will list all permissioned scopes.
If you have permission to access the historical pricing APIs, you should see the trapi.data.historical-pricing.xxx in the response.
0 -
In this situation, it might be necessary to contact the account manager to directly address this error.
Requesting your response.
0 -
Hello @guoshuai
Please check the Limitations and Guidelines for the RDP Authentication Service article on the "Session Limits" section. The error indicates that you already have one active session and you try to login with the Password Grant for other sessions.
You can invalidate the current active session by using one of the following methods.
- Set the takeExclusiveSignOnControl parameter to true when using the password grant with the /token endpoint. This parameter will kill the current session if the number of allowed sessions has been reached. Then, a new refresh token and access token are created and sent to an application. After that, the previous refresh token is revoked and can’t be used to renew an access token.
- Call the /revoke endpoint with the refresh token of the active session to invalidate the refresh token and access tokens associated with that refresh token
I hope this information helps.
0 -
Yacine TV (ياسين تيفي) has established itself as a prominent player in the digital entertainment arena as a streaming application. Recognized predominantly for its dedication to sports content, it caters to a specific demographic of sports enthusiasts, providing live streaming services with a particular emphasis on football (soccer). Live NetTV
0
Categories
- All Categories
- 6 AHS
- 37 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 中文论坛