Rates and yields
rates.daily is one row per series per day. The series are government bond yields, US Treasury curves, overnight reference rates (SOFR, ESTR, SONIA, EFFR) and central-bank policy rates. It is available from the Starter plan. Read it through a dataset handle.
const us10 = dataset("rates.daily", { where: { code: "GBOND.US10Y" } });
const de10 = dataset("rates.daily", { where: { code: "GBOND.DE10Y" } });
export function onBar(ctx) {
if (us10.value !== undefined && de10.value !== undefined) {
ctx.plot("spread", us10.value - de10.value);
}
}Fields
Field | Meaning |
|---|---|
|
|
| Series code, e.g. |
| Series name |
|
|
| Currency of the series |
|
|
| The day the value is for, |
| When the value was published, unix seconds |
| The rate or yield |
Filter on code, family or currency (equals or any of); a rates handle needs one of them. h.value is the newest published value, so it always says what was known at the bar. A value published on Monday for the previous Friday appears on Monday, not on Friday.
When values become visible
Series | Visible from |
|---|---|
Bond yields and Treasury curves | The publisher's release time on the observation date |
Overnight reference rates | The next business day's publication (SOFR for Thursday appears on Friday, or on Monday after a holiday) |
Policy rates | The decision's announcement |
A correction appears when it was seen. Holiday fillers are not observations, so a market holiday has no row.
