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
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
- 557 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
- 653 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
- 229 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 中文论坛