get_limit_orders return doesn't match OpenLedger GUI market book

Started by Xeldal, October 29, 2015, 04:59:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Xeldal

Quote from: 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.

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

svk

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.
Worker: dev.bitsharesblocks

xeroc


Xeldal

From open ledger:


From CLI "get_limit_orders BTS BTC 6"
Quoteunlocked >>> 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"
   ...
  },{
...