Sterling Trader Pro API

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

  1. akademiks

    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

    akademiks

    I found my solution...

    stiEvents.SetOrderEventsAsStructs(true);

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