tai v0.0.9 Tai.TestSupport.Mock

Link to this section Summary

Link to this section Types

Link to this section Functions

Link to this function mock_asset_balance(exchange_id, account_id, asset, free, locked)
mock_asset_balance(
  exchange_id :: atom(),
  account_id :: atom(),
  asset :: atom(),
  free :: number() | Decimal.t() | String.t(),
  locked :: number() | Decimal.t() | String.t()
) :: :ok
Link to this function mock_fee_info(fee_info)
mock_fee_info(fee_info() | map()) :: :ok
Link to this function mock_product(product)
mock_product(product() | map()) :: :ok
Link to this function 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()}}
Link to this function to_decimal(val)