No description
  • Python 89.2%
  • Dockerfile 10.8%
Find a file
Henrique Breim 05ed8ff64e Add rsi obv
2020-12-06 05:08:32 -03:00
app Add rsi obv 2020-12-06 05:08:32 -03:00
.gitignore Ignore .env 2020-08-20 12:54:36 -03:00
docker-compose.yml Add dockerfile and compose 2020-07-05 13:22:54 -03:00
Dockerfile Change flask to fastapi 2020-08-24 00:20:08 -03:00
README.md Update README.md 2020-08-24 00:22:28 -03:00
requirements.txt Change flask to fastapi 2020-08-24 00:20:08 -03:00
run.py Change flask to fastapi 2020-08-24 00:20:08 -03:00
ta-lib-0.4.0-src.tar.gz Add ta-lib 2020-07-05 13:22:17 -03:00

Indicators API with ta-lib

List containers:

sudo docker ps -a

Build container

sudo docker build --no-cache . -t indicators

Run container

sudo docker run -it --rm -p 5000:5000 indicators

Get indicators

http://localhost:5000/indicators?exchange=binance&symbol=BTC/USDT&interval=1h

Suported params

exchange: supported list

symbol: BTC/USDT Bitcoin to Tether, or LTCBTC Litecoin to Bitcoin.

interval: Binance have the following time frames or intervals: ['1m', '3m', '5m', '15m', '30m', '1h', '2h', '4h', '6h', '8h', '12h', '1d', '3d', '1w', '1M'].

limit: Limit binance api return default is 100

Example response

  {
    "adx": 52.90973494613487,
    "ma_100": 11700,
    "ma_50": 11700,
    "macd": -30.9,
    "minus_di": 39.19350254139547,
    "plus_di": 4.528784884053814,
    "rsi": 33.51984340870133,
    "sma": 11607.09
  }