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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    429 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    281 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    241 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    330 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    290 views
    0 likes
    Last Post CarlTrading  
    Working...
    X