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"| Parameter | Range | Default | Meaning |
|---|---|---|---|
commit_drop | 0–1 | 0 | Fractional cut to miner BTC commits |
price_drop | 0–1 | 0 | Fractional cut to the STX price |
book_btc | 0–21,000,000 | current book | Size of a hypothetical bond book |
bonds | 1–6 | 6 | Number 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.