View Source ExFinancialModelingPrep.Helpers (ex_financial_modeling_prep v0.1.0)

Link to this section Summary

Functions

Helper to quickly define types modules

Helper function to convert a map into specified defstruct when parsing through HTTP response with defined structs

Link to this section Functions

Link to this function

defined_struct_type(item)

View Source
@spec defined_struct_type(map()) :: list()

Helper to quickly define types modules

Link to this function

resource_to_struct(resource, struct)

View Source
@spec resource_to_struct(map(), any()) :: %{
  :__struct__ => any(),
  optional(any()) => any()
}

Helper function to convert a map into specified defstruct when parsing through HTTP response with defined structs