تاريخ السعر
Buy and sell over time for the Central Bank (default) or one bank. `1d` has a point for every change, `1w` one an hour, longer ranges one a day. Your plan sets how far back you can go.
GET
https://api.geneh.app/v1/rates/{currency}/historyمن الخطة المجانيةمعاملات المسار
| الحقل | النوع | الوصف |
|---|---|---|
currency مطلوب | string | Three-letter currency code in any case. |
معاملات الاستعلام
| الحقل | النوع | الوصف |
|---|---|---|
range | string | One of 1d, 1w, 1m, 1y, all. Default 1m. |
bank | string | A bank id from /v1/banks, or cbe. Default cbe. |
الرد
| الحقل | النوع | الوصف |
|---|---|---|
instrument | string | |
source | string | |
range | string | |
interval | string | |
points | object[] | |
points[].at | string | |
points[].buy | number or null | |
points[].sell | number or null |
الأخطاء
| 400 | Something in the request is wrong. The message says what. |
| 401 | missing_key, bad_key or wrong_environment. |
| 403 | plan_required: this section or this much history needs a higher plan. key_restricted: the key is limited to other websites or addresses. |
| 404 | We have nothing for this. |