Sterling API Developer Thread

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

  1. nightrate

    nightrate

    Got 'er done!

    ...but no hair left
     
    #211     Aug 11, 2010
  2. New user to the site, and was hoping to learn about Sterling's API. I just wrote this code to get the date from the Sterling server. But isn't returning anything (technically, it is returning "")

    Anyone have an idea what I might be doing incorrectly?
    Thanks

    Private Sub GetTodayDate()
    Dim STIApp As SterlingLib.STIApp
    With STIApp
    TodayDateString = GetServerTime
    End With
    End Sub
     
    #212     Sep 28, 2010
  3. Breaker

    Breaker

    You have to instanciate your StiApp Object before using it. Try this :

    Private Sub GetTodayDate()

    Dim STIApp As SterlingLib.STIApp
    Set STIApp = New STIApp

    TodayDateString = STIApp.GetServerTime

    End Sub
     
    #213     Oct 21, 2010
  4. Hi Nightrate,

    Can you share the solution for connecting Ninjatrader to Sterling?

    thanks,

    Walter

     
    #214     Nov 26, 2010
  5. eqty168

    eqty168

    Hi just a quick question for your pros out there. I am using vb2010 trying to get a constant update of bid and ask price of a stock. Please advise on the code structure :) Thank you
     
    #215     Dec 10, 2010
  6. if you are familiar w/ programming sterling in vb.net. PM ME. I will pay you for your help

    Thanks
     
    #216     Jan 7, 2011
  7. Send PM to you.
     
    #217     Jan 7, 2011
  8. With sterling I'm programming in vb.net. I notice is says that you really should be programming in VB6, as there is some compatibility issue.


    anyone have luck w/ this in vb.net

    Thanks
     
    #218     Jan 7, 2011
  9. Superfly

    Superfly

    if you use sterling's sample code it works just fine in .net
     
    #219     Jan 7, 2011
  10. My understanding is the quotes will be limited to about 1500/sec in .net. I think there's some info on this at the beginning of this thread. FWIW, all my code is in .net, it runs fine.
     
    #220     Jan 7, 2011