Sterling API Developer Thread

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

  1. Hello guys,

    I'm having a problem connecting to the STIApp class.

    I get an exception no matter what I try. The exception reads:

    Retrieving the COM class factory for component with CLSID {56B7DAF0-5105-469A-BF74-2294CAC8479D} failed due to the following error: 80040154.

    I'm attaching the VS project so that you can try it for yourself. Thanks.
     
    #281     Feb 12, 2014
  2. #282     Feb 28, 2014
  3. Hi,

    Would anyone have an example of how to submit an option spread order with the Sterling API? When calling GetOrderList(), each leg of a spread order comes back as a different order (what a mess), together with an order for the actual order. Is that how they are supposed to be submitted as well? If so, in what "order" -- legs first, then the main order? Otherwise, how would the api know how many legs to wait for?

    Thanks
    /\/\}{
     
    #283     Feb 28, 2014
  4. It's a pity but I tried that. Changing the CPU and output settings do not fix the problem. I've dug a lot in the forums and other sites and the last thing that might work (didn't try it yet) is to compile on a 32 bit XP machine, but I have none at the moment, all are 7 or 64-bit versions.
     
    #284     Mar 5, 2014
  5. Nobody has a clue?
     
    #285     May 12, 2014
  6. Fixed it. Not an issue any more.
     
    #286     May 30, 2014
  7. Hello guys,

    i'm good at algorithms, c# and java, but the api guide is giving me trouble. Can someone shed some light on the SterlingLib.STIQuote and how to instance it to get current NBBO ask and offer? I'm going with the c# examples but the documentation is really terrible. Here is the code for now just to express the idea:

    namespace SterlingProject
    {
    using SterlingLib;

    public class MyStiQuotes
    {
    private STIQuote sterlingQuote = new STIQuote();

    public double ReturnNBBOAskPrice(string symbol, string markets = "")
    {
    sterlingQuote.RegisterQuote(symbol.ToUpper(), markets);
    return sterlingQuote.AskPrice;
    }

    public double ReturnNBBOBidPrice(string symbol, string markets = "")
    {
    sterlingQuote.RegisterQuote(symbol.ToUpper(), markets);
    return sterlingQuote.BidPrice;
    }
    }
    }

    Can someone lend a hand?
     
    #287     Jun 2, 2014
  8. fixed
     
    #288     Jun 3, 2014
  9. ssg10

    ssg10

    Hi all, I just installed Sterling demo and trying out the VB6 sample code and excel VBA sample.
    Both have problem when trying to create new object:
    Set quotes = New SterlingLib.STIQuote

    Run-time error '429'
    Activex component cant create object

    How to solve this issue? Thanks
     
    #289     Aug 25, 2014
  10. Very interested

    So I'm not a programmer at all and am completely lost as to how to get my strategies that I've automated in ninjatrader using ninja script. And covert them to sterling.

    I don't even know where to begin.

    So here goes the newbie questions

    1) what is an API in terms of trading

    Does it simply mean that you design something using VBA in excel and it can communicate with sterling??

    2) how hard is it to design something like a simple crossover strategy etc?
     
    #290     Aug 27, 2014