-
Notifications
You must be signed in to change notification settings - Fork 1
Core
Tomek edited this page May 13, 2019
·
20 revisions
Available endpoints:
GET /<pair>
- return main report data in the following format
{
"dates": [],
"indicators": {
"price": {
"close": [],
"open": [],
"high": [],
"low": [],
"info": []
},
"indicator_name": {
"data1": [],
"data2": [],
"info": []
}
}
}
Params:
-
timeframe
- 1h, 2h, 3h, 6h, 12h, 24h -
limit
- number of returned candles -
untill
- (optional) timestamp, if provided then last candle is before this time
For more info about possible indicators see "Indicators" wiki page
Data is sorted from old to new. Returned are additional MARGIN=26
dates.
In all calculations we use number of candles equal to limit + 79
where 79 is so called MAGIC_LIMIT
. This assure us that ichimoku or SMA50 will be always returned.
POST /fill
- fills database with lacking candles.
Params:
-
pair
- name of a exchange pair
Returns 200 if successful.