Skip to content
Tomek edited this page May 13, 2019 · 20 revisions

API

Available endpoints:

Data :

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.

Fill :

POST /fill - fills database with lacking candles.

Params:

  • pair - name of a exchange pair

Returns 200 if successful.

Clone this wiki locally