BitShares Forum

Main => Technical Support => Topic started by: Xeldal on October 29, 2015, 04:59:58 pm

Title: get_limit_orders return doesn't match OpenLedger GUI market book
Post by: Xeldal on October 29, 2015, 04:59:58 pm
From open ledger:
(http://content.screencast.com/users/Enkianu/folders/Jing/media/04565708-7684-4b42-89ac-6bae3be38fbf/2015-10-29_1250.png)

From CLI "get_limit_orders BTS BTC 6"
Quote
unlocked >>> get_limit_orders BTS BTC 6
get_limit_orders BTS BTC 6
[{
    ...
        "amount": 1012500000,
        "asset_id": "1.3.0"
     ...
  },{
   ...
        "amount": 8000000,
        "asset_id": "1.3.0"
     ...
  },{
   ...
        "amount": 1127250000,
        "asset_id": "1.3.0"
    ...
  },{
   ...
        "amount": 750000000,      <---------7500 BTS
        "asset_id": "1.3.0"
     ...
  },{
   ...
        "amount": 888000000,     <------------8880 BTS
        "asset_id": "1.3.0"
    ...
  },{
   ...
        "amount": "7325100000",
        "asset_id": "1.3.0"
   ...
  },{
...
Title: Re: get_limit_orders return doesn't match OpenLedger GUI market book
Post by: xeroc on October 29, 2015, 05:12:08 pm
ui ..
Title: Re: get_limit_orders return doesn't match OpenLedger GUI market book
Post by: svk on October 29, 2015, 07:52:59 pm
It would be better if you could post the whole order, but my guess is that you're looking at partially filled orders.

The sell_price object only defines the price and stays constant, the for_sale field however changes as orders get partially filled and defines the amount for sale at the given price.
Title: Re: get_limit_orders return doesn't match OpenLedger GUI market book
Post by: Xeldal on October 29, 2015, 09:16:11 pm
It would be better if you could post the whole order, but my guess is that you're looking at partially filled orders.

The sell_price object only defines the price and stays constant, the for_sale field however changes as orders get partially filled and defines the amount for sale at the given price.

Thank you, that's exactly whats going on.  My bad.