simfin-1.0.0: A library to fetch and parse financial data from the SimFin(+) API.
Copyright(c) Owen Shepherd 2022
LicenseMIT
Maintainerowen@owen.cafe
Safe HaskellNone
LanguageHaskell2010

SimFin.Types.StatementQuery

Description

 
Synopsis

Documentation

data StatementQuery Source #

This represents all options the statement endpoint supports, minus the "statement" parameter itself, which is set by simply calling the right function. Some of these parameters are only available to SimFin+ users. For free users, please use StatementQueryFree. If you provide a zero-length list for any field, the query parameter will be omitted, and the API will try to return all relevant available statements.

Instances

Instances details
Show StatementQuery Source # 
Instance details

Defined in SimFin.Types.StatementQuery

data StatementQueryFree Source #

This is a subset of the StatementQuery type, which models the parameters available to non-SimFin+ users.

Constructors

StatementQueryFree 

statementQueryToQueryParams :: StatementQuery -> [QueryParam] Source #

Turn a StatementQuery into query parameters for the SimFin "statements" endpoint.

statementQueryFreeToQueryParams :: StatementQueryFree -> [QueryParam] Source #

Turn a StatementQueryFree into query parameters for the SimFin "statements" endpoint.