Sterling API Developer Thread

Discussion in 'Trading Software' started by mnx, Apr 25, 2008.

  1. ron23

    ron23

    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.
     
    #231     Mar 1, 2011
  2. DGunz

    DGunz

    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.
     
    #232     Mar 15, 2011
  3. DGunz

    DGunz

    Nevermind, was able to have my broker ok the higher send limit.
     
    #233     Mar 19, 2011
  4. 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
     
    #234     Apr 14, 2011
  5. Has anyone had issues with memory leaks while using the Sterling API? I have a fairly simple implementation which seems to have a memory leak. Nothing I am doing should really be causing the leak (plus im using managed code), I was wondering if anyone else had any experience with this?
     
    #235     Apr 26, 2011
  6. jrt88

    jrt88

    Sorry to intrude on this thread if this is the wrong place to post this type of request.

    Can anyone refer me to a Sterling Trader Pro API developer/coder who has built any "Order Managment" tools to work with Sterling? Order Management functions would mainly consist of canceling when certain customizable parameters were met.

    Thanks much.
     
    #236     May 6, 2011
  7. What is the STIOrderUpdate struct for exactly? Just a periodic update on what's going on with a live order? Will I receive this for orders that have been rejected?
     
    #237     Jun 1, 2011
  8. Wait, is this how I acknowledge cancels? I'm trying to map the events accordingly. Sorry for thread spam.
     
    #238     Jun 1, 2011
  9. I need help trying to receive the "Too Late to Cancel" message.

    Was anyone out there able to get the demo system to send their API messages for "Too Late to Cancel" on the test symbol KO? I see the message in the notification log, but never see it show up in a reject message of any kind at all. I tried a few different methods, but it just never shows up as a reason code.

    - The sample API never shows it being processed
    - Open source projects like TradeLink don't even handle this scenario.

    I guess my concern is that if I have to create a new client order ID to track a cancel and I don't get a successful cancel, I'll have a useless record sitting around in memory that I can't clear unless some kind of other order status tells me this cancel is officially dead.

    Any help at all would be appreciated.
     
    #239     Jun 3, 2011
  10. dextrin21

    dextrin21

    What is a QuoteSnap and why does it take forever to get an event nofication that it updated?
     
    #240     Sep 15, 2011