Interest Rate
market:interest_rate
Live interest rate updates per trading pair. All maturities publish to a single channel with a maturity tag for server-side filtering.
Channel: market:interest_rate:{pair}
Example: market:interest_rate:ETH_USDC
Payload
Payload shape:
{
"pair": "ETH_USDC",
"maturity": "11MAR26",
"sid": "INTEREST-ETH-11MAR26",
"value": "0.05",
"timestamp_ms": 1704067200100
}| Field | Type | Description |
|---|---|---|
pair | string | Trading pair (e.g. ETH_USDC) |
maturity | string | Expiry label (e.g. 11MAR26, 20240315) |
sid | string | Source identifier for the rate |
value | string | Interest rate as decimal string (full precision) |
timestamp_ms | integer | Server emission timestamp in milliseconds |
Tag Filtering
Each publication carries a maturity tag (e.g. 11MAR26) for server-side filtering.
Subscribe — Protobuf SDK
All maturities
Subscribe with since: {} to receive the last known value on subscribe.
import { Centrifuge } from "centrifuge/build/protobuf";
const client = new Centrifuge("wss://staging.kyan.sh/stream/websocket?format=protobuf");
const sub = client.newSubscription("market:interest_rate:ETH_USDC", { since: {} });
sub.on("publication", (ctx) => {
const data = ctx.data instanceof Uint8Array
? JSON.parse(new TextDecoder().decode(ctx.data))
: ctx.data;
const { pair, maturity, sid, value, timestamp_ms } = data;
// value is a string — parse to number or Decimal as needed
});
sub.subscribe();
client.connect();Filtered: specific maturity
const sub = client.newSubscription("market:interest_rate:ETH_USDC", {
since: {},
tagsFilter: { key: "maturity", cmp: "eq", val: "11MAR26" }
});Recovery
Subscribe with since: {} to receive the last known rate on subscribe. On reconnect, the SDK automatically recovers.
Related channels
Channels providing related data.
| Channel | Why |
|---|---|
| SVI Surface | Vol surface parameters. Interest rate and SVI together define theoretical option prices: rate gives the forward, SVI gives the vol. |
| Index Price | Spot component of the forward. Forward = spot * e^(r*T). |
| Options BBO | Options top-of-book. mark_price and Greeks incorporate the interest rate. |
| Options L2 | Full options depth. Theoretical values at each level depend on the forward, which incorporates this rate. |
Updated about 2 months ago
