PHPackages                             rocketfellows/tinkoff-invest-v1-instruments-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. [API Development](/categories/api)
4. /
5. rocketfellows/tinkoff-invest-v1-instruments-rest-client

ActiveLibrary[API Development](/categories/api)

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

v1.0.1(3y ago)01021MITPHPPHP &gt;=7.4

Since Jun 10Pushed 3y agoCompare

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

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

Tinkoff Invest V1 instruments service rest client
=================================================

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

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

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

- GetDividends - [https://tinkoff.github.io/investAPI/swagger-ui/#/InstrumentsService/InstrumentsService\_GetDividends](https://tinkoff.github.io/investAPI/swagger-ui/#/InstrumentsService/InstrumentsService_GetDividends)
- GetCountries - [https://tinkoff.github.io/investAPI/swagger-ui/#/InstrumentsService/InstrumentsService\_GetCountries](https://tinkoff.github.io/investAPI/swagger-ui/#/InstrumentsService/InstrumentsService_GetCountries)
- GetBondCoupons - [https://tinkoff.github.io/investAPI/swagger-ui/#/InstrumentsService/InstrumentsService\_GetBondCoupons](https://tinkoff.github.io/investAPI/swagger-ui/#/InstrumentsService/InstrumentsService_GetBondCoupons)
- GetAssets - [https://tinkoff.github.io/investAPI/swagger-ui/#/InstrumentsService/InstrumentsService\_GetAssets](https://tinkoff.github.io/investAPI/swagger-ui/#/InstrumentsService/InstrumentsService_GetAssets)
- FindInstrument - [https://tinkoff.github.io/investAPI/swagger-ui/#/InstrumentsService/InstrumentsService\_FindInstrument](https://tinkoff.github.io/investAPI/swagger-ui/#/InstrumentsService/InstrumentsService_FindInstrument)
- BondBy - [https://tinkoff.github.io/investAPI/swagger-ui/#/InstrumentsService/InstrumentsService\_BondBy](https://tinkoff.github.io/investAPI/swagger-ui/#/InstrumentsService/InstrumentsService_BondBy)

Methods interfaces:

- \\rocketfellows\\TinkoffInvestV1InstrumentsRestClient\\GetDividendsInterface
- \\rocketfellows\\TinkoffInvestV1InstrumentsRestClient\\GetCountriesInterface
- \\rocketfellows\\TinkoffInvestV1InstrumentsRestClient\\GetBondCouponsInterface
- \\rocketfellows\\TinkoffInvestV1InstrumentsRestClient\\GetAssetsInterface
- \\rocketfellows\\TinkoffInvestV1InstrumentsRestClient\\FindInstrumentInterface
- \\rocketfellows\\TinkoffInvestV1InstrumentsRestClient\\BondByInterface

Methods interfaces implementation aggregated in \\rocketfellows\\TinkoffInvestV1InstrumentsRestClient\\InstrumentsService.

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-instruments-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.1" - 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()
);
```

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

```
$instrumentsService = new InstrumentsService($client);
```

Get dividends method call example:

```
$dividends = $instrumentsService->getDividends([
    "figi" => "BBG004730RP0",
    "from" => "2022-05-28T15:38:52.283Z",
    "to" => '2022-08-18T15:38:52.283Z',
])
```

returns:

```
Array
(
    [dividends] => Array
        (
            [0] => Array
                (
                    [dividendNet] => Array
                        (
                            [currency] => rub
                            [units] => 52
                            [nano] => 530000000
                        )
                    [declaredDate] => 2022-06-30T00:00:00Z
                    [lastBuyDate] => 2022-07-18T00:00:00Z
                    [dividendType] =>
                    [recordDate] => 2022-07-20T00:00:00Z
                    [regularity] =>
                    [closePrice] => Array
                        (
                            [currency] => rub
                            [units] => 306
                            [nano] => 500000000
                        )
                    [yieldValue] => Array
                        (
                            [units] => 17
                            [nano] => 140000000
                        )
                    [createdAt] => 2022-06-10T02:05:32.707197Z
                )
        )
)
```

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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.3% 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

Every ~11 days

Total

2

Last Release

1421d 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 (43 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (8 commits)")

---

Tags

instruments-servicephprestsdktinkoff-invest

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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