Skip to content
Seismic Orchestration

api.rates

Mid-market reference rates: spread-free, halfway between best bid and best ask on the underlying market. Pair with a quote's effective rate to surface the implied spread. Unauthenticated.

from defaults to "USD". Omit to to get the whole board for that source. rate is the price of from denominated in to: amount_to = amount_from × rate.

// USD board against every supported destination.
const {  } = await .();
 
// One specific pair: list still has length 1.
const { : [] } = await .({ : "USD", : "USDC" });
const  = (.) * 1000;
 
// Every fiat → USDC pair.
const  = await .({ : "USDC" });

Arguments

ParamTypeNotes
optsobject?Optional filters. If neither is provided, defaults to from=USD against every supported destination.
opts.fromstring?Source currency.
opts.tostring?Destination currency.

Returns: Promise<{ rates: MidmarketRate[] }>.

REST endpoint: GET /rates.