Т-Инвестиции

Break down your T-Investments portfolio and quotes in chat

Connect T-Investments to the AI agent: brokerage accounts, portfolio, quotes, candles and orders. The agent shows holdings and computes period returns.

How the agent works with Т-Инвестиции

The agent calls the T-Invest API at invest-public-api.tinkoff.ru/rest and reads four domains: brokerage accounts and portfolio composition, quotes and candles for instruments, the securities reference with search by ticker, name and ISIN, and placed orders. Its first request fetches the list of accounts — without it there is no telling which portfolio to count, and one token can cover several accounts.

REST here is a wrapper over a gRPC contract: every call is a POST to a method name of the form UsersService/GetAccounts, parameters travel in the body, and the usual query strings do not exist. The portfolio comes back per account rather than as one pile, so the agent assembles the how-much-in-total summary itself, walking the accounts and adding up positions. The value in the response is the current market valuation, a snapshot at request time rather than a fixed end-of-day total.

On reading the agent is self-sufficient, on actions it is not. It places orders only if the token was issued with full access: on a read-only token the API simply will not accept them, and the agent names the reason instead of pretending it sent something. Before anything goes to the exchange it confirms the action with you separately. There is no current account, statement or payment order here — this is a brokerage account, and banking operations live in the T-Bank Business connector.

Access rests on a single T-Invest API token, and every request goes out in its name. The token lives three months from the last use — after idling the API answers with error 40003, and the agent names that reason instead of showing an empty table. Limits differ per method: reference books and quotes are generous, account operations are stricter, so history over a long period is requested in windows at around two and a half calls per second.

Integration scenarios

Portfolio composition

The agent shows the portfolio across all brokerage accounts: which securities you hold, in what proportions and what they are worth right now.

Quotes and dynamics

The agent collects quotes and candles for the securities you need and works out how your position moved over the chosen period.

Finding an instrument

The agent finds an instrument by ticker, name or ISIN and shows its parameters, so you do not have to look the security up in the app.

Portfolio summary

The agent sends a summary on a schedule: portfolio value, returns and notable moves over the trading day.

Orders still sitting open

The agent walks every account, collects the placed orders and shows what is still unfilled — which instrument, in what size and at what price.

An order only on confirmation

The agent prepares an order, names the instrument, size and price and sends it to the exchange only after your yes — and on a read-only token it says upfront that rights fall short.

Т-Инвестиции examples

Т-Инвестиции
Frozen chats — click a question
Сколько сейчас стоит портфель?

4,37 млн ₽ по двум брокерским счетам, за день +1,4%.

Акции занимают 58%, облигации 34%, рубли на счёте — 8%. Больше всех за день прибавил ЛУКОЙЛ (+2,8%), просел Транснефть-п (−1,1%).

Состав портфеля

How to connect

Before you connect

  • Access to the web version — the mobile app cannot issue tokens
  • Full access if the agent must place orders; read-only otherwise
  1. 1

    Open a brokerage account

    API access is granted only after you open a brokerage account and confirm your identity. Invest Piggy Bank, Turnkey and Smart accounts get no token.

  2. 2

    Turn off trade confirmation by code

    While «Подтверждение сделок кодом» (trade confirmation by code) is on, no token can be issued. Trades above 30,000,000 ₽ are unavailable via the API.

  3. 3

    Issue the token in profile settings

    Web version only: «Настройки профиля Т-Инвестиции» (T-Invest profile settings) at tbank.ru/invest/settings → issue a T-Invest API token for the exchange.

  4. 4

    Copy the token right away

    The value is visible only at issue time and never shown again. The token lives three months from its last use; after idling the API returns error 40003.

FAQ

With a T-Invest API token: it is issued only in the web version, in profile settings at tbank.ru/invest/settings. Read-only mode is enough for the portfolio and quotes, while full access is needed for orders. The value is shown once and lives for three months from the last use.

Brokerage accounts and portfolio composition, quotes and candles for instruments, the securities reference and placed orders — within the rights of the connected token.

No. T-Investments is a brokerage account: securities, quotes and orders. The current account, statements and payment orders live in the separate T-Bank Business connector.

Only if you issued a token with full access — the API will not accept an order on a read-only token. The agent confirms such actions with you before sending them to the exchange.

Related integrations

Category
Banks
Connection
API key

Connect Т-Инвестиции

Connecting takes a couple of minutes, and your data stays in your own systems.

Connect