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
or
sudo docker run -it --rm -p 5000:5000 ghcr.io/breim/TAlib-altcoins-api:X.X.X
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
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。