Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get realtime margin reqs?

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

    Get realtime margin reqs?

    Margins are listed here, but they also fluctuate: Margins NT

    How can I get intraday / initial margin requirements in realtime? I believe Account.Get(AccountItem.InitialMargin, Currency.UsDollar is how much of the margin i've spent but not the limit?

    #2
    Hello Skifree,

    The margin table that you linked to is provided by the brokerage and is not part of the values that the platform can observe through the account. You can only see your specific account values like the available margin your account has. If the instrument you are trading is contained in a risk template for the sim accounts you could use unsupported code to access those lists and get data from them. You would have to manually update that list if the insturment you trade is not by default in one of the lists that comes with the platform. https://forum.ninjatrader.com/forum/...26#post1205026

    Comment


      #3
      Ok so in short, it needs to be configured manually.

      What is the value I would get from Account.Get(AccountItem.InitialMargin). Is it the amount of margin required to open new positions or is it an amount remaining?

      Comment


        #4
        Hello Skifree,

        That gets the remaining initial margin on your individual account.

        Comment


          #5
          Maybe i'm looking at the wrong value. I want to ensure I always have 3x the margin limit and if not take actual to close positions. I was looking at this as pct of margin used/required but is it better to use excess initial margin here to ensure that negative PNL doesn't bring it down too low?

          Comment


            #6
            also, on that brokerage page is initial margin $ per quantity or total per account?

            Comment


              #7
              Hello Skifree,

              To know that you would need to multiply your accounts margin by 3 and compare that against the amount of margin you wanted. The Account.Get method gets values directly from your account. If your account had 1000$ of initial margin that would be the value the method returns. Its the same value you see in the accounts tab of the control center.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, Yesterday, 05:17 AM
              0 responses
              55 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              132 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              73 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              45 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              49 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X