Exchange v0.2.3 Exchange.Adapters.Flux View Source

Public API to use the adapter of Exchange.TimeSeries, the Flux. This module uses the InfluxDB to write and query the data To use this adapter is necessary to add the Instream.Connection to the dependencies.

  config :exchange, Exchange.Adapters.Flux.Connection,
    database: System.get_env("FLUX_DB_NAME") || "dbname",
    host: System.get_env("FLUX_DB_HOST") || "localhost",
    port: System.get_env("FLUX_DB_PORT") || 8086`

Link to this section Summary

Link to this section Functions

Link to this function

completed_trades(ticker)

View Source

Callback implementation for Exchange.TimeSeries.completed_trades/1.

Link to this function

completed_trades_by_id(ticker, trader_id)

View Source

Callback implementation for Exchange.TimeSeries.completed_trades_by_id/2.

Link to this function

get_completed_trade_by_trade_id(ticker, trade_id)

View Source

Specs

get_completed_trade_by_trade_id(ticker :: atom(), trade_id :: String.t()) ::
  Exchange.Trade

Callback implementation for Exchange.TimeSeries.get_completed_trade_by_trade_id/2.

Callback implementation for Exchange.TimeSeries.get_live_orders/1.

Link to this function

validate_config(config \\ [])

View Source