Skip to content

How do I replace an Order (Python) #31

@amthe

Description

@amthe

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'])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions