Forex.Feed.API behaviour (Forex v0.2.1)

View Source

This module is responsible for defining the behaviour of the feed (HTTP) client.

Summary

Callbacks

get_historic_rates(options)

@callback get_historic_rates(options :: keyword()) :: {:ok, binary()} | {:error, term()}

get_last_ninety_days_rates(options)

@callback get_last_ninety_days_rates(options :: keyword()) ::
  {:ok, binary()} | {:error, term()}

get_latest_rates(options)

@callback get_latest_rates(options :: keyword()) :: {:ok, binary()} | {:error, term()}