Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Prevent "get_order_book error: 13" error (if no level II available)?

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

    Prevent "get_order_book error: 13" error (if no level II available)?

    Is there a way to prevent the get_order_book error: 13 error if the connection doesn't support level II data?

    Something like
    Code:
    #if MarketDataIsSupported
    protected override void OnMarketDepth(MarketDepthEventArgs e)
    {
     ...
    }
    #endif
    Attached Files

    #2
    Hello Heart,

    There is not a way to prevent that error if you try to make a subscription to level 2 data by using the override. To resolve this, you will want to reach out to your broker or market data provider and let them know that you would like Level 2 market data for the instruments that you are looking at and trading.​

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    156 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    90 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    140 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    130 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X