定制 jadchaar/sec-edgar-downloader 二次开发

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

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

jadchaar/sec-edgar-downloader

Composer 安装命令:

composer require jadchaar/sec-edgar-downloader

包简介

A port of jadchaar/sec-edgar-downloader from the python library

README 文档

README

Ported over from python. Original Repo: [https://github.com/jadchaar/sec-edgar-downloader/blob/master/sec_edgar_downloader]

Installation

To add this library to your composer.json file, you can run the following command in your project directory:

composer require jadchaar/sec_edgar_downloader

Note your composer file will need to allow development level stability to use for now.

Example Usage

 use Jadchaar\SecEdgarDownloader\Downloader;
 $filepath = 'sec-documents/';
 $downloader = new Downloader($filepath);
 $filing = '10-K';
 $ticker_or_cik = 'AAPL';
 $amount = 10;
 $before_date = '2023-08-19';
 $after_date = '2021-01-01';
 $include_amends = true;
 $download_details = true;
 $query = '';
 $user_agent = 'Company Name employee@company.com';
 
 $num_filings = $downloader->get(
     $filing,
     $ticker_or_cik,
     $amount,
     $before_date,
     $after_date,
     $include_amends,
     $download_details,
     $query,
     $user_agent
 );
 
 echo "Number of unique filings downloaded: " . $num_filings;

Todo List

  • Abstract HTTP client
  • Parameterize rate limit with default
  • Allow downloading different file types
  • Enable different file type paths besides local file systems

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-18