Orders in LIMBO state, how to remove them?

Added by Jonas about 1 month ago

Placed a few orders and moved on to the next implementation phase, delete them.
Calling the API endpoint gave me an error message and now all the "deleted" orders are stated as
{
"volume": 100,
"price": {
"currency": "SEK",
"value": 89.1
},
"accno": 9210361,
"traded_volume": 0,
"side": "BUY",
"order_id": 1341774,
"modified": 1565007704145,
"order_type": "LIMIT",
"tradable": {
"identifier": "101",
"market_id": 11
},
"validity": {
"type": "DAY",
"valid_until": 1564760100000
},
"price_condition": "LIMIT",
"volume_condition": "NORMAL",
"activation_condition": {
"type": "NONE"
},
"order_state": "DELETED",
"action_state": "DEL_FAIL"
}

which seems to be som kind of limbo state. They still show up in the list orders endpoint with deleted=false and there is no indication why they where not deleted.
Also hitting the endpoint and try to delete them once more just gives the same result.

What to do?


Replies (3)

RE: Orders in LIMBO state, how to remove them? - Added by Nordnet Henrik about 1 month ago

To try to find out what the problem is, I would need a log of the commands you sent and the response you got back. Could you add that to your post?

BR,
H

RE: Orders in LIMBO state, how to remove them? - Added by Jonas 15 days ago

Placing an order and listing them:
{
"volume": 10,
"price": {
"currency": "SEK",
"value": 89.9
},
"accno": 9210361,
"traded_volume": 0,
"side": "BUY",
"order_id": 1342569,
"modified": 1567427187282,
"order_type": "LIMIT",
"tradable": {
"identifier": "101",
"market_id": 11
},
"validity": {
"type": "DAY",
"valid_until": 1567438500000
},
"price_condition": "LIMIT",
"volume_condition": "NORMAL",
"activation_condition": {
"type": "NONE"
},
"order_state": "ON_MARKET",
"action_state": "INS_CONF"
}

Sending a HTTP DELETE:
https://api.test.nordnet.se:443/next/2/accounts/9210361/orders/1342569
Response:
{"order_id":1342569,"result_code":"OK","order_state":"ON_MARKET","action_state":"DEL_PEND"}

Send to Private feed:
{"type":"order","data":{"order_id":1342569,"tradable":{"market_id":11,"identifier":"101"},"accno":9210361,"modified":1567427483074,"order_state":"DELETED","action_state":"DEL_FAIL"}}

New order listing ("Deleted" flag set to false):
{
"volume": 10,
"price": {
"currency": "SEK",
"value": 89.9
},
"accno": 9210361,
"traded_volume": 0,
"side": "BUY",
"order_id": 1342569,
"modified": 1567427483074,
"order_type": "LIMIT",
"tradable": {
"identifier": "101",
"market_id": 11
},
"validity": {
"type": "DAY",
"valid_until": 1567438500000
},
"price_condition": "LIMIT",
"volume_condition": "NORMAL",
"activation_condition": {
"type": "NONE"
},
"order_state": "DELETED",
"action_state": "DEL_FAIL"
}

(1-3/3)