Docs › Build with Beluga › API reference › Prices & quotes
Wagyu quote
Waits for Wagyu's quote for the same exchange (a few seconds) and returns it compared with ours.
Same parameters and validation as Exchange quote. Our server fetches Wagyu's public quote over Tor with public placeholder addresses and an amount rounded to 2 significant figures, then scales it to your amount. Your browser never contacts Wagyu.
Query parameters
| Name | Type | Description |
|---|---|---|
fromrequired | string | BTC, ETH, SOL or XMR. |
torequired | string | The other coin. |
amountrequired | number | Amount of from, within the exchange limits. |
Responses
200Wagyu's quote, or an error inside wagyu if Wagyu did not answer.
| Field | Type | Description |
|---|---|---|
wagyu.out | number | What Wagyu would pay, in to. |
wagyu.costPct | number | Wagyu's total cost against the market rate, in percent. |
wagyu.vsUsPct | number | Wagyu's output versus ours, in percent (negative = less than us). |
wagyu.tool | string | Route Wagyu chose. |
wagyu.realCostPct | number | Only on routes to XMR when Wagyu's quote would beat ours: the real cost we apply instead (2.5%: Wagyu charges at least 2% on XMR purchases, plus route costs). out, costPct and vsUsPct then use it. |
wagyu.quotedOut | number | With realCostPct: what Wagyu's quote itself says, in to. |
wagyu.quotedCostPct | number | With realCostPct: the cost Wagyu's quote shows, in percent. |
400Unsupported pair or amount out of range.
{
"error": "supported: BTC>ETH, BTC>SOL, BTC>XMR, …"
}503No reliable market rate right now.
{
"error": "price source unavailable"
}429Rate limit reached; retry after the current minute.
{
"error": "rate limit"
}