0.0
No release in over 3 years
Low commit activity in last 3 years
A Ruby SDK for the SEC EDGAR API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

~> 6.1, >= 6.1.4.1
~> 0.19, >= 0.19.0
 Project Readme

sec-edgar-sdk

A ruby sdk for data.sec.gov

Installation

The gem can be installed with the following command:

gem install sec-edgar-sdk

Or add the gem to your Gemfile:

gem 'sec-edgar-sdk'

Running from the command prompt in irb:

irb -r sec-edgar-sdk

Usage

SecEdgar::FullTextSearch

Perform Full Text Search queries like:

https://www.sec.gov/edgar/search/

SEC Edgar Web Search

Similarly...

search_result = SecEdgar::FullTextSearch.perform(keys_typed: 'BRK')

When search_result.success? # true

Then search_result.to_h will look something like:

{
  :took => 6,
  :timed_out => false,
  :_shards => {:total => 1, :successful => 1, :skipped => 0, :failed => 0},
  :hits =>
   {
     :total => {:value=>10, :relation=>"eq"},
     :max_score => 845.7282,
     :hits =>
        [
          {
            :_index => "edgar_entity_20211002_040316",
            :_type => "_doc",
            :_id => "1067983",
            :_score => 845.7282,
            :_source =>
            {
              :entity => "BERKSHIRE HATHAWAY INC (BRK-B, BRK-A)",
              :entity_words => "BERKSHIRE HATHAWAY INC (BRK-B, BRK-A)",
              :tickers => "BRK-B, BRK-A",
              :rank => 59925561
            }
          },
          # ...
        ]
    }
}

Tests

bundle exec rspec

Contributing

Bug reports and pull requests are welcome here on GitHub!