 |
ron23
Registered: Feb 2011
Posts: 9 |
02-28-11 03:15 PM
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
|
| |
|
Edit/Delete Quote Complain |
 
ron23
Registered: Feb 2011
Posts: 9 |
03-01-11 09:35 AM
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.
|
| |
|
Edit/Delete Quote Complain |

DGunz
Registered: May 2007
Posts: 77 |
03-15-11 11:45 PM
Sterling has a max send order rate of about 25 per second. Does Sterling give permissions to accounts to exceed that? I am waiting for a response from them but just in case their answer is..."no we wont up your send rate", how are some of you bypassing that limit, arent there any people that need to send >30 orders at a time? I do.
Forgive me if this has been resolved in the thread already.
Thanks.
|
| |
|
Edit/Delete Quote Complain |
 
BobbyMarcotte
Registered: Aug 2007
Posts: 8 |
04-14-11 07:31 PM
Hi, I would like to know if some of you have problems with the Event OnSTIPositionUpdate?
I have tested it and it wasnt stable. Sometime, it could go well for a lot of positionUpdates but sometime it stop to receive PositionUpdates Event for a certain period of time. I have this kind of problem in random manner.
Heres my vb.net code:
Public WithEvents stiPosition As STIPosition
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
stiPosition = New STIPosition
stiPosition.RegisterForPositions()
AddHandler stiPosition.OnSTIPositionUpdate, AddressOf DoWorkAtPositionUpdate
End Sub
Private Sub DoWorkOnSTIPositionUpdateXML(ByRef bstrPosition As String)
Dim xs As New XmlSerializer(GetType(SterlingLib.structSTIPositionUpdate))
Dim sr As New StringReader(bstrPosition)
Dim structPosition As SterlingLib.structSTIPositionUpdate = DirectCast(xs.Deserialize(sr), SterlingLib.structSTIPositionUpdate)
sr.Close()
AtPositionUpdate_SetPositionQuantityAndSide(structPosition)
End Sub
Is there something that needs to be change in it? Thanks guys
|
| |
|
Edit/Delete Quote Complain |

| Receive
an email whenever a new post is added to this thread by subscribing
to it. |
|
|
|
|