Sterling Trader Pro API

Discussion in 'Automated Trading' started by akademiks, Mar 27, 2009.

  1. akademiks


    HI, i am evaluating the demo and i am trying to interface the COM library (SterlingAPI.tlb) with C#.
    My problem is that i cannot figure out how to handle events dispatched by the STIEvents object...I can instanciate it but after i am really lost.

    Someone have an idea?
  2. akademiks


    I found my solution...


    // Add STI event handlers
    stiEvents.OnSTIOrderReject +=
    new SterlingLib._ISTIEventsEvents_OnSTIOrderRejectEventHandler(OnSTIOrderReject);