• 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 /
  • APIs /
  • TT API & XT API /
avatar image
0
Question by kedarnath97 · Aug 23, 2017 at 07:27 AM · X_TRADER® PlatformX_TRADER API

Subscribing to multiple instrument prices using Universal login in XTAPI.,How to subscribe to multiple instrument for prices using universal login in XTAPI?

I have an application that subscribes to prices for multiple instruments.
The app is working fine, getting the prices for all the subscribed instruments.
The app is currently working without universal login.
I recently changed the app to use Universal login and subscribe to prices.
But I am getting price updates only for the first instrument.
Is there any sample code that fixes my problem?

Thank you for your help.
Kedar.

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Zack · Aug 23, 2017 at 02:39 PM

Hello Kedar,

There should not be a difference between the two logins as far as getting prices goes. It is possible a small unrelated change may have caused this.

How far does your application get with the other instruments? Is it able to look them up and start a price subscription? If you make one of the other instruments first does it only look up that one?

Thanks,
Zack

Comment
Add comment · 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
0

Answer by kedarnath97 · Aug 29, 2017 at 05:44 AM

Hi Zack
Thank you for your response.
I am not explicitly subscribing prices for the products.
I am using XTAPI and creating a instance of TTInstrNotify and TTInstrObj and subscribing to events such as OnNotifyUpdate and OnNotifyFound.
And I am doing TTInstrObj.Open() for every product for which I am creating these instances for.
I have a TTGate instance on a global level, I need this because I need to EnableServerMode() before setting UniversalLogin(,).

I tried to make it clear, please let me know if you face difficulty in understanding above sentences.

Thank you
Kedar

Comment
Add comment Show 1 · 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 kedarnath97 · Aug 29, 2017 at 05:53 AM 0
Share

I am getting callback thro the NotifyFound only for some of the legs.

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

17 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

Related Questions

XTAPI: CFE VX Last-Traded price giving incorrect prices 3 Answers

Anyone had any recent success connecting MatLab to X_Trader API? 1 Answer

Invalid Order Object error XTrader API 3 Answers

How do you get block trade feed form ICE/CME via XTAPI (without parsing text exchange gateway messages)? 0 Answers

Fill TimeStamps for XTAPI 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