定制 brtdv/twelvedata-php-sdk 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

brtdv/twelvedata-php-sdk

最新稳定版本:v0.1.1

Composer 安装命令:

composer require brtdv/twelvedata-php-sdk

包简介

Unofficial SDK for the TwelveData.com API

README 文档

README

Latest Version Software License

Unofficial PHP SDK for the TwelveData stock API service. This SDK contains methods for easy interaction with the TwelveData API. This SDK is not yet feature complete. This is however the long term goal. Below are some examples and lists of what exactly is implemented at this moment. The implementation of this library is heavily based on the implementation of the Mailgun SDK.

Installation

To use this SDK, you'll need to add it to your project using Composer. This SDK is not hard coupled to Guzzle, Buzz, or any other PHP library that sends and receives HTTP messages, and uses PSR-18 abstraction. You can choose your own PSR-7 implementation and PSR-7 HTTP client you want to use.

To get started quickly you can use symfony/http-client and nyholm/psr7, but feel free to replace these with the implementations of your choice.

composer require brtdv/twelvedata-php-sdk symfony/http-client nyholm/psr7

Usage

use Brtdv\TwelveData\TwelveData;

// Initialize a TwelveData API instance
$twelveDataApi = TwelveData::create('<your api key here>');

// Get a list off Stock Symbols
$response = $twelveDataApi->referenceData()->stocksList([
    'symbol'   => 'AAPL',
    'interval' => '1min'
]);

// Get the 1min candles for the AAPL symbol
$response = $twelveDataApi->coreData()->timeSeries([
    'symbol'   => 'AAPL',
    'interval' => '1min'
]);

You will find more detailed documentation in the /docs folder. For more information about the TwelveData API, check out the TwelveData API docs.

Obtaining an API key

You can obtain an API key by creating an account on TwelveData.com and navigating to the "API Keys" section of the admin console.

What's included? What's missing?

As stated: this SDK implementation is not yet feature complete. A lot of API calls are missing at the moment, and additional real-time WebSocket API calls are also not included at this moment. Feel free to contribute any missing API calls through a PR.

Contribute

Something missing from the SDK? Consider posting a PR with your changes. Feel free to contribute in any way.

Support and Feedback

This SDK is provided AS IS and is not officially affiliated with TwelveData. For API support, check out the TwelveData website.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固