• 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 petermueller12341 · Jan 29, 2020 at 10:20 PM · TTAPI

ApiInitializeHandler callback no account list

Hello,
i am writing a test app for .NET SDK. Have one user which can access to 2 accounts.
I can connect to .NET API and also my
TTAPI ApiInitializeHandler callback is called.

Unfortunately, i get no account information.
The TTAPI.Accounts is empty.

public void ttNetApiInitHandler(TTAPI api, ApiCreationException ex) {

 ...

IReadOnlyCollection<Account> accounts=api.Accounts; foreach (Account acc in accounts) { }How do i get correct account list ?
Thank you

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 swatijain · Jan 29, 2020 at 10:42 PM

@petermueller12341 You will have to Start the Api before you can use the API. For further details please refer to the documentation.

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 petermueller12341 · Jan 30, 2020 at 01:08 PM

Thank you,
TTAPI.Start() made it. Thank you.

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

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

25 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

Related Questions

Which version of Microsoft Office is best supported By TT and Xtrader? 1 Answer

Trouble running TT from my VPS. 1 Answer

Is there a order flow that works with the TT platform? 2 Answers

Does TT Platform integrate with MATLAB (a-la X_TRADER)? 1 Answer

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