Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enter orders and manage orders #7

Open
gunnvidd opened this issue Oct 5, 2016 · 1 comment
Open

Enter orders and manage orders #7

gunnvidd opened this issue Oct 5, 2016 · 1 comment

Comments

@gunnvidd
Copy link

gunnvidd commented Oct 5, 2016

Hi neka-nat and other contributors

Great project by the way,

I would like to trade a system that uses entry orders and not market orders. I therefore want to be able to add, delete and monitor entry orders (stop and limit orders) via python-forexconnect. I can´t seem to find a function for that.
I am not an educated programmer but I use python extensively. Can you lead me through the steps how I can add new functions and tell me which files in the library have to be modified etc? The reason I ask, is that I have been modifying some functions in python-forexconnect, i.e. add UsedMargin into function "client.get_trades()" by changing "ForexConnectClient.cpp", "ForexConnectClient.h.in", "pyforexconnect.cpp" but the modified function doesn´t return UsedMargin. Either my programming is bad or it is not that simple to modify functions. So I turn myself to you for some guidance.

Cheers, gunnvidd

@neka-nat
Copy link
Owner

Hi gunnvidd.
I'm sorry to reply late and thank you for trying improvement.

When I implement new function, first I check c++ example.
If you downloaded forexconnect api, you find some example on ForexconnectApi/samples/cpp.
I think you try to use TableManagerSamples/CreateEntry or ...
You can compare the sample code and ForexConnectClient::openPosition.

Do you fork this repository? I can also advice for it.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants