mmaurice/tinkoff-invest-api

Тинкофф Инвестиции API 库

0.1.0 2020-11-30 21:46 UTC

This package is auto-updated.

Last update: 2024-09-29 05:56:11 UTC


README

Language Language

用于操作Тинькофф Инвестиции API的PHP工具。该项目基于ApiGate框架。请求和响应符合官方文档中指定的模式。

实现的方法

sandbox

  • POST-method /sandbox/register
  • POST-method /sandbox/currencies/balance
  • POST-method /sandbox/positions/balance
  • POST-method /sandbox/remove
  • POST-method /sandbox/clear

orders

  • GET-method /orders
  • POST-method /orders/limit-order
  • POST-method /orders/market-order
  • POST-method /orders/cancel

portfolio

  • GET-method /portfolio
  • GET方法 /portfolio/currencies

市场

  • GET方法 /market/stocks
  • GET方法 /market/bonds
  • GET方法 /market/etfs
  • GET方法 /market/currencies
  • GET方法 /market/orderbook
  • GET方法 /market/candles
  • GET方法 /market/search/by-figi
  • GET方法 /market/search/by-ticker

操作

  • GET方法 /operations

用户

  • GET方法 /user/accounts

安装

安装通过Composer进行

composer require mmaurice/tinkoff-invest-api

代码示例

/example目录中提供了代码示例。要使用此库,需要为sandbox(在/example/configs/SandboxConfig中)和production(在/example/configs/Config中)环境指定自己的token,并且需要先完成授权过程。

链接