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

How do I replace an Order (Python) #31

Open
amthe opened this issue Oct 30, 2018 · 1 comment
Open

How do I replace an Order (Python) #31

amthe opened this issue Oct 30, 2018 · 1 comment

Comments

@amthe
Copy link

amthe commented Oct 30, 2018

I must say, I am not the best programmer. Can anyone help?
I want to replace the stoploss of Order 3204
data = {
"order": {
"units": "-1",
"instrument": "EUR_USD",
"price": "1.25000",
"type": "LIMIT"
}
}
api_order_limit_get_response = api.order.limit_replace(
accountID = "xxxxxxxx",
orderID = "3204",
data = data
)
print (api_order_limit_get_response.body['errorMessage'])

@amthe
Copy link
Author

amthe commented Oct 30, 2018

Invalid value specified for 'OrderID'

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

1 participant