tkim / emsx_api_repository Goto Github PK
View Code? Open in Web Editor NEWEMSX API Code Samples
EMSX API Code Samples
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?
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:
startAsync
the Session to run in a separate threadThe 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.
The fills
here is a sequence type, which cannot do fills.setElement()
directly.
Instead, one should obtain a fill first, by Element fill = fills.appendElement();
then, apply fill.setElement(...)
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.