Metacenter

GET /stress

Hypothetical waterfall for one distribution interval.

curl "https://metacenter.0xo.in/api/stress?commit_drop=0.3&price_drop=0.5"
curl "https://metacenter.0xo.in/api/stress?book_btc=3000&bonds=6"
ParameterRangeDefaultMeaning
commit_drop0–10Fractional cut to miner BTC commits
price_drop0–10Fractional cut to the STX price
book_btc0–21,000,000current bookSize of a hypothetical bond book
bonds1–66Number of equal bonds in the hypothetical book

The base is the latest distribution at the price of that distribution. With no parameters the result equals the realised figures. Out-of-range values return 400.

Live response (payout)

GET https://metacenter.0xo.in/api/stress?book_btc=3000&bonds=6&price_drop=0.3 · read at block 967,806
[
  {
    "position": 0,
    "bond_index": 1,
    "stx_value_ratio": "310237",
    "target_sats": "30000000",
    "paid_sats": "30000000",
    "status": "full"
  },
  {
    "position": 1,
    "bond_index": 2,
    "stx_value_ratio": "294725",
    "target_sats": "30000000",
    "paid_sats": "30000000",
    "status": "full"
  },
  {
    "position": 2,
    "bond_index": 3,
    "stx_value_ratio": "279213",
    "target_sats": "30000000",
    "paid_sats": "30000000",
    "status": "full"
  },
  {
    "position": 3,
    "bond_index": 4,
    "stx_value_ratio": "263701",
    "target_sats": "30000000",
    "paid_sats": "30000000",
    "status": "full"
  },
  {
    "position": 4,
    "bond_index": 5,
    "stx_value_ratio": "248189",
    "target_sats": "30000000",
    "paid_sats": "30000000",
    "status": "full"
  },
  {
    "position": 5,
    "bond_index": 6,
    "stx_value_ratio": "232677",
    "target_sats": "30000000",
    "paid_sats": "11229484",
    "status": "partial"
  }
]

Showing payout.value; the full response has more fields.

Edit on GitHub

On this page