Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

receive of trades through the API

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

    receive of trades through the API

    Hi,
    We developed an indicator, which requires trades and depth data. It overrides methods:
    OnMarketDepth()
    OnMarketData()
    The problem is that sometimes it takes minutes until the first data event arrives into one of these methods. After that everything works as expected. Please note, this indicator does not require any historical data. What chart and indicator settings do we need to use to begin receiving the data as fast as possible without delays?

    Sergey

    #2
    Hi Sergey, the event would be given to you through those methods whenever it's broadcasted by your datafeed provider. The chart time frame would not have an impact on this outcome (only the OnBarUpdate() itself would be tied to the bar update timings). It would also depend on the activity of your market monitored if events are generated or not.

    Comment


      #3
      Hi Bertrand,

      We have detected the problem. Out indicator actually starts a small external UI application during OnStartUp(). This takes some time ~50 milliseconds. We noticed that the first updates OnBarUpdate, OnMarketDepth, OnMarketData - begin to arrive few milliseconds before that application is fully loaded.

      We resolved it by adding Thread.Sleep(100) at the end the OnStartUp().

      Thanks
      Sergey

      Comment


        #4
        Thanks for sharing that update, glad to hear.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        558 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X