Skip to content
This repository was archived by the owner on Feb 21, 2019. It is now read-only.

blockchain_market_list_shorts shows wrong amount #1532

Open
abitmore opened this issue May 4, 2015 · 2 comments
Open

blockchain_market_list_shorts shows wrong amount #1532

abitmore opened this issue May 4, 2015 · 2 comments

Comments

@abitmore
Copy link
Member

abitmore commented May 4, 2015

>> 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
Copy link
Contributor

pmconrad commented May 6, 2015

Related: #1354

@abitmore
Copy link
Member Author

abitmore commented May 8, 2015

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.

@abitmore abitmore changed the title blockchain_market_order_book shows wrong quantity on short orders with limit_price < feed_price blockchain_market_list_shorts shows wrong amount May 8, 2015
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants