Regret

What a pile of cash would be worth today if you had bought gold, bitcoin, oil, Nifty, Reliance, or the S&P on that date. Cash left alone is in the list too.

View Docs

Parameters

date string Required

YYYY-MM-DD. A weekend walks forward to the next session.

Example: 2020-03-23

amount number Required

How much cash you pretend you had.

Example: 100000

currency string

INR or USD. Defaults to INR.

Example: INR

only string

Comma list if you do not want the whole basket. gold, btc, oil, nifty, reliance, sp500.

Example: btc,gold

Responses

200 OK Success
{
  "ok": true,
  "date": "2020-03-23",
  "amount": 100000,
  "currency": "INR",
  "winner": {
    "id": "btc",
    "multiple": 16.61
  },
  "verdict": "Bitcoin did 16.61x. The rupees under the mattress are still 100000."
}
400 BAD_REQUEST date is in the future
502 BAD_GATEWAY could not load the rupee rate