GithubHelp home page GithubHelp logo

emsx_api_repository's People

Contributors

rikclegg avatar tkim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

emsx_api_repository's Issues

ERROR_CODE on CreateAndRouteEx

Hello, Terry how are you?

I'm currently working on a project and i'm developing a trade system that will use the EMSX API. The main requests that will be using the are CreateOrderAndRouteEx and CancelRoute. By reading the documentation and also making tests on the API i faced some cases where my request got an error response.
For example:
Using CreateOrderAndRouteEx an order and try to cancel it after it was already filled. I got an ERROR_CODE 7 for my CancelRoute request.
Using CreateOrderAndRouteEx an order but one of the parameters of the strategy is wrong and the order wasn't routed. I got an ERROR_CODE
Where can i find which are the possible ERROR_CODES that those requests can receive as response?

Ways to stop a running Session from within

Hi, I have a pretty generic question about the EMSX code, thought I'd ask it here in case somebody else finds it useful.

The workflow of all the EMSX examples I looked at seems to be:

  1. Create an event handler object with a function to process events
  2. Create a Session object and pass the event handler as a parameter
  3. startAsync the Session to run in a separate thread

The Session thread keeps running until stop or stopAsync is called on the session object, which can only be done in the main thread. In C++ examples the Session thread seems to keep running until a keyboard interrupt. In Python examples, you use a global variable bEnd that you set from within a Session thread to prompt the main thread to stop the Session.

I can see how many users would want to stop the Session as soon as they received all the necessary data, not on keyboard interrupt. Global variable bEnd in case of Python provides some solution, but the mechanics of multi-thread access to this variable (given blpapi bind to C++ binaries) is unclear. Is there some other way to stop the Session from within or communicate with the main thread?

Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.