Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: new api: supply and debt  (Read 468 times)

0 Members and 1 Guest are viewing this topic.

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 583
    • View Profile
new api: supply and debt
« 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,
« Last Edit: September 23, 2014, 07:25:28 AM by bitcoinerS »
>>> approve bitcoiners

Offline bytemaster

Re: new api: supply and debt
« Reply #1 on: September 23, 2014, 08:36:21 AM »
Yes we have identified and fixed this discrepancy. 

Your bitUsd yield is about to increase.   
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 583
    • View Profile
Re: new api: supply and debt
« Reply #2 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
}
>>> approve bitcoiners

Offline toast

Re: new api: supply and debt
« Reply #3 on: September 25, 2014, 07:51:26 PM »
because we fixed the bug which caused it to appear too high
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 583
    • View Profile
Re: new api: supply and debt
« Reply #4 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
>>> approve bitcoiners

Offline bytemaster

Re: new api: supply and debt
« Reply #5 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.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline starspirit

  • Hero Member
  • *****
  • Posts: 948
  • Financial markets pro over 20 years
    • View Profile
  • BTS: starspirit
Re: new api: supply and debt
« Reply #6 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?

Offline bytemaster

Re: new api: supply and debt
« Reply #7 on: September 27, 2014, 04:07:10 PM »
We didn't reduce the supply on covers.   
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline mavisjames

  • Jr. Member
  • **
  • Posts: 46
    • View Profile
Re: new api: supply and debt
« Reply #8 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 ?
Pmp2K9S5t15hTEkrrFk1cfieb2Y2eVR6YG

BTSX ID: mdyyz

Offline bytemaster

Re: new api: supply and debt
« Reply #9 on: September 28, 2014, 02:58:40 AM »
How often do you move it?
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline 天籁

  • Hero Member
  • *****
  • Posts: 550
    • View Profile
Re: new api: supply and debt
« Reply #10 on: September 28, 2014, 03:18:56 AM »
My unrecovered short has disappeared. :'(
BTS account: disneyland
PLAY account: playone

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12175
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: new api: supply and debt
« Reply #11 on: September 28, 2014, 10:19:17 AM »
My unrecovered short has disappeared. :'(
Is it still in:
wallet_market_order_list USD BTSX
?
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline 天籁

  • Hero Member
  • *****
  • Posts: 550
    • View Profile
Re: new api: supply and debt
« Reply #12 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.
BTS account: disneyland
PLAY account: playone

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12175
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: new api: supply and debt
« Reply #13 on: September 28, 2014, 10:38:44 AM »
I have no idea why .. but the GUI seems to sometimes lose information :( odd
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

 

Google+