bitshares1-core
bitshares1-core copied to clipboard
blockchain_market_list_shorts shows wrong amount
>> blockchain_median_feed_price USD
"0.003309249847"
>> blockchain_market_list_shorts USD
AMOUNT COLLATERAL INTEREST RATE PRICE LIMIT ID
================================================================================================================================
8.3164 USD 5,000.00000 BTS 0.400000 % 0.003125 USD / BTS 90fdd3d10d9d44f9e69b9fd501b427799de3dcc2
>> blockchain_market_order_book USD BTS
BIDS (* Short) | ASKS
TOTAL QUANTITY PRICE | PRICE QUANTITY TOTAL COLLATERAL
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7.8125 USD 2,500.00000 BTS 0.003125 USD*|
Quantities of USD returned by the commands above are different. If someone place an ask order with 2500 BTS and 0.003125 USD/BTS, it's likely that the short order will leave about 200 BTS in the market. Strange behavior.
Related: #1354
Looks like it's partially fixed in 0.9.1 (after hard fork).
- quantity of USD in
blockchain_market_order_book
is unchanged, but if someone place an ask order with the same quantity of BTS, it will full-fill the short order. So we can say the quantity is correct. - quantity of USD in
blockchain_market_list_shorts
is unchanged thus incorrect.