tai v0.0.48 Tai.Venue

Link to this section Summary

Link to this section Types

Link to this type

account()

account() :: Tai.Venues.Account.t()
Link to this type

adapter()

adapter() :: Tai.Venues.Adapter.t()
Link to this type

amend_attrs()

amend_attrs() :: Tai.Trading.Orders.Amend.attrs()
Link to this type

amend_bulk_attrs()

amend_bulk_attrs() :: Tai.Trading.Orders.AmendBulk.attrs()
Link to this type

amend_bulk_order_error_reason()

amend_bulk_order_error_reason() :: Tai.Venues.Adapter.amend_order_error_reason()
Link to this type

amend_bulk_response()

amend_bulk_response() :: Tai.Trading.OrderResponses.AmendBulk.t()
Link to this type

amend_order_error_reason()

amend_order_error_reason() :: Tai.Venues.Adapter.amend_order_error_reason()
Link to this type

amend_response()

amend_response() :: Tai.Trading.OrderResponses.Amend.t()
Link to this type

cancel_order_error_reason()

cancel_order_error_reason() :: Tai.Venues.Adapter.cancel_order_error_reason()
Link to this type

channel()

channel() :: atom()
Link to this type

create_order_error_reason()

create_order_error_reason() :: Tai.Venues.Adapter.create_order_error_reason()
Link to this type

credential()

credential() :: map()
Link to this type

credential_id()

credential_id() :: atom()
Link to this type

credentials()

credentials() :: %{required(credential_id()) => account()}
Link to this type

id()

id() :: atom()
Link to this type

position()

position() :: Tai.Trading.Position.t()
Link to this type

positions_error_reason()

positions_error_reason() :: Tai.Venues.Adapter.positions_error_reason()
Link to this type

product()

product() :: Tai.Venues.Product.t()
Link to this type

shared_error_reason()

shared_error_reason() :: Tai.Venues.Adapter.shared_error_reason()
Link to this type

t()

t() :: %Tai.Venue{
  accounts: String.t() | function(),
  adapter: adapter(),
  channels: [channel()],
  credentials: credentials(),
  id: id(),
  opts: map(),
  products: String.t() | function(),
  quote_depth: pos_integer(),
  timeout: non_neg_integer()
}

Link to this section Functions

Link to this function

accounts(venue, credential_id)

accounts(t(), credential_id()) ::
  {:ok, [account()]} | {:error, shared_error_reason()}
This function is deprecated. Use Tai.Venues.Client.accounts/2 instead..
Link to this function

amend_bulk_orders(orders_and_attributes, adapters \\ Tai.Venues.Config.parse())

This function is deprecated. Use Tai.Venues.Client.amend_bulk_orders/2 instead..
Link to this function

amend_order(order, attrs, adapters \\ Tai.Venues.Config.parse())

This function is deprecated. Use Tai.Venues.Client.amend_order/3 instead..
Link to this function

cancel_order(order, adapters \\ Tai.Venues.Config.parse())

This function is deprecated. Use Tai.Venues.Client.cancel_order/2 instead..
Link to this function

create_order(order, adapters \\ Tai.Venues.Config.parse())

This function is deprecated. Use Tai.Venues.Client.create_order/2 instead..
Link to this function

maker_taker_fees(venue, credential_id)

maker_taker_fees(t(), credential_id()) ::
  {:ok, {maker :: Decimal.t(), taker :: Decimal.t()} | nil}
  | {:error, shared_error_reason()}
This function is deprecated. Use Tai.Venues.Client.maker_taker_fees/2 instead..
Link to this function

positions(venue, credential_id)

positions(t(), credential_id()) ::
  {:ok, [position()]} | {:error, positions_error_reason()}
This function is deprecated. Use Tai.Venues.Client.positions/2 instead..
Link to this function

products(venue_adapter)

products(t()) :: {:ok, [product()]} | {:error, shared_error_reason()}
This function is deprecated. Use Tai.Venues.Client.products/1 instead..