Sterling API Developer Thread

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

  1. the code is a smaple project downloaded from sterling's web site. it's too long to post here on ET due to restrictions of the msg length.

    anyway, it is located in ../AX_Examples\Visual Basic 6.0\order

    thanks for the help.


     
    #101     Jul 9, 2008
  2. serg

    serg

    How to cast TVariantArray to structSTIQuoteUpdate in Delphi?

    According to the documentation the structSTIQuoteUpdate is passed to this event. Does anybody know how to read values from Params (TVariantArray)? I guess I need to read them here and assign to structSTIQuoteUpdate. Is there particular order of elements in the array?

    procedure TSTIQuote.InvokeEvent(DispID: TDispID; var Params: TVariantArray);
    …..
    FOnSTIQuoteUpdate(Self, {??structSTIQuoteUpdate}OleVariant((TVarData(Params[0]).VPointer)^) {var ??structSTIQuoteUpdate OleVariant});
    ….
     
    #102     Nov 24, 2008
  3. serg

    serg

    #103     Nov 24, 2008
  4. bespoke

    bespoke

    Anyone else having API problems with sterling these past 2-3 months? My API is ALWAYS getting disconnected. Quotes/sec go down to 0. Usually happens to both my accounts at the same time. I wonder if its sterling or my internet connection. I have to restart my ATSes a few times a day. Slow days might not have to, fast days it may be 10 times. and its only the api, not the platform.

    god I hate sterling.

    and did you guys capped to a max of 200 symbols a couple months ago? i was able to get a higher limit but it took days of complaining to sterling. why can't they upgrade their servers or software. i gotta pay money for this crap?

    at least you now have the option to combine backed up quotes. but that doesnt exactly help if you're collecting data (volume, t&s, whatever)....
     
    #104     Nov 24, 2008
  5. I've been having general quote hangups at the platform level lately, usually for just a few symbols. This has been making my programs complain to me. But it doesn't sound like what you're seeing. Also I connect to servers at Echo, not Sterling.
     
    #105     Nov 24, 2008
  6. crusoedev

    crusoedev

    The reason the quotes are slow in .NET is that it communicates through .Net Interop to the ActiveX componenet, which is horrendously slow, as documnted by Microsoft.

    I created a VB wrapper that handled all the events, bouncing them to my .NET app. Things improved significantly!
     
    #106     Nov 25, 2008
  7. sesimm

    sesimm

    Hey I am having a little problem that hopefully someone here can help me out with. I can install the sterling app no
    problem, I can then add a reference to my project and compile the code
    without problem. When I try and run and/or debug the app, as soon as
    it starts I get the error below.
    Retrieving the COM class factory for component with CLSID {8EB74552-C174-4D51-819B-9E65A8916273} failed due to the following
    error: 80040154. Apparently this means I don't have the appropriate file registered in my registry, but when I attempted to register it I get the follow error. The module "c:\Windows\System32\Sti\Sterling.tlb" may not compatible
    with the version of Windows that you're running. Check if the module
    is compatible with an x86 (32-bit) or x64 (64-bit) version of
    regsvr32.exe. The technical support guys thought then that I was running a 64-bit version of windows, which I am not. I am running Windows Vista Home
    Premium, 32-bit. Does anyone here know what the hell is going on with this? Thanks
     
    #107     Dec 16, 2008
  8. It might be Vista. Have you tried it on an XP machine? I use only XP for trading.
     
    #108     Dec 16, 2008
  9. sesimm

    sesimm

    No I haven't tried it on a XP machine. But I am starting to believe that it is a vista issue, because everything else seems to be fine. Is there anything else that might cause this error to occur? Thanks Shreddog
     
    #109     Dec 16, 2008
  10. trader21

    trader21

    Hi guys. I am new to Sterling and I currently execute Market orders through the API. I use VB6.

    I want to access quotes (bid, ask) in my code and to be able to automatically send limit orders based on my criteria. I haven't found an example where I can do that. Any idea?

    Again, I appreciate your help since I am new to this.
     
    #110     Dec 16, 2008