The SecQDb
library exposes data from SEC Financial Statement Data Sets, available here. The data sets provide selected information extracted from exhibits to corporate financial reports filed with the Commission using eXtensible Business Reporting Language (XBRL).
Working with the SecQDb
library is straightforward:
- Download a data set from the SEC Financial Statement Data Sets page.
- Unzip the data set files into a folder.
- Reference the
JeffFerguson.SecQDb.dll
assembly in your .NET project. - Create an instance of the
JeffFerguson.SecQDb.QuarterlyDatabase
class. The class implementsIDisposable
, so the creation of the object should be wrapped in ausing
clause so that the data set files can be closed when the object is disposed. - Call
Load()
on the newJeffFerguson.SecQDb.QuarterlyDatabase
object, passing in as a parameter the path to the folder in which the data set was unzipped.
public void SimpleExample()
{
using (var qdb = new JeffFerguson.SecQDb.QuarterlyDatabase())
{
var loadSuccess = qdb.Load(@"C:\Users\You\Desktop\DataSetUnzipFolder");
}
}
Once the document is loaded, you can use properties on the QuarterlyDatabase
object to inspect the properties of the loaded database.
The library builds against .NET Standard 1.6, which makes the code buildable on the following platforms:
- .NET Core 1.0
- .NET Framework 4.6.2
- Mono 4.6
- Xamarin.iOS 10.0
- Xamarin.Android 7.0
- Universal Windows Platform 10.0