• Ask a question
  • Spaces
    • TT® Platform
    • Autospreader®
    • Autotrader™
    • Charting & Analytics
    • Options
    • ADL®
      • ADL Samples
    • RTD
    • APIs
      • TT .NET SDK
      • TT API & XT API
      • TT REST API
    • Cryptocurrencies
    • Topics
    • Questions
    • Articles
    • Ideas
    • Badges
  • Sign in
  • Home /
  • TT® Platform /
avatar image
0
Question by simonegiuliani · Jan 14, 2020 at 12:58 PM · TT.NET.SDK

Get MarketData on a batch of Instruments

Hi guys,

I was wondering if there is a way to programmatically build an instrument list (similar to what you call InstrumentCatalog but potentially without things such as product type/market id in common). And get the market data for all the instrument requested?

Something such as this:
InstrumentCatalog instrCatalog = new InstrumentCatalog();

instrCatalog.Add(new instrumentlookup("ICE", "C", "C Mar20");

instrCatalog.Add(new instrumentlookup("CME".....);

instrCatalog.Add(...)

instrCatalog.GetAsync(...);
Thanks


Comment
Add comment
10 |1800 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by trishmessina · Jan 14, 2020 at 02:38 PM

@simonegiuliani Hi. I'm not sure about what you are asking as it seems like the code snippet could do what you are asking about -- lookup the instruments individually, put them in a collection and them loop to subscribe to prices. I can see how one could want that optimized to do one request to pull data from our product server instead of the individual ones but it seems possible to do with what we have today. Are you looking for the optimization on the server request or something else?

Comment
Add comment Show 2 · Share
10 |1800 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image simonegiuliani · Jan 16, 2020 at 11:53 AM 0
Share

Yes, it was about the possibility to optimise the operation on the server or alternatively having the TT client sdk to provide this operation.

Thanks for your answer @trishmessina

avatar image trishmessina simonegiuliani · Jan 16, 2020 at 03:45 PM 0
Share

@simonegiuliani Its interesting. We can probably optimize the instrument lookups although we do optimize by saving the most recently used and loading them in bulk at startup so I'm not sure it would provide much improvement in performance unless these are new instruments each time. And then for the price subscriptions, are they all going to the same callbacks? Maybe if we had more details on the use case and specifically the problem you are seeing, it would be helpful (if you would care to share more).

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Community

Ask questions and share ideas about the TT® and X_TRADER® platforms.

First time here? See our Getting Started Guide and FAQs.

Follow

Follow this Question

Answers Answers and Comments

26 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

TT NET API wrong descriptions 1 Answer

How to get TradingStatus of instrument? 1 Answer

How do I cancel orders in TT.Net.SDK 1 Answer

how to indentify which edge server is connected 0 Answers

Creating App Keys for another user 2 Answers

Trading Technologies Home - Legal - Privacy - Contact

© 2017 Trading Technologies International, Inc. All rights reserved.

Powered by AnswerHub

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • TT® Platform
  • Autospreader®
  • Autotrader™
  • Charting & Analytics
  • Options
  • ADL®
    • ADL Samples
  • RTD
  • APIs
    • TT .NET SDK
    • TT API & XT API
    • TT REST API
  • Cryptocurrencies
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges