Question regarding account orders endpoint

Added by Dennis almost 4 years ago

Hi,

I've noted a strange behaviour in the production environment but since this might be intended I'm asking it here.

When I ask for the daily orders using: https://www.nordnet.se/next/2/accounts/XXX/orders?deleted=false

I still receive one order with order state "DELETED"; this order also has an action state with "INS_FAIL" so there was an error while inserting the order. However is this still intended?
Do orders that are not properly inserted still show up in the orders endpoint even if I specify deleted=false?

Representation of the order returned from production when using ?deleted=false:

{Accno:XXX, OrderId:XXX, Price:models.Amount{Value:63.5, Currency:"SEK"}, Volume:0, Tradable:models.TradableId{Identifier:"XX", MarketId:XX}, OpenVolume:0, TradedVolume:0, Side:"SELL", Modified:1456158580405, Reference:"", ActivationCondition:models.ActivationCondition{Type:"NONE", TrailingValue:0, TriggerValue:0, TriggerCondition:""}, PriceCondition:"LIMIT", VolumeCondition:"NORMAL", Validity:models.Validity{Type:"UNTIL_DATE", ValidUntil:1467387300000}, ActionState:"INS_FAIL", OrderState:"DELETED"}


Replies (7)

RE: Question regarding account orders endpoint - Added by Dennis almost 4 years ago

I might add that I've worked around the problem but since it might be intended maybe that could be added to the spec.

RE: Question regarding account orders endpoint - Added by Dennis almost 4 years ago

Actually I've found the answer, the order was not deleted today.

RE: Question regarding account orders endpoint - Added by David almost 4 years ago

Answer
Reading documentation like lawyer this could happen if the order is deleted, but id was deleted before today:

*deleted*: Include orders deleted today

Your "Modified" timstamp indicates it was deleted yesterday on feb 22.

My own question
I was just going to ask about this api resosurce:

  1. what will happen over time, I mean if you trade algorithmic, the amount of orders could be gigantic. There is no truncation or pagination, just all orders ever entered?
  2. Is there a way to just get the currently active and unmatched orders?

Marty Saunders - Added by Marty 21 days ago

On occasion increasingly then the necessary number of delegates are accessible in affiliation and accordingly some of them must be removed. So such extra delegates were ousted from the chamber as showed up by portland printers In this manner, in the wake of losing their livelihoods it was simply unreasonably significant for the emptied agents, making it difficult to remove a meeting as a test on this discharge.

Lola Miles - Added by Marty 21 days ago

Fire are one ordinary event in unsettled areas with various spots where there is dry wood. The calamity, as west linn aesthetics shows us, may be credited to various typical reason or it can have some unnatural source. These flares cause an extensive proportion of individual mischief in boundless extents that contain these plants are singed and destroyed.

RE: Question regarding account orders endpoint - Added by Marty 21 days ago

Sending your line of votes is a responsibility which must be drilled by every person who is of that casting a ballot age. public speaking coach brings care among the all inclusive community for the act of this benefit. Nowadays one can rehearse this straightforwardly through different things, rather than taking off to the looking over corners on the assigned day.

RE: Question regarding account orders endpoint - Added by Marty 21 days ago

People who need jesus they continue to close with the jesus. They know whether they are near him then they can without quite a bit of a stretch get him anyway not all need to do this kind of Fibromyalgia tender points self test. I understand that right now endeavoring to end up being close to the jesus.

(1-7/7)