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(3y ago)03MITPHPPHP &gt;=7.4

Since Jun 27Pushed 3y 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 1mo ago

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

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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

1415d 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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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