BitShares Forum

Main => General Discussion => Topic started by: bitcoinerS on September 23, 2014, 07:03:24 am

Title: new api: supply and debt
Post by: bitcoinerS on September 23, 2014, 07:03:24 am
fyi,
there are some new commands available in v0.4.17-RC1

Code: [Select]
Calculate the total supply of an asset from the current blockchain database state
>>> blockchain_calculate_supply USD
278,564.3653 USD

Calculate the total amount of a market-issued asset that is owed to the network by open short positions
default (unlocked) >>> blockchain_calculate_debt USD
280,820.2400 USD

Notice that get asset command shows current supply as 560,712.
>>> blockchain_get_asset USD
  "current_share_supply": 5607127063,
Title: Re: new api: supply and debt
Post by: bytemaster on September 23, 2014, 08:36:21 am
Yes we have identified and fixed this discrepancy. 

Your bitUsd yield is about to increase.   
Title: Re: new api: supply and debt
Post by: bitcoinerS on September 25, 2014, 07:50:34 pm
Latest stats on USD. I wonder why supply is down about $200k..

Code: [Select]
>>> supply USD
367,640.2909 USD
default (unlocked) >>> debt USD
367,640.2537 USD
default (unlocked) >>> blockchain_get_asset USD
{
  "id": 22,
  "symbol": "USD",
  "name": "United States Dollar",
  "description": "1 United States dollar",
  "public_data": "",
  "issuer_account_id": -2,
  "precision": 10000,
  "registration_date": "20140719T000000",
  "last_update": "20140719T000000",
  "current_share_supply": 3676402537,
  "maximum_share_supply": 1000000000000000,
  "collected_fees": 56533932
}
Title: Re: new api: supply and debt
Post by: toast on September 25, 2014, 07:51:26 pm
because we fixed the bug which caused it to appear too high
Title: Re: new api: supply and debt
Post by: bitcoinerS on September 25, 2014, 08:02:22 pm
There seems to be a small error


>>> supply USD
367,640.2909 USD

>>> debt USD
367,640.2537 USD
Title: Re: new api: supply and debt
Post by: bytemaster on September 25, 2014, 08:12:25 pm
There seems to be a small error


>>> supply USD
367,640.2909 USD

>>> debt USD
367,640.2537 USD

Probably the cumulative effect of rounding errors... we are looking into the cause.
Title: Re: new api: supply and debt
Post by: starspirit on September 27, 2014, 12:48:49 am
The drop in supply from around 560K to 367K (almost 200K discrepancy) is relatively large. What was the bug doing incorrectly that caused this? Was the true supply ever close to 560K?
Title: Re: new api: supply and debt
Post by: bytemaster on September 27, 2014, 04:07:10 pm
We didn't reduce the supply on covers.   
Title: Re: new api: supply and debt
Post by: mavisjames on September 28, 2014, 12:50:46 am
Yes we have identified and fixed this discrepancy. 

Your bitUsd yield is about to increase.

I don't understand the yield. Even when I'm holding substantial BitUSD my estimated yield is always 0? Is this a bug or ?
Title: Re: new api: supply and debt
Post by: bytemaster on September 28, 2014, 02:58:40 am
How often do you move it?
Title: Re: new api: supply and debt
Post by: 天籁 on September 28, 2014, 03:18:56 am
My unrecovered short has disappeared. :'(
Title: Re: new api: supply and debt
Post by: xeroc on September 28, 2014, 10:19:17 am
My unrecovered short has disappeared. :'(
Is it still in:
wallet_market_order_list USD BTSX
?
Title: Re: new api: supply and debt
Post by: 天籁 on September 28, 2014, 10:25:55 am
My unrecovered short has disappeared. :'(
Is it still in:
wallet_market_order_list USD BTSX
?
I got it,thank you.
Title: Re: new api: supply and debt
Post by: xeroc on September 28, 2014, 10:38:44 am
I have no idea why .. but the GUI seems to sometimes lose information :( odd