Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

IB account liquidity

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    IB account liquidity

    Hi,

    Can ninjatrader actually get account netliquidity data from interactivebroker ?
    I wonder if I can write a NT script to grab the data and save it to file.

    #2
    Hello ssg10,

    Thanks for writing in.

    This is unsupported however you can review the link below for information on how to do this.
    BrandonNinjaTrader Customer Service

    Comment


      #3
      Thank. I think it is pretty helpful.

      Is there any way that ninjatrader script can send data to external C# winform program?

      I am trying to save netLiquidation data from IB accounts into file by writing external C# winforms program. However, it keeps complaining that IB is subscribing to account update (errro 2101: Unable to subscribe to account as the following clients are subscribed to a different account.) which prevents my winforms program to subscribe using reqAccountUpdate() IB API.

      Now, if it is true that IB only allows one connection to account update subscription, then I need to figure out if there is a way for ninja to send the account data (netLiquidation) to my external program.

      Any take?

      Comment


        #4
        Hello ssg10,

        I would recommend reviewing the following forum topic on this.
        BrandonNinjaTrader Customer Service

        Comment


          #5
          Hi,

          So I spoke to IB tech support on the API, reqAccountUpdates()
          They said if Ninjatrader does not "unsubscribe" after subscribing for the reqAccountUpdates, then nobody can use the reqAccountUpdates API anymore other than Ninja.

          Can you double check with NT engineering team if this is true?
          If true, I think for robustness in software, NT should unsubscribe after receiving the data it needs, so others can use the connection.

          Thanks

          Comment


            #6
            Hello ssg10,

            Thanks for your reply.

            NinjaTrader will only unsubscribe from this after a disconnect. Are you having this prevent other systems from accessing this?
            BrandonNinjaTrader Customer Service

            Comment


              #7
              Hi Brandon,

              "NinjaTrader will only unsubscribe from this after a disconnect. Are you having this prevent other systems from accessing this?"

              Yes. If NT keeps subscribing, IB TWS will not let other software or systems to subscribe.
              I have talked to IB API tech support for that.
              In a way, I hate to say that it is not a good programming practice to "hog" up the resource.
              However, please double check with your developers.

              Thanks.

              Comment


                #8
                Hello ssg10,

                Thanks for your reply.

                I had previously checked with development and NinjaTrader does not unsubscribe until you disconnect. I do not have any reports of this causing issues from any users. Are you see an issue with this? Please provide details to what exactly the issue is you are seeing and how to reproduce for development to look into this.
                BrandonNinjaTrader Customer Service

                Comment


                  #9
                  Here is how to duplicate the issue:

                  1. Connect NT to IB.
                  2. In your own VB.net windows form, connect to IB via IB TWS activeX API, connect(). Use client number other than NT (of course)
                  3. Call the following API in your VB.net form (use button or something):
                  AxTws1.reqAccountUpdates(1, "your_IB_account_number")

                  IB returns error in their err event (AxTws1.errMsg):
                  "Unable subscribe to account as the following clients are subscribed to a different account.{0}-"

                  Note: I am using real money account on IB. Not demo account.

                  {0} above is NT client ID for IB.

                  Thanks

                  Comment


                    #10
                    Hello ssg10,

                    Thanks for your reply.

                    Development will look into this and take into consideration any changes that can be done for this in NinjaTrader 8.
                    BrandonNinjaTrader Customer Service

                    Comment


                      #11
                      Thanks. Please keep me updated.

                      Comment


                        #12
                        Update?

                        Hi,

                        Just checking. Has Ninjatrader 8 incorporated any fix to this issue?

                        Comment


                          #13
                          Hello ssg10,

                          Thanks for your post.

                          I do not have information about this functionality in NinjaTrader 8.
                          NinjaTrader 8 is available in beta to download and test that you can test this NinjaTrader 8 on your end: http://ninjatrader.com/PlatformDirect
                          BrandonNinjaTrader Customer Service

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by Shansen, 08-30-2019, 10:18 PM
                          24 responses
                          942 views
                          0 likes
                          Last Post spwizard  
                          Started by Max238, Today, 01:28 AM
                          0 responses
                          9 views
                          0 likes
                          Last Post Max238
                          by Max238
                           
                          Started by rocketman7, Today, 01:00 AM
                          0 responses
                          4 views
                          0 likes
                          Last Post rocketman7  
                          Started by wzgy0920, 04-20-2024, 06:09 PM
                          2 responses
                          28 views
                          0 likes
                          Last Post wzgy0920  
                          Started by wzgy0920, 02-22-2024, 01:11 AM
                          5 responses
                          33 views
                          0 likes
                          Last Post wzgy0920  
                          Working...
                          X