First, get token from Tinkoff: https://tinkoffcreditsystems.github.io/invest-openapi/auth/
docker run -d -p 2112:2112 -e TCS_TOKEN="YOUR_TOKEN" byumov/prometheus_tcs
curl 127.0.0.1:2112/metrics
TCS_TOKEN="YOUR_TOKEN" ./tinkoff_investing_exporter
TCS_UPDATE_INTERVAL
in seconds, 120 by default. Be careful, Tinkoff API has a limit 120 requests\min
TCS_DEBUG
, set with any value for more verbosity
TCS_LISTEN_PORT
, 2112 by default
git clone https://github.com/byumov/tinkoff_investing_exporter.git
cd tinkoff_investing_exporter
GOOS="linux" GOARCH="amd64" go build .
For other OS see GOOS
and GOARCH
values in go documentation.
git clone https://github.com/byumov/tinkoff_investing_exporter.git
cd tinkoff_investing_exporter
docker build .