PHPackages                             rocketfellows/tinkoff-invest-v1-operations-rest-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. rocketfellows/tinkoff-invest-v1-operations-rest-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

rocketfellows/tinkoff-invest-v1-operations-rest-client
======================================================

v1.0.0(4y ago)03MITPHPPHP &gt;=7.4

Since Jun 27Pushed 4y agoCompare

[ Source](https://github.com/rocketfellows/tinkoff-invest-v1-operations-rest-client)[ Packagist](https://packagist.org/packages/rocketfellows/tinkoff-invest-v1-operations-rest-client)[ RSS](/packages/rocketfellows-tinkoff-invest-v1-operations-rest-client/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Tinkoff Invest V1 operations service rest client
================================================

[](#tinkoff-invest-v1-operations-service-rest-client)

[![Code Coverage Badge](./badge.svg)](./badge.svg)

Simple implementation of tinkoff invest v1 operations service. So far provides methods:

- GetPortfolio - [https://tinkoff.github.io/investAPI/swagger-ui/#/OperationsService/OperationsService\_GetPortfolio](https://tinkoff.github.io/investAPI/swagger-ui/#/OperationsService/OperationsService_GetPortfolio)
- GetPositions - [https://tinkoff.github.io/investAPI/swagger-ui/#/OperationsService/OperationsService\_GetPositions](https://tinkoff.github.io/investAPI/swagger-ui/#/OperationsService/OperationsService_GetPositions)
- GetWithdrawLimits - [https://tinkoff.github.io/investAPI/swagger-ui/#/OperationsService/OperationsService\_GetWithdrawLimits](https://tinkoff.github.io/investAPI/swagger-ui/#/OperationsService/OperationsService_GetWithdrawLimits)

Methods interfaces:

- rocketfellows\\TinkoffInvestV1OperationsRestClient\\GetPortfolioInterface
- rocketfellows\\TinkoffInvestV1OperationsRestClient\\GetPositionsInterface
- rocketfellows\\TinkoffInvestV1OperationsRestClient\\GetWithdrawLimitsInterface

Methods interfaces implementation aggregated in rocketfellows\\TinkoffInvestV1OperationsRestClient\\OperationsService.

For the sake of the interface segregation principle you should inject a specific interface as dependencies, and define the implementation through the container (DI).

Installation
------------

[](#installation)

```
composer require rocketfellows/tinkoff-invest-v1-operations-rest-client
```

Methods contract definition
---------------------------

[](#methods-contract-definition)

Component methods take an array as parameters, and raw arrays also serve as output values.

Methods throw the following types of exceptions:

- rocketfellows\\TinkoffInvestV1RestClient\\exceptions\\request\\ClientException
- rocketfellows\\TinkoffInvestV1RestClient\\exceptions\\request\\ServerException
- rocketfellows\\TinkoffInvestV1RestClient\\exceptions\\request\\HttpClientException

Component dependencies
----------------------

[](#component-dependencies)

"rocketfellows/tinkoff-invest-v1-rest-client": "1.0.2" - as a common http client.

Usage examples
--------------

[](#usage-examples)

Common http client configuration:

```
$client = new Client(
    (
        new ClientConfig(
            'https://invest-public-api.tinkoff.ru/rest',

        )
    ),
    new \GuzzleHttp\Client()
);
```

Operations service configuration (or interface specific method configuration via DI):

```
$operationsService = new OperationsService($client);
```

Get account portfolio method call example:

```
$operationsService->getPortfolio([
    "accountId" => "",
]);
```

Result scheme you can find here: [https://tinkoff.github.io/investAPI/swagger-ui/#/OperationsService/OperationsService\_GetPortfolio](https://tinkoff.github.io/investAPI/swagger-ui/#/OperationsService/OperationsService_GetPortfolio)

Contributing
------------

[](#contributing)

Welcome to pull requests. If there is a major changes, first please open an issue for discussion.

Please make sure to update tests as appropriate.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1468d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/81402dcd0a07ad550b7f80f5871e7c302770b29d4c73a52fc35ba697f702d56e?d=identicon)[arslanim](/maintainers/arslanim)

---

Top Contributors

[![arslanim](https://avatars.githubusercontent.com/u/22678154?v=4)](https://github.com/arslanim "arslanim (10 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

operations-servicephprestsdktinkoff-invest

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/rocketfellows-tinkoff-invest-v1-operations-rest-client/health.svg)

```
[![Health](https://phpackages.com/badges/rocketfellows-tinkoff-invest-v1-operations-rest-client/health.svg)](https://phpackages.com/packages/rocketfellows-tinkoff-invest-v1-operations-rest-client)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M7.0k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M92](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
