Sterling API Developer Thread

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

  1. bump
     
    #201     Apr 24, 2010
  2. cloned

    cloned

    try to start sterling trader pro first, and then to start the program



     
    #202     Apr 29, 2010
  3. I was doing that the entire time. I should have updated this thread, I had to run the program and sterling from a non windows 7 computer. I don't understand that all, but it works perfect on XP. I am just using VMWare workstation so I can run it on my new computer...go figure. :confused:
     
    #203     May 2, 2010
  4. Hi,

    I'm new to sterling and would like to code in the API. I do not know Visual Basic, however I know C++ and have coded in other APIs

    I have downloaded the sample programs.

    Which is do most people use or is recommended?

    AX_Examples?
    DDE_Examples?
    or VB.Net examples?

    Also I'm using Visual Studio 2008. Is that good?

    Also any other information with regard to how to get started out be appreciated.

    Thanks
     
    #204     May 3, 2010
  5. Superfly

    Superfly

    It depends on what you want to do. You can start with the SimpleSendOrderDemo example in the VB.NET folder. I have also used the Quotes example in their VB folder.

    VS 2008 is perfect.
     
    #205     May 28, 2010
  6. nbates

    nbates

    Sterling API needs a few things and the same ones I pointed out to them 3 years ago...they said the software is "complex" and I suggested, give me the code and I'll give it back to you by the end of the day with all the new features;

    a) SetPrimaryIP(Address, Port)
    b) SetSecondary(Address, Port)
    c) SetCredentials(Username, Password)
    d) SetAutoReconnect(bool Enabled = TRUE)
    e) AutoLogin(bool NoSplash = TRUE)
    f) fix LastFlag on positions spin
    g) bring Error enum's up to date [from the API most of them are bogus]
    h) fix ReplaceOrder it still doesn't work
    i) make risk real-time in the OMS so back-to-back sell + short in under 500ms does not reject with "can't short you're still long"
    j) learn how to handle 10,000 messages a second instead of 100
     
    #206     Jun 9, 2010
  7. bespoke

    bespoke

    What's wrong with replaceorder?

    My workaround for the auto-reconnect is to use the windows api to relog back in with a bunch of FindWindow and SendMessage functions. If the primary doesn't work it will then try the secondary.

    Not ideal but it works.

    Ya, it would be nice to be able to send over 200 orders a second (that seems to be my max). More importantly, cancel 200 orders a second. But I don't see that happening any time soon...
     
    #207     Jun 9, 2010
  8. nbates

    nbates

    I hear ya', not in 3 years and not anytime soon and why I've done 5 other API's, but people still flock to Sterling so I don't want to be left out :)
     
    #208     Jun 9, 2010
  9. nightrate

    nightrate

    I am pulling my hair out trying to figure this out...

    How can NinjaTrader (which uses C#) be connected to Sterling Trader Pro??

    (Ideally, life would be great if code could be inserted into a NT strategy to link it to STP... is this possible? If not can someone please provide any help?


    (hope to have some hair left after all this is done)
     
    #209     Jul 16, 2010
  10. chenggong

    chenggong

    Hello everyone,
    I want to know whether there is a limitation of function RegisterQuote.I use RegisterQuote to register more than 400 symbols, but in the cQuotes_OnSTIQuoteSnap Event ,there is only 100 symbols will be got.

    Thanks for everyone's reply ,thank you very much:)
     
    #210     Aug 4, 2010