/v1/history
Daily time series of one ratio
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/preciousratios-api/v1/history" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/preciousratios-api/v1/history", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/preciousratios-api/v1/history");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/preciousratios-api/v1/history",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"days": 1260,
"name": "Gold / Silver (mint ratio)",
"note": "Daily Gold / Silver (mint ratio) ratio time series over the window. Read fresh per call, lightly cached.",
"pair": "gold_silver",
"source": "Yahoo Finance",
"history": [
{
"date": "2021-06-10",
"ratio": 67.614
},
{
"date": "2021-06-11",
"ratio": 66.738
},
{
"date": "2021-06-14",
"ratio": 66.514
},
{
"date": "2021-06-15",
"ratio": 67
},
{
"date": "2021-06-16",
"ratio": 66.888
},
{
"date": "2021-06-17",
"ratio": 68.635
},
{
"date": "2021-06-18",
"ratio": 68.106
},
{
"date": "2021-06-21",
"ratio": 68.491
},
{
"date": "2021-06-22",
"ratio": 68.721
},
{
"date": "2021-06-23",
"ratio": 68.266
},
{
"date": "2021-06-24",
"ratio": 68.169
},
{
"date": "2021-06-25",
"ratio": 68.116
},
{
"date": "2021-06-28",
"ratio": 67.877
},
{
"date": "2021-06-29",
"ratio": 68.135
},
{
"date": "2021-06-30",
"ratio": 67.678
},
{
"date": "2021-07-01",
"ratio": 68.107
},
{
"date": "2021-07-02",
"ratio": 67.316
},
{
"date": "2021-07-06",
"ratio": 68.575
},
{
"date": "2021-07-07",
"ratio": 68.997
},
{
"date": "2021-07-08",
"ratio": 69.303
},
{
"date": "2021-07-09",
"ratio": 69.055
},
{
"date": "2021-07-12",
"ratio": 68.868
},
{
"date": "2021-07-13",
"ratio": 69.286
},
{
"date": "2021-07-14",
"ratio": 69.508
},
{
"date": "2021-07-15",
"ratio": 69.323
},
{
"date": "2021-07-16",
"ratio": 70.392
},
{
"date": "2021-07-19",
"ratio": 71.985
},
{
"date"
…