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.

GET/api/quote/wagyu

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

NameTypeDescription
fromrequiredstringBTC, ETH, SOL or XMR.
torequiredstringThe other coin.
amountrequirednumberAmount of from, within the exchange limits.

Responses

200Wagyu's quote, or an error inside wagyu if Wagyu did not answer.
FieldTypeDescription
wagyu.outnumberWhat Wagyu would pay, in to.
wagyu.costPctnumberWagyu's total cost against the market rate, in percent.
wagyu.vsUsPctnumberWagyu's output versus ours, in percent (negative = less than us).
wagyu.toolstringRoute Wagyu chose.
wagyu.realCostPctnumberOnly 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.quotedOutnumberWith realCostPct: what Wagyu's quote itself says, in to.
wagyu.quotedCostPctnumberWith 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"
}