承接 radicalloop/eodhistoricaldata 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

radicalloop/eodhistoricaldata

最新稳定版本:9.0.1

Composer 安装命令:

composer require radicalloop/eodhistoricaldata

包简介

Wrapper for eodhistoricaldata.com

README 文档

README

Build Status Latest Stable Version Total Downloads License

Installation

To install this package via the composer require command:

$ composer require radicalloop/eodhistoricaldata
## Laravel No configuration required for Laravel >= 5.5+, It will use the auto-discovery function. In Laravel <= 5.4 (or if you are not using auto-discovery) register the service provider by adding it to the `providers` key in `config/app.php`. Also register the facade by adding it to the `aliases` key in `config/app.php`. ```php 'providers' => [ ... RadicalLoop\Eod\EodServiceProvider::class, ], 'aliases' => [ ... 'Eod' => RadicalLoop\Eod\Facades\Eod::class, ] 

Configuration

To get started, you'll need to publish all vendor assets:

$ php artisan vendor:publish --provider="RadicalLoop\Eod\EodServiceProvider"

This will create a config/eod.php file in your app that you can modify to set your configuration.

Set your Eod historical data API token in the file:

return [ 'api_token' => 'put your token here' ];

Usage

Here you can see an example of just how simple this package is to use.

Stocks API

use Eod; $stock = Eod::stock(); // JSON  $stock->realTime('AAPL.US')->json(); $stock->eod('AAPL.US')->json(); // Download CSV  $stock->realTime('AAPL.US' ['s' => ['VTI','EUR','FX']])->download(); $stock->eod('AAPL.US')->download(); // Save CSV to specific path $stock->realTime('AAPL.US')->save('path/to/save/csv/stock.csv'); // For other parameters, for ex. dividend api with other params $stock->dividend('AAPL.US', ['from' => '2017-01-01'])->json();

To check other Stock API usages, refer Test Cases here.

Exchanges API

use Eod; $exchange = Eod::exchange(); // JSON  $exchange->symbol('US')->json(); $exchange->multipleTicker('US')->json(); $exchange->details('US')->json(); // Download CSV  $exchange->symbol('US')->download(); $exchange->multipleTicker('US')->download(); // Save CSV to specific path $exchange->symbol('US')->save('path/to/save/csv/stock.csv');

To check other Exchanges API usages, refer Test Cases here.

PHP

For PHP you can create an object like below.

use RadicalLoop\Eod\Config; use RadicalLoop\Eod\Eod; $stock = (new Eod(new Config($apiToken)))->stock(); $exchange = (new Eod(new Config($apiToken)))->exchange();

Support

Contact: www.radicalloop.comhello@radicalloop.com

统计信息

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

GitHub 信息

  • Stars: 22
  • Watchers: 2
  • Forks: 19
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固