Quote from ron23:
Heya,
Im very new, and im trying to use sterling api to get some quotes.
im using the demo version (i should recive an actual account in a week or so), vs2010 and c#.
im able to send and cancel orders, but for some reason im unable to get quotes, what am i doing wrong?
under form load
q = new STIQuote();
q.RegisterQuote("C", "*");
q.RegisterQuote("C", "NYSE");
q.RegisterQuote("C", "N"); // not sure about this.....
q.OnSTIQuoteSnap += new _ISTIQuoteEvents_OnSTIQuoteSnapEventHandler(q_OnSTIQuoteSnap);
q.OnSTIQuoteUpdate += new _ISTIQuoteEvents_OnSTIQuoteUpdateEventHandler(q_OnSTIQuoteUpdate);
and im not getting any events raised.
Thanks
i found the problems - >
A. u need to disable uac in windows 7
B. sterling api doesnot work with .net 4.0 but only with 3.5
and vs2010 automaticly chooses 4.0 so u need to change it manualy to 3.5.