bitshares / bitshares1-core

Software to run the old chain (before 2015-10-13). Code for current chain is https://github.com/bitshares/bitshares-core
https://bitshares.org/
The Unlicense
219 stars 174 forks source link

blockchain_market_list_shorts shows wrong amount #1532

Open abitmore opened 9 years ago

abitmore commented 9 years ago
>> 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.

pmconrad commented 9 years ago

Related: #1354

abitmore commented 9 years ago

Looks like it's partially fixed in 0.9.1 (after hard fork).