View Source ExFinancialModelingPrep.Helpers (ex_financial_modeling_prep v0.1.2)
Assist with assigning and defining type
Link to this section Summary
Functions
DO NOT USE: Creates a struct file in root directory for ease of development and speeding up process. Should be yetted after project is completed.
Informs string type :date, :date_time, :string
Helper to quickly define types
Parses Binary string to appropriate type
Helper function to convert a map into specified defstruct when parsing through HTTP response with defined structs
Link to this section Functions
DO NOT USE: Creates a struct file in root directory for ease of development and speeding up process. Should be yetted after project is completed.
Informs string type :date, :date_time, :string
Helper to quickly define types
Parses Binary string to appropriate type
examples
Examples
iex> ExFinancialModelingPrep.Helpers.parse_binary("2022-10-31")
~D[2022-10-31]
iex> ExFinancialModelingPrep.Helpers.parse_binary("2022-10-27 18:01:14")
~U[2022-10-27 18:01:14Z]
iex> ExFinancialModelingPrep.Helpers.parse_binary("AAPL")
"AAPL"
Helper function to convert a map into specified defstruct when parsing through HTTP response with defined structs