nlplay/tinkoff-invest 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nlplay/tinkoff-invest

Composer 安装命令:

composer create-project nlplay/tinkoff-invest

包简介

Tinkoff invest REST API laravel facade

README 文档

README

Description

Official API documentation can be found here: https://tinkoffcreditsystems.github.io/invest-openapi/ https://tinkoffcreditsystems.github.io/invest-openapi/swagger-ui/

The package was build upon Illuminate\Support\Facades\Http.

Installation

1. Download the extension via composer:
composer require nlplay/tinkoff-invest
2. Publish the config file:
php artisan vendor:publish --tag=tinkoff-invest
3. Add you tinkoff key as described here https://tinkoffcreditsystems.github.io/invest-openapi/auth/ to .env:
TINKOFF_INVEST_TOKEN=

Usage

In order to make requests just use the Facade:

use Nlplay\TinkoffInvest\Facades\TinkoffInvest;

List of available methods (sb - sandbox):

orders(string $brokerAccountId = null)
ordersLimitOrder(string $figi, string $brokerAccountId = null)
ordersMarketOrder(string $figi, string $brokerAccountId = null)
ordersCancel(string $orderId, string $brokerAccountId = null)
portfolio(string $brokerAccountId = null)
portfolioCurrencies(string $brokerAccountId = null)
marketStocks()
marketBonds()
marketEtfs()
marketCurrencies()
marketOrderBook(string $figi, int $depth)
marketCandles(string $figi, string $from, string $to, string $interval)
marketSearchByFigi(string $figi)
marketSearchByTicker(string $ticker)
operations(string $from, string $to, string $brokerAccountId = null, string $figi = null)
userAccounts()
sbRegister()
sbCurrenciesBalance(string $brokerAccountId = null)
sbPositionsBalance(string $brokerAccountId = null)
sbRemove()
sbClear()

Example

use Nlplay\TinkoffInvest\Facades\TinkoffInvest;

$currencies = TinkoffInvest::marketCurrencies();

统计信息

  • 总下载量: 908
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固