Forex.Feed.API behaviour (forex v0.1.1)

View Source

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

Summary

Callbacks

get_current_rates(options)

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

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()}