ANVIL API (Assent) Developer Thread

Discussion in 'Trading Software' started by ctarmor-et, Dec 10, 2007.

  1. You need to go into project settings and select the "Debug" tab. there you need to set up the executable to run to debug the extension. Pick "C:\Prog files.....\Anvil.exe"

    Once you ext is loaded you'll be able to debug into it ...
     
    #91     May 9, 2008
  2. Thank you for your response.

    In Visual Studio I go to Project >> AnvilTrader Properties. I see a tab under Configuration Properties Called "Debugging" and also under Configuration Properties >> Linker "Debugging". I'm not sure what exactly to enter, and don't see a Anvil.exe

    Also I have downloaded the project Anvil Trader on my desktop, does that need to be in C:\Program Files\Assent LLC\Anvil 2.6.7.87?

    Thanks
     
    #92     May 9, 2008
  3. You are looking for "external program"


    You need to download ANVIL on your machine. You can only debugg the extension in ANVIL ...

    This seems basic IDE debugging dlls. I suggest to look on the VS help for "Debuggin your dll" ... it wil tell you exactly how to do it ...
     
    #93     May 9, 2008
  4. first

    first

    Hello guys/gals,

    DO any of you have idea on how to get the pre market indication via API?

    Is it just regular qoute of NYSE bid/ask before market opening or should I use specific functions in businessapi.h, following looks promissing:

    Observable* WINAPI B_GetPreMarketIndicationObservable();
    const Money& WINAPI B_GetPreMarketIndicationBid(Observable* level1);
    const Money& WINAPI B_GetPreMarketIndicationAsk(Observable* level1);


    Thanks in advance...
     
    #94     May 13, 2008
  5. Sorry, I did not see this post ...

    I am not familiar with these APIs. You do get pre-market quotes through the regular stock observables

    What indicators are you looking for ?
     
    #95     May 14, 2008
  6. ctarmor... I just want to say first ty very much for keeping this thread going.


    I had 1 quck question. How exactly do you run mult strats?

    Do you create multiple programs and run them as multiple connections?

    Thanks in advance
     
    #96     May 27, 2008
  7. No prb...

    Remember AVNIL is single threaded.

    I would have multiple threads that process each strategy code. You can get fancier and create memory shared, etc .. to have multiple processes from one instance of anvil.

    You can also have mutliple anvil instances. each one with one diff extension for each strategy ... although this becomes slow if to many are running on one machine...

    All your order need to be send to the main gui thread..I use postmessage with custom messages. I also have a hook inot the main GUI thread to monitor other things and able to process my own custom messages ...

    I hope this helps ...
     
    #97     May 27, 2008
  8. RedRat

    RedRat

    Hi all,

    Could you please help me, how can I cancel the existing limit order in the Assent API? And how can I receive "CANCELED" state from the server.

    Thank you in advance.
     
    #98     Jun 13, 2008
  9. Once you have the pointer to the order you can call Cancel() (I think).

    Another user sent me a PM. He is using the orderid. Here is an excerpt:

    "..id as a key in an associative array (a std::map I think), where the value is the Order pointer. Works like a charm."

    I do not per say check if an order got cancelled. I check for pending orders for certain equity. If any order is returned, then I'll send another cancel. I have much complex logic for my cancellations but it is something like that.
     
    #99     Jun 13, 2008
  10. ootbt08

    ootbt08

    I've written a few small extension's for the Anvil app and now I'm at a point where I need to add threading. I've worked with threading before but never in a windows environment.

    I'm wondering if anyone would have a sample dll that they would be able to share that would show the basics of hooking into Anvil and generating a few threads.

    Currently all of my apps follow the samples provided by Anvil. For the most part I have the main dll that creates my main dlg window. My dlg window class is an Admin, Idle, and Account observer. Then I have a map that stores each symbol that I'm interested in and each of those are level one observers. It's from this symbol class that I also place my orders.

    I'm also interested in finding a book or web resource that might help a beginner like me with this.

    Any help would be greatly appreciated!
     
    #100     Jun 16, 2008