Current section
Files
Jump to
Current section
Files
lib/adapters/bovespa_behaviour.ex
defmodule ExBovespa.Adapters.BovespaBehaviour do
@moduledoc """
Defines the functions implemented by Bovespa adapter
"""
@callback get_list() :: {:ok, String.t()} | {:error, :invalid_response}
@callback get_item(code :: String.t()) :: {:ok, String.t()} | {:error, :invalid_response}
@callback get_historical_file(year :: String.t()) ::
{:ok, binary()} | {:error, :invalid_response}
@callback get_historical_file(year :: String.t(), month :: String.t()) ::
{:ok, binary()} | {:error, :invalid_response}
@callback get_historical_file(year :: String.t(), month :: String.t(), day :: String.t()) ::
{:ok, binary()} | {:error, :invalid_response}
end