PHPackages                             rocketfellows/tinkoff-invest-v1-market-data-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. rocketfellows/tinkoff-invest-v1-market-data-rest-client

ActiveLibrary

rocketfellows/tinkoff-invest-v1-market-data-rest-client
=======================================================

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

Since Jul 12Pushed 3y agoCompare

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

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

Tinkoff Invest V1 market data service rest client
=================================================

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

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

Simple implementation of tinkoff invest v1 market data service. Provides methods:

- GetLastPrices - [https://tinkoff.github.io/investAPI/swagger-ui/#/MarketDataService/MarketDataService\_GetLastPrices](https://tinkoff.github.io/investAPI/swagger-ui/#/MarketDataService/MarketDataService_GetLastPrices)
- GetTradingStatus - [https://tinkoff.github.io/investAPI/swagger-ui/#/MarketDataService/MarketDataService\_GetTradingStatus](https://tinkoff.github.io/investAPI/swagger-ui/#/MarketDataService/MarketDataService_GetTradingStatus)
- GetOrderBook - [https://tinkoff.github.io/investAPI/swagger-ui/#/MarketDataService/MarketDataService\_GetOrderBook](https://tinkoff.github.io/investAPI/swagger-ui/#/MarketDataService/MarketDataService_GetOrderBook)
- GetLastTrades - [https://tinkoff.github.io/investAPI/swagger-ui/#/MarketDataService/MarketDataService\_GetLastTrades](https://tinkoff.github.io/investAPI/swagger-ui/#/MarketDataService/MarketDataService_GetLastTrades)
- GetCandles - [https://tinkoff.github.io/investAPI/swagger-ui/#/MarketDataService/MarketDataService\_GetCandles](https://tinkoff.github.io/investAPI/swagger-ui/#/MarketDataService/MarketDataService_GetCandles)

Methods interfaces:

- \\rocketfellows\\TinkoffInvestV1MarketDataRestClient\\GetTradingStatusInterface
- \\rocketfellows\\TinkoffInvestV1MarketDataRestClient\\GetOrderBookInterface
- \\rocketfellows\\TinkoffInvestV1MarketDataRestClient\\GetLastTradesInterface
- \\rocketfellows\\TinkoffInvestV1MarketDataRestClient\\GetLastPricesInterface
- \\rocketfellows\\TinkoffInvestV1MarketDataRestClient\\GetCandlesInterface

Methods interfaces implementation aggregated in \\rocketfellows\\TinkoffInvestV1MarketDataRestClient\\MarketDataService.

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-market-data-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()
);
```

Market data service configuration (or interface specific method configuration via DI):

```
$marketDataService = new MarketDataService($client);
```

Get instruments last prices method call example:

```
$marketDataService->getLastPrices([
    'figi' => ['BBG004730RP0', 'BBG00TW9WTR3'],
]);
```

Result scheme you can find here: [https://tinkoff.github.io/investAPI/swagger-ui/#/MarketDataService/MarketDataService\_GetLastPrices](https://tinkoff.github.io/investAPI/swagger-ui/#/MarketDataService/MarketDataService_GetLastPrices)

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 90.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

1400d 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] (1 commits)")

---

Tags

market-data-servicephprestsdktinkoff-invest

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

PHPackages © 2026

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