oanda / v20-python

OANDA v20 bindings for Python
MIT License
225 stars 91 forks source link

How do I replace an Order (Python) #31

Open amthe opened 6 years ago

amthe commented 6 years ago

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 commented 6 years ago

Invalid value specified for 'OrderID'