question

Upvotes
Accepted
36 4 6 10

Tick History API: Sample java code to create a "Tick History Market Depth-->Legacy Market Depth" report

Tick History API: Sample java code to create a "Tick History Market Depth-->Legacy Market Depth" report

https://developers.refinitiv.com/en/api-catalog/refinitiv-tick-history/refinitiv-tick-history-rth-rest-api/tutorials#rest-api-tutorial-5-on-demand-market-depth-extraction


Could you please provide us sample java code to create TickHistoryMarketDepthExtractionRequest using view NormalizedLL2.

javatrth-rest-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hello @Vinod A ,

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

-AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,
AHS

Upvotes
Accepted
32.2k 40 11 20

Hello @Vinod A ,

Rigged an RTH MarketDepth Java example, please find it attached- let me know if this is what you are looking for:

DSSOnDemandMarketDepth.20220804.zip


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
32.2k 40 11 20

Hello @Vinod A ,

We provide Tick History starter Java samples for developers as RTH Java Code Examples, the most common requests are included, rather then every available RTH request.

The Java handling of other HTTP REST requests, once the request and the response for the specific request are understood, is analogous.

To better understand Market Depth request, please refer to tutorial REST API Tutorial 5: On Demand market depth extraction.

The approach to implement MarketDepth or any other not included request in Java is:

  1. To verify the request that is required, this best done with Postman. Postman starter example collection available as RTH REST Tutorials Postman collection includes Market Depth request, that can be copied and used a starting point, updated with a required instrument and required fields, and result verified.
  2. Copy one of the Java code examples (I would copy DSSOnDemandIntradayBarsRTH) and modify the request to be the valid MarketDepth that is required.

Does this approach make sense, if this is how you proceeding, are you running into issues tuning the required MarketDepth request or when you apply the verified request?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.