The API returns 2 JSON pairs, **forecast ** and timestamp. **forecast **consists of predicted price in USD and is a nested list, timestamp is a timestamp that can be converted into Date or can be used as it.
Accepted Parameters:
for example: crypto=BTC&period=10&history=10
returns 20 items in each JSON pair where the first 10 are the predicted price and timestamps in the past and the next 10 are the predicted prices and timestamps in the future.
Sample Response:
For the request parameters: crypto=BTC&period=10&history=10
{"forecast":"[[46050.32674059718], [46327.50446847721], [46564.637656150815], [46943.47489442148], [47139.13849474479], [47807.92602619015], [48068.91665869192], [48129.87160265229], [48406.156439744576], [48640.622809739194], [49023.10457647226], [49214.30317394208], [49899.3792628326], [50158.727033406925], [50209.41646470738], [50484.80841101222], [50716.60796332704], [51102.734258522956], [51289.46785313981], [51990.83249947593]]","timestamp":"[[1629590400000000000], [1629676800000000000], [1629763200000000000], [1629849600000000000], [1629936000000000000], [1630022400000000000], [1630108800000000000], [1630195200000000000], [1630281600000000000], [1630368000000000000], [1630454400000000000], [1630540800000000000], [1630627200000000000], [1630713600000000000], [1630800000000000000], [1630886400000000000], [1630972800000000000], [1631059200000000000], [1631145600000000000], [1631232000000000000]]"}