← Back to API Ninjas
Returns historical LIBOR rates for a specified tenor
Returns historical LIBOR rates for one tenor over an optional Unix timestamp range. Requires `type`: overnight, 1_month, 3_months, 6_months or 12_months.
API Ninjas·$0.001 per call
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "api-ninjas",
path: "/v1/liborhistorical",
query: {
"type": "example"
}
});
console.log(output);Query parameters
typerequired
string
Tenor of the LIBOR rate. Must be one of: overnight, 1_month, 3_months, 6_months, 12_months (Allowed: overnight, 1_month, 3_months, 6_months, 12_months)
start_time
number
Start time for the data range, specified as a UNIX timestamp in seconds.
end_time
number
End time for the data range, specified as a UNIX timestamp in seconds.