Valid price range in orders

Added by Juha almost 8 years ago

Hi

I don't understand why the buy orders don't work.
I am trying to buy on the test system 100 stocks of NOK1V in price 3.8 euros.
The result is that it is too a low price, error message says
"price 3.800000 is lower than the range [36.000000, 49.500000]"
( yesterday the range was [4.0, 10.0], so where does this range come from ?? )

This is what I am doing:

1) get the markets for ticker NOK1V, from finland and trading in euros

https://api.test.nordnet.se/next/1/instruments?query=nok1v&type=A&country=FI

2) I get the list and I pick the one with NOK1V as a shortname, it contains:
<instrument>
<type>A</type>
<currency>EUR</currency>
<longname>Nokia Corporation</longname>
<marketname>OMX Helsinki</marketname>
<marketID>24</marketID>
<isinCode>FI0009000681</isinCode>
<shortname>NOK1V</shortname>
<country>FI</country>
<identifier>24311</identifier>
</instrument>

3) looks fine, then i do the trade ( nokia is trading 3.8 euros right now while writing this ):

https://api.test.nordnet.se/next/1/accounts/&lt;acc&gt;/orders?identifier=24311&marketID=24&volume=100&price=3.80&side=buy&currency=EUR

and the return is:

<orderstatus>
<orderID type="integer">498374</orderID>
<resultCode>ORDER_WRONG_PRICE</resultCode>
<orderState>LOCAL</orderState>
<accNo type="integer">9210177</accNo>
<actionState>INS_FAIL</actionState>
<message>price 3.800000 is lower than the range [36.000000, 49.500000]</message>
</orderstatus>

What is wrong here ?


Replies (1)

RE: Valid price range in orders - Added by Nordnet Simon almost 8 years ago

Juha wrote:

This is what I am doing

1) get the markets for ticker NOK1V, from finland and trading in euros

https://api.test.nordnet.se/next/1/instruments?query=nok1v&type=A&country=FI

Correct

2) I get the list and I pick the one with NOK1V as a shortname, it contains:
<instrument>
<type>A</type>
<currency>EUR</currency>
<longname>Nokia Corporation</longname>
<marketname>OMX Helsinki</marketname>
<marketID>24</marketID>
<isinCode>FI0009000681</isinCode>
<shortname>NOK1V</shortname>
<country>FI</country>
<identifier>24311</identifier>
</instrument>

Correct

3) looks fine, then i do the trade ( nokia is trading 3.8 euros right now while writing this ):

The price of NOK1V in PRODUCTION is 3.8 EUR. The price in the testsystem is something completely different ( I don't have access to historical prices in test so I can't verify what it was at the time).

The testsystem of NasdaqOMX is used by brokers and banks for various tests so the prices don't match production.

"price 3.800000 is lower than the range [36.000000, 49.500000]"
( yesterday the range was [4.0, 10.0], so where does this range come from ?? )and the return is:

The range is calculated in our system. It is based on the last price and have X percent up and down. This is our Fat Finger controll so users don't enter an order of 40EUR when they mean 4EUR. In test this is the last price of the TEST system.

In order to get the correct price in test you need to start a price subscription on the feed.

If you look at the current tick:


"{\"cmd\":\"price\",\"args\":{\"i\":\"24311\",\"m\":24,\"t\":\"price\",\"trade_timestamp\":\"2012-02-10 11:23:40\",\"tick_timestamp\":\"2012-02-10 11:23:40\",\"bid\":7.630,\"bid_volume\":3000,\"ask\":7.645,\"ask_volume\":944,\"close\":8.985,\"high\":45.00,\"last\":7.645,\"last_volume\":1,\"lot_size\":1,\"low\":7.575,\"open\":8.000,\"vwap\":7.734,\"turnover\":744002.155,\"turnover_volume\":96198}}" 


You can se att the last price now is 7.645 EUR but the highest during the day has been 45 EUR.

(1-1/1)