tai v0.0.11 Tai.TestSupport.Mock
Link to this section Summary
Link to this section Types
Link to this type
fee_info()
fee_info()
fee_info() :: Tai.Venues.FeeInfo.t()
fee_info() :: Tai.Venues.FeeInfo.t()
Link to this type
location()
location()
location() :: Tai.Markets.Location.t()
location() :: Tai.Markets.Location.t()
Link to this type
product()
product()
product() :: Tai.Venues.Product.t()
product() :: Tai.Venues.Product.t()
Link to this section Functions
Link to this function
mock_asset_balance(exchange_id, account_id, asset, free, locked)
Link to this function
mock_fee_info(fee_info)
Link to this function
mock_product(product)
Link to this function
push_market_feed_snapshot(location, bids, asks)
push_market_feed_snapshot(location, bids, asks)
push_market_feed_snapshot(
location :: location(),
bids :: map(),
asks :: map()
) ::
:ok
| {:error,
%WebSockex.FrameEncodeError{
__exception__: term(),
close_code: term(),
frame_payload: term(),
frame_type: term(),
reason: term()
}
| %WebSockex.ConnError{__exception__: term(), original: term()}
| %WebSockex.NotConnectedError{
__exception__: term(),
connection_state: term()
}
| %WebSockex.InvalidFrameError{__exception__: term(), frame: term()}}
push_market_feed_snapshot( location :: location(), bids :: map(), asks :: map() ) :: :ok | {:error, %WebSockex.FrameEncodeError{ __exception__: term(), close_code: term(), frame_payload: term(), frame_type: term(), reason: term() } | %WebSockex.ConnError{__exception__: term(), original: term()} | %WebSockex.NotConnectedError{ __exception__: term(), connection_state: term() } | %WebSockex.InvalidFrameError{__exception__: term(), frame: term()}}
Link to this function