{"id":38921812,"url":"https://github.com/maksim77/tinkoff_exporter","last_synced_at":"2026-01-17T15:34:09.277Z","repository":{"id":44746985,"uuid":"233806680","full_name":"maksim77/tinkoff_exporter","owner":"maksim77","description":"Prometheus exporter for Tinkoff investment OpenAPI ","archived":false,"fork":false,"pushed_at":"2024-03-13T21:32:03.000Z","size":225,"stargazers_count":18,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-19T04:04:49.278Z","etag":null,"topics":["api","exporter","finance","investment"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maksim77.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-14T09:38:52.000Z","updated_at":"2024-03-24T10:12:29.000Z","dependencies_parsed_at":"2024-06-19T04:11:35.416Z","dependency_job_id":null,"html_url":"https://github.com/maksim77/tinkoff_exporter","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/maksim77/tinkoff_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maksim77%2Ftinkoff_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maksim77%2Ftinkoff_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maksim77%2Ftinkoff_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maksim77%2Ftinkoff_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maksim77","download_url":"https://codeload.github.com/maksim77/tinkoff_exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maksim77%2Ftinkoff_exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","exporter","finance","investment"],"created_at":"2026-01-17T15:34:08.609Z","updated_at":"2026-01-17T15:34:09.253Z","avatar_url":"https://github.com/maksim77.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tinkoff_exporter\n\n[Prometheus](https://prometheus.io/) экспортер данных из [OpenAPI](https://tinkoffcreditsystems.github.io/invest-openapi/) Тинькофф Инвестиции.\n\n## Метрики\n\n|Название|Описание|Метки|\n|--------|--------|-----|\n|currency|Остатки денег на счёту|`currency` – валюта|\n|currency_blocked|Заблокированная сумма на счету|`currency` – валюта|\n|stock|Цена отдельной бумаги|`currency` – валюта, `in_portfolio` – наличие в портфеле, `ticker` – тикер бумаги, `type` – типа ценной бумаги (Etf - ETF, Stock - акция, Bond – облигация)|\n|stock_count|Колличество бумаг в портфеле|`ticker` – тикер бумаги, `type` – типа ценной бумаги (Etf - ETF, Stock - акция, Bond – облигация)| \n|stock_expected_yield|Ожидаемая на настоящий момент доходность по бумаге|`currency` – валюта, `ticker` – тикер бумаги, `type` – типа ценной бумаги (Etf - ETF, Stock - акция, Bond – облигация)|\n|total|Итоговая сумма на счёте по текущему курсу||\n|total_payin|Общая сумма пополнений счёта||\n|total_payout|Общая сумма выведенных средств со счёта||\n|xirr|[Внутренняя ставка доходности](https://en.wikipedia.org/wiki/Internal_rate_of_return)||\n\n## Параметры\n\nЕдинственным обязательным аргументом для запуска программы является `token` ([инструкция](https://tinkoff.github.io/invest-openapi/auth/) по получению токена). Он может быть передан либо как переменная окружения `TINKOFF_EXPORTER_TOKEN` либо как часть конфигурационного файла `config.yml`:\n```yaml\n---\nendpoint: \"/metrics\"\nport: 8000\ntoken: \"t.TOKEN\"\ntickers:\n  - \"YNDX\"\n  - \"MTSS\"\n```\n\n|Параметр|Описание|Переменная окружения|Значение по умолчанию|\n|--------|--------|--------------------|---------------------|\n|endpoint|Путь на котором будут отдаваться метрики|TINKOFF_EXPORTER_ENDPOINT|`/metrics`|\n|port|Порт на котором будет отвечать сервис|TINKOFF_EXPORTER_PORT|8000|\n|**token**|Токен доступа к OpenAPI|TINKOFF_EXPORTER_TOKEN||\n|tickers|Список тикеров тех ценных бумаг котрых у вас в портфеле нет но вы, тем не менее, хотите собирать по ним статистику|TINKOFF_EXPORTER_TICKERS|[]|\n\n## Запуск в Docker\n\n```sh\ndocker run -p 8000:8000 --env TINKOFF_EXPORTER_TOKEN=t.token maksim77/tinkoff_exporter\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaksim77%2Ftinkoff_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaksim77%2Ftinkoff_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaksim77%2Ftinkoff_exporter/lists"}