Exchange v0.2.3 Exchange.TimeSeries behaviour View Source
Behaviour that a time series database must implement to be able to communicate with the Exchange.
Link to this section Summary
Callbacks
Function that fetches the completed trades from a market which a specific user participated.
Function that fetches the completed trades from a market which a specific user participated.
Function that fetches a completed trade from a exchange that matches a trade id
Function that fetches the active orders of the application. It is called when the application starts running allowing the recovery of the previous state when a crash happens.
Link to this section Callbacks
Specs
completed_trades(atom()) :: [Exchange.Trade]
Function that fetches the completed trades from a market which a specific user participated.
Specs
Function that fetches the completed trades from a market which a specific user participated.
Specs
Function that fetches a completed trade from a exchange that matches a trade id
Specs
get_live_orders(atom()) :: [Exchange.Order]
Function that fetches the active orders of the application. It is called when the application starts running allowing the recovery of the previous state when a crash happens.