Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BarsRequest / Async

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

    BarsRequest / Async

    The BarsRequest Request method makes the requests for data Asynchronously but it doesn't expose any of the async stuff to the API.

    I'm fetching a load of data in the DataLoaded event and processing it, but the Strategy transitions to realtime before I'm done. It only caused an issue when one of my requests had to grab a few hundred thousand bars for one of my timeframes because price hadn't been in that region for months.

    I can manually code a semaphore to block the realtime event until I'm done, but Ideally the API should expose a way to wait for the request to complete, and also to cancel an in-progress request.

    #2
    Hello,

    Thank you for providing this information.

    I have forward this suggestion to development for further review.

    Please let me know if I may be of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by frslvr, 04-11-2024, 07:26 AM
    8 responses
    111 views
    1 like
    Last Post NinjaTrader_BrandonH  
    Started by stafe, 04-15-2024, 08:34 PM
    10 responses
    43 views
    0 likes
    Last Post stafe
    by stafe
     
    Started by rocketman7, Today, 09:41 AM
    3 responses
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by traderqz, Today, 09:44 AM
    2 responses
    5 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by rocketman7, Today, 02:12 AM
    7 responses
    31 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X