Author Topic: get_limit_orders return doesn't match OpenLedger GUI market book  (Read 1311 times)

0 Members and 1 Guest are viewing this topic.

Xeldal

  • Guest
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.

Offline 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

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc

Xeldal

  • Guest
From open ledger:


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"
   ...
  },{
...