Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Access IB commodities vs securities excess liquidity

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

    Access IB commodities vs securities excess liquidity

    Hello,

    I am using a single IB account to trade securities and futures. IB really has two sub-accounts behind the scenes to manage margin, one for securities and one for commodities (futures). Is there a supported or unsupported way to access these values? I can see the value I want reported regularly in the IB gateway log, with my $ available for trading futures called "ExcessLiquidity-C" and my $ available for trading securities called "AvailableFunds-S". I would LOVE to be able to access these within a strategy to correctly manage my margin, as I use available liquidity to dictate position sizes. Any help is greatly appreciated!

    Thanks

    #2
    Hello RobotSyndicate,

    Thanks for your post.

    There is some limitation to what you can pull from IB regarding account information.

    You can use Account.Get() method and pull various account items.

    Here is a link to Account.Get(): https://ninjatrader.com/support/helpGuides/nt8/?get.htm

    Here is a link to what AccountItems you can pull: https://ninjatrader.com/support/help...ccountitem.htm

    Here is a link to what information you can pull by provider: https://ninjatrader.com/support/help...TheAccountsTab

    Note: We are aware of a current limitation regarding the ability to pull "initial margin" from IB and this is being worked s a bug we expect to resolve by the next release of NinjaTrader8.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Stanfillirenfro, Today, 07:23 AM
    6 responses
    21 views
    0 likes
    Last Post Stanfillirenfro  
    Started by navyguy06, Today, 09:28 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by DayTradingDEMON, Today, 09:28 AM
    2 responses
    15 views
    0 likes
    Last Post DayTradingDEMON  
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    8 responses
    31 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by helpwanted, Today, 03:06 AM
    2 responses
    22 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Working...
    X