Author Topic: new api: supply and debt  (Read 3136 times)

0 Members and 1 Guest are viewing this topic.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
I have no idea why .. but the GUI seems to sometimes lose information :( odd

Offline 天籁

  • Hero Member
  • *****
  • Posts: 744
    • View Profile
My unrecovered short has disappeared. :'(
Is it still in:
wallet_market_order_list USD BTSX
?
I got it,thank you.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
My unrecovered short has disappeared. :'(
Is it still in:
wallet_market_order_list USD BTSX
?

Offline 天籁

  • Hero Member
  • *****
  • Posts: 744
    • View Profile
My unrecovered short has disappeared. :'(

Offline bytemaster

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 mavisjames

  • Jr. Member
  • **
  • Posts: 46
    • View Profile
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

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 starspirit

  • Hero Member
  • *****
  • Posts: 948
  • Financial markets pro over 20 years
    • View Profile
  • BitShares: starspirit
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

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 bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
There seems to be a small error


>>> supply USD
367,640.2909 USD

>>> debt USD
367,640.2537 USD
>>> approve bitcoiners

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
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: 592
    • View Profile
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 bytemaster

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: 592
    • View Profile
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