Download the PHP package rocketfellows/tinkoff-invest-v1-instruments-rest-client without Composer
On this page you can find all versions of the php package rocketfellows/tinkoff-invest-v1-instruments-rest-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package tinkoff-invest-v1-instruments-rest-client
Tinkoff Invest V1 instruments service rest client
Simple implementation of tinkoff invest v1 instruments service. So far provides methods:
- GetDividends - https://tinkoff.github.io/investAPI/swagger-ui/#/InstrumentsService/InstrumentsService_GetDividends
- GetCountries - https://tinkoff.github.io/investAPI/swagger-ui/#/InstrumentsService/InstrumentsService_GetCountries
- GetBondCoupons - https://tinkoff.github.io/investAPI/swagger-ui/#/InstrumentsService/InstrumentsService_GetBondCoupons
- GetAssets - https://tinkoff.github.io/investAPI/swagger-ui/#/InstrumentsService/InstrumentsService_GetAssets
- FindInstrument - https://tinkoff.github.io/investAPI/swagger-ui/#/InstrumentsService/InstrumentsService_FindInstrument
- 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
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
"rocketfellows/tinkoff-invest-v1-rest-client": "1.0.1" - as a common http client.
Usage examples
Common http client configuration:
Instruments service configuration (or interface specific method configuration via DI):
Get dividends method call example:
returns:
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.