Tai.TestSupport.Mock (tai v0.0.75)
Link to this section Summary
Link to this section Types
Link to this type
asset()
Specs
asset() :: Tai.Venues.Account.asset()
Link to this type
balance()
Specs
Link to this type
credential_id()
Specs
credential_id() :: Tai.Venue.credential_id()
Link to this type
fee_info()
Specs
fee_info() :: Tai.Venues.FeeInfo.t()
Link to this type
location()
Specs
location() :: Tai.Markets.Location.t()
Link to this type
product()
Specs
product() :: Tai.Venues.Product.t()
Link to this type
record()
Specs
record() :: Stored.Backend.record()
Link to this type
record_key()
Specs
record_key() :: Stored.Backend.key()
Link to this type
venue()
Specs
venue() :: Tai.Venue.t()
Link to this type
venue_id()
Specs
venue_id() :: Tai.Venue.id()
Link to this section Functions
Link to this function
mock_account(venue_id, credential_id, asset, free, locked)
Specs
mock_account(venue_id(), credential_id(), asset(), balance(), balance()) :: {:ok, {record_key(), record()}}
Link to this function
mock_advisor_config(attrs)
Specs
mock_advisor_config(map()) :: {:ok, {record_key(), record()}}
Link to this function
mock_fee_info(fee_info)
Specs
Link to this function
mock_fleet_config(attrs)
Specs
mock_fleet_config(map()) :: {:ok, {record_key(), record()}}
Link to this function
mock_product(product)
Specs
Link to this function
mock_venue(venue)
Specs
Link to this function
push_market_data_snapshot(location, bids, asks)
This function is deprecated. Use Tai.TestSupport.Mock.push_order_book_snapshot/3 instead..
Specs
Link to this function
push_order_book_snapshot(location, bids, asks)
Specs
Link to this function
push_order_update(venue_id, attrs)
Specs
Link to this function
push_trade(trade)
Specs
push_trade(Tai.Markets.Trade.t()) :: no_return()