HOME FORUMS BROKERS SOFTWARE BOOKS CONTACT US
Elite Trader Your Account  •  Become a Member  •  Help  •  Search    
    Forums ›› Tools of the Trade ›› Trading Software ›› Sterling API Developer Thread  


Post A Reply
    Page 39 of 46:   « First Page   30  31  32  33  34  35  36  37  38   39  40  41  42  43  44  45  46  
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
WhiteOut56
 

Registered: Apr 2010
Posts: 392

 

03-01-11 05:45 AM

stiQuote.RegisterQuote(Stock, "*")
that pretty much works for me

    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
DGunz
 

Registered: May 2007
Posts: 77

 

03-19-11 09:36 AM

Nevermind, was able to have my broker ok the higher send limit.

    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 wasn’t 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.
Here’s 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
    Page 39 of 46:   « First Page   30  31  32  33  34  35  36  37  38   39  40  41  42  43  44  45  46  
Post A Reply


Receive an email whenever a new post is added to this thread by subscribing to it.
 
Rate This Thread:

Forum Jump:
 

 

   Conduct Rules  -  Privacy Policy  -  Day Trader -  Day Trader Forum -  Best Trading Software -  Sitemap Copyright © 2013, Elite Trader. All rights reserved.    
 
WHILE YOU'RE HERE, TAKE A MINUTE TO VISIT SOME OF OUR SPONSORS:
Advantage Futures
Futures Brokerage & Clearing
AMP Global Clearing
Futures and FX Trading
Bright Trading
Professional Equities Trading
CTS
Futures Trading Software
DaytradingBias.com
Professional Trading Analytics
ECHOtrade
Professional Trading Firm
eSignal
Trading Software Provider
FXCM
Forex Trading Services
Global Futures
Futures, Options & FX Trading
Interactive Brokers
Pro Gateway to World Markets
JC Trading Group
Direct Access Trading
MB Trading
Direct Access Trading
MultiCharts
Trading Software Provider
NinjaTrader
Trading Software Provider
OANDA
Currency Trading
optionshouse
Option Trading & Education
Rithmic
Futures Trade Execution Platform
SpeedTrader
Direct Access Trading
SpreadProfessor
Spread Trading Instruction
thinkorswim by TD Ameritrade
Direct Access TradingAdvertisement
TradersStudio
System Building & Backtesting
Trading Technologies
Trading Software Provider
Trend Following
Trading Systems Provider