BitShares Forum

Main => Technical Support => Topic started by: monsterer on October 19, 2014, 05:51:49 pm

Title: blockchain_market_price_history returns open/close outside of low/high range
Post by: monsterer on October 19, 2014, 05:51:49 pm
Look at this result from blockchain_market_price_history:

Code: [Select]
{"jsonrpc":2,"id":1,"method":"blockchain_market_price_history","params":["CNY","BTSX","20141017T153600",180000,"each_hour"]}
Code: [Select]
{"timestamp":"20141019T170000",
"highest_bid"  :0.1392757660167131,
"lowest_ask"   :0.13793103448275865,
"opening_price":0.13332977787259007,
"closing_price":0.13332977787259007,
"volume":15496560,"recent_average_price":null}

Both opening_price and closing_price are LOWER than the lowest_ask over the given 1 hour period. How is that possible?
Title: Re: blockchain_market_price_history returns open/close outside of low/high range
Post by: xeroc on October 19, 2014, 06:25:25 pm
The only reason I can think of is that s.o. is selling for 0.13332977787259007 no matter the lowest ask .. (154.96560 BTSX) have been traded
the matching algorithm in BTSX works different from what traders are used to see/do in othere exchanges ... you get what you ask for ..

Does this make sense to you?
Title: Re: blockchain_market_price_history returns open/close outside of low/high range
Post by: monsterer on October 19, 2014, 09:41:10 pm
The only reason I can think of is that s.o. is selling for 0.13332977787259007 no matter the lowest ask .. (154.96560 BTSX) have been traded
the matching algorithm in BTSX works different from what traders are used to see/do in othere exchanges ... you get what you ask for ..

Does this make sense to you?

No, because the lowest ask will be the first thing off the book as it is the cheapest selling price. To me it just looks plain broken. What's more I think the charting is broken as well.

Take a look at the following chart from the client:

(http://i.imgur.com/JZlbUuZ.png)

Then take a look at this chart in which I have processed all trades to build an OHLC data set for a similar period:

(http://i.imgur.com/vQvtvIi.png)

They're aren't alike. I've always thought the client chart looked very odd, with all those long wicks.

Cheers, Paul.