Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TD Ameritrade Connection No Longer Updates Bars

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

    TD Ameritrade Connection No Longer Updates Bars

    Ok So I have a multi-data series indicator that I use to watch stocks, about 3 months back or so my BRK_B stopped updating, figured it was something to do with the transfer to schwab so I never bothered with it, I would still get bid/ask but the bars would never update, today I attempted to fix it I changed the symbol mapping from BRK.B to BRK/B since I remember TOS used that, it worked started updating again got both bar updates and bid ask but I kept getting this error
    Error on requesting bars series: 'Object reference not set to an instance of an object.'

    so I switched the symbol mapping back to BRK.B, well the refresh on the mapping must have fixed it because I now got both bar updates and bid/ask with the default mapping of BRK.B
    but about 3 minutes later all stock instruments that use TD data stopped updating bars just like BRK_B was in the beginning before I refreshed the symbol mapping

    at a loss here not sure what to do now all data provided from TD just gives be bid ask and historical data live updates of bars have stopped, both market and historical preferred connections are for TD

    #2
    Hello KyleMcFar5​,

    Thank you for reaching out.

    We will need more information to review what may be occurring with your platform data.

    Please send in your log and trace files so that we may look into what may be occurring.

    You can do this by going to the Control Center-> Help-> Email Support

    Make sure to categorize your request at the top.

    Ensure 'Log and Trace Files' is checked will include these files. This is checked by default.

    If you could also provide a screenshot of what you are seeing, that would be appreciated.

    Thanks in advance, we look forward to helping resolve this issue for you.​
    Erick P.NinjaTrader Customer Service

    Comment


      #3
      Hey, you know what im going to put that on hold till morning because after i got everything working again and it stopped 3 mins later, was market close and td data stops updating at close but u still get bid/ask lol so now that i realize the time im pretty sure the refresh fixed brk b and everything works it was just so close to close that I thought it broke all the instruments, ill check tomorrow

      Comment


        #4
        Hello Kyle,
        Has your TDA acc been moved to Schwab already and able to keep using NT after that?
        I read in the forum that for accs that have been moved to Schwab then the TDA-API no longer works with NT.
        Thanks

        Comment


          #5
          Sorry i forgot to follow up, I believe my account has not transitioned yet since i still login through the TD website, but as for the symbol mapping I get live data through the BRK/B mapping but i get this error each time i connect to TD, the error is only on initial connection so ive just been ignoring it
          2/21/2024 3:48:08 PM Default Error on requesting bars series: 'Object reference not set to an instance of an object.'

          Comment


            #6
            Hello KyleMcFar5​,

            Thank you for your message.

            If you can dismiss that error and your indicators and charts load just as well, then you can dismiss as it does not seem to affect basic platform functionality.

            That message basically means there is an Indicator or other tool attempting to calculate from data that has not been loaded yet.

            In other words you are trying to access an object without instantiating it.

            This could be due to TDA not providing historical tick data until you connect, and maybe you have a component on a Chart that calculates by certain ticks ago. The message would no longer appear once the charts start loading with bars.

            That is just one example though.

            If you would like us to try to narrow down the cause of this error on your platform:


            Please send in your log and trace files so that we may look into what may be occurring.

            You can do this by going to the Control Center-> Help-> Email Support

            Make sure to categorize your request at the top.

            Ensure 'Log and Trace Files' is checked will include these files. This is checked by default.

            If you could also provide a screenshot of what you are seeing, that would be appreciated.

            Thanks in advance, we look forward to helping resolve this issue for you.​​

            Erick P.NinjaTrader Customer Service

            Comment


              #7
              it doesn't affect any functionality that i have found so far, ill test the instrument when the market opens tomorrow in safe mode, my indicators are custom, and i have almost everything encapsulated so if its coming from my indicator the exception is not being caught, or i may need to tweak some data checks, but as far as i know td does not provide historical tick data and i only request minute data, but from trace i noticed the null reference causes a second subscription request for the data

              2024-02-21 15:45:27:074 Cbi.Instrument.RequestBars (to Provider): instrument='AVGO' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:27:074 Cbi.Instrument.RequestBars (to Provider): instrument='AAPL' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:27:074 Cbi.Instrument.RequestBars (to Provider): instrument='LLY' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:27:074 Cbi.Instrument.RequestBars (to Provider): instrument='BRK_B' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:27:074 Cbi.Instrument.RequestBars (to Provider): instrument='NVDA' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:27:074 Cbi.Instrument.RequestBars (to Provider): instrument='COST' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:27:074 Cbi.Instrument.RequestBars (to Provider): instrument='GOOGL' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:27:079 Cbi.Instrument.RequestBars (to Provider): instrument='AMZN' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:27:079 Cbi.Instrument.RequestBars (to Provider): instrument='TSLA' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:27:079 Cbi.Instrument.RequestBars (to Provider): instrument='ADBE' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:27:079 Cbi.Instrument.RequestBars (to Provider): instrument='NFLX' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:27:079 Cbi.Instrument.RequestBars (to Provider): instrument='MSFT' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:27:079 Cbi.Instrument.RequestBars (to Provider): instrument='META' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:27:079 Cbi.Instrument.RequestBars (to Provider): instrument='JPM' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:27:079 Cbi.Instrument.RequestBars (to Provider): instrument='AMD' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:27:080 Cbi.Instrument.RequestBars (to Provider): instrument='UNH' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:27:080 Cbi.Instrument.RequestBars (to Provider): instrument='XOM' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:28:207 Cbi.Instrument.RequestBars (to Provider): instrument='AVGO' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:28:553 Cbi.Instrument.RequestBars (to Provider): instrument='AAPL' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:28:813 (Apex) Rithmic.Adapter.PnlUpdate: symbol='' Position.Use=True
              2024-02-21 15:45:29:174 Cbi.Instrument.RequestBars (to Provider): instrument='LLY' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:29:453 (My TD AMERITRADE) Tda.Adapter.BarsWorkerAsync4: instrument='BRK_B' Exception='System.NullReferenceException: Object reference not set to an instance of an object.
              at NinjaTrader.Tda.Adapter.<BarsWorkerAsync>d__92.Mov eNext()'
              2024-02-21 15:45:29:455 ERROR: Data.BarsSeries.DownloadFromProvider for instrument BRK_B: Object reference not set to an instance of an object.
              2024-02-21 15:45:29:487 Cbi.Instrument.RequestBars (to Provider): instrument='BRK_B' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:29:502 Cbi.Instrument.RequestBars (to Provider): instrument='BRK_B' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:30:242 Cbi.Instrument.RequestBars (to Provider): instrument='NVDA' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:31:223 Cbi.Instrument.RequestBars (to Provider): instrument='COST' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:31:223 Cbi.Instrument.RequestBars (to Provider): instrument='GOOGL' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:32:401 Cbi.Instrument.RequestBars (to Provider): instrument='AMZN' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:32:401 Cbi.Instrument.RequestBars (to Provider): instrument='TSLA' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:32:403 (Apex) Rithmic.Adapter.PnlUpdate: symbol='' Position.Use=True
              2024-02-21 15:45:33:177 Cbi.Instrument.RequestBars (to Provider): instrument='ADBE' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:33:209 Cbi.Instrument.RequestBars (to Provider): instrument='NFLX' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:34:407 Cbi.Instrument.RequestBars (to Provider): instrument='MSFT' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:34:409 Cbi.Instrument.RequestBars (to Provider): instrument='META' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:35:209 Cbi.Instrument.RequestBars (to Provider): instrument='JPM' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:35:253 Cbi.Instrument.RequestBars (to Provider): instrument='AMD' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:35:266 (Apex) Rithmic.Adapter.PnlUpdate: symbol='' Position.Use=True
              2024-02-21 15:45:36:251 Cbi.Instrument.RequestBars (to Provider): instrument='XOM' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:36:378 Cbi.Instrument.RequestBars (to Provider): instrument='UNH' from='2/21/2024 12:00:00 AM' to='2/21/2024 12:00:00 AM' period='1 Minute'
              2024-02-21 15:45:37:780 (Apex) Rithmic.Adapter.PnlUpdate: symbol='' Position.Use=True
              2024-02-21 15:45:38:997 (My TD AMERITRADE) Tda.Adapter.BarsWorkerAsync4: instrument='BRK_B' Exception='System.NullReferenceException: Object reference not set to an instance of an object.
              at NinjaTrader.Tda.Adapter.<BarsWorkerAsync>d__92.Mov eNext()'
              2024-02-21 15:45:39:588 (My TD AMERITRADE) Tda.Adapter.BarsWorkerAsync4: instrument='BRK_B' Exception='System.NullReferenceException: Object reference not set to an instance of an object.
              at NinjaTrader.Tda.Adapter.<BarsWorkerAsync>d__92.Mov eNext()'​

              Comment


                #8
                Ok, i tested it out on safe mode its not an indicator error, the BRK.B mapping provides historical data but not live data, BRK/B mapping provides live data but not historical data, each time you start a subscription to the bar series for BRK/B it gives the null reference error, issue is not on my priority list since i dont need historical data for this instrument i just need the live data for my indicator and doesn't seem to effect functionality of anything else

                Click image for larger version

Name:	image.png
Views:	20
Size:	41.2 KB
ID:	1292609

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by JoMoon2024, Today, 06:56 AM
                0 responses
                6 views
                0 likes
                Last Post JoMoon2024  
                Started by Haiasi, 04-25-2024, 06:53 PM
                2 responses
                17 views
                0 likes
                Last Post Massinisa  
                Started by Creamers, Today, 05:32 AM
                0 responses
                5 views
                0 likes
                Last Post Creamers  
                Started by Segwin, 05-07-2018, 02:15 PM
                12 responses
                1,786 views
                0 likes
                Last Post Leafcutter  
                Started by poplagelu, Today, 05:00 AM
                0 responses
                3 views
                0 likes
                Last Post poplagelu  
                Working...
                X