Search results

  1. T

    ANVIL API (Assent) Developer Thread

    Right, if you're using an MFC dialog then the MFC framework hooks your dialog into the parent window's message pump. It's very convenient, because it also takes care of the cleanup. You do not need to use SetWindowsHookEx with MFC. The first time I tried using the API I created a generic...
  2. T

    ANVIL API (Assent) Developer Thread

    Hi ootbt08, Welcome to the thread. If you are following the examples then your dialog is an MFC dialog, correct? When you created this dialog, it actually hooked into the main windows thread of Anvil, and MFC will gracefully unhook it as well when you shut down your application. So as...
  3. T

    ANVIL API (Assent) Developer Thread

    I don't believe so, but don't quote me on that.
  4. T

    ANVIL API (Assent) Developer Thread

    Most of what I know has come from trial and error trying to develop with the API. ctarmor-et has been very helpful, as well. Some of the info came from Marc Hodakowski at Assent -- he's their Managing Director (of Software, I believe). He seems to be a decent guy, but it's really hit or miss...
  5. T

    ANVIL API (Assent) Developer Thread

    One thing to check: Make sure that you're using 1. The Debug build of ExtExample AND the Debug build of Anvil. OR 2. The Release build of ExtExample AND the Release build of Anvil. Mixing them up will cause problems.
  6. T

    ANVIL API (Assent) Developer Thread

    Yeah, I don't know about the Express Edition, either. I would THINK it would work, but that's just a guess. Most of what is missing involves resource editing, etc.
  7. T

    Genesis API - Stop Orders

    I'm using the Genesis API and I'm unable to place Stop or Stop Limit orders. The orders are being rejected by the server with an "@UNSUPPORTED" message. Has anyone out there been able to place Stop or Stop Limit orders via the API? If so, what parameters did you use in your order object...
  8. T

    ANVIL API (Assent) Developer Thread

    Did you ever track this down to a root cause? I'm having issues occasionally where Anvil doesn't recognize that it's lost connectivity with the server (usually the Market Summary server.) I just stop receiving data. If I go into the settings, Accounts tab, and change the Summary Server, I...
  9. T

    ANVIL API (Assent) Developer Thread

    It sounds to me like this has something to do with your project settings -- it's not an API specific problem. Off the top of my head, I couldn't tell you what is wrong. If you wanted to zip up your entire project and send it to me, I might be able to help. You can PM me if you want.
  10. T

    ANVIL API (Assent) Developer Thread

    Hey, The Observable and Observer classes are part of a design pattern called Subject/Observer (or Observable/Observer, or Subject/Listener, or the like.) Many things in the API are observable, meaning that you can attach an Observer class to them and when the Observables change a...
  11. T

    ANVIL API (Assent) Developer Thread

    OK, I've been watching for these messages for a couple days, now. Today I received them when the Market Receiver went down right at the close. It seems to follow the pattern that you mentioned. Since these are coming from the Account Observable it might not affect your receipt of data but I...
  12. T

    ANVIL API (Assent) Developer Thread

    Just talked to Assent... There is no way to get rid of the popup verifying the account's legitimacy. That's a compliance issue. There's probably no way to suppress the "simulation" popup, either, but they're checking. Looks like I need to use the system service... And they're checking on...
  13. T

    ANVIL API (Assent) Developer Thread

    Yeah, I've done that, my account name and password are stored in the .ini file. Anvil does log me in automatically... The problem is the popup that occurs after the login screen. Even with account info in the .ini file, Anvil still stops and waits for an acknowledgement.
  14. T

    ANVIL API (Assent) Developer Thread

    Hey, anyone know how to suppress the popup message that comes up when Anvil is started? If it's in simulation mode, it asks you whether you want to be in simulation mode, and if it's a live account, it asks you if you're an authorized user. Both of these are interfering with me starting...
  15. T

    ANVIL API (Assent) Developer Thread

    I'm sorry, I misread your question... I thought you were receiving this messages from the Admin observable, not the Account observable. I'm actually not observing the Account observable, so I didn't receive either message today. If I get a chance, I'll add a listener to the Account...
  16. T

    ANVIL API (Assent) Developer Thread

    I'm not sure that the working folder matters... I thought about that, but the path to the DLL folder is explicit. But you just made me think of something... Maybe it isn't even finding Anvil.ini. I'll try moving it to system32 and seeing if that helps. Thanks! I have tried to attach to...
  17. T

    ANVIL API (Assent) Developer Thread

    I haven't noticed them, but I haven't been looking for them, either. Tonight I'll add trace statements to see if I'm getting them and we can go from there.
  18. T

    ANVIL API (Assent) Developer Thread

    I can run Anvil in service mode, but I'm finding that it's not loading my DLL, which it does during a normal logon... Any ideas? Anyway, I'm still debugging, so I would like to run it from the debugger. If I start it before the servers shut down and let it run all night, it properly...
  19. T

    ANVIL API (Assent) Developer Thread

    pandabear, while re-reading this thread, I realized I wasn't very clear in my response to your question about creating another window. I thought that elaborating a bit might help new users of the API get started. If you are programming in MFC, you can create a CDialog. CDialog's don't...
  20. T

    ANVIL API (Assent) Developer Thread

    Anyone know how to start Anvil during the off hours, so that when the servers come up in the morning it will automatically log in? I've been trying to use the A/no password login and tell that to pre-load another account, which looked promising... But when the morning rolls around, it always...
Back
Top