tai v0.0.11 Tai.Venue

Link to this section Summary

Link to this section Types

Link to this type

adapter()
adapter() :: Tai.Venues.Adapter.t()

Link to this type

amend_attrs()
amend_attrs() :: map()

Link to this type

amend_order_error_reason()
amend_order_error_reason() :: :not_implemented | shared_error_reason()

Link to this type

asset_balance()
asset_balance() :: Tai.Venues.AssetBalance.t()

Link to this type

cancel_order_error_reason()
cancel_order_error_reason() ::
  :not_implemented | :not_found | shared_error_reason()

Link to this type

config()
config() :: Tai.Config.t()

Link to this type

create_order_error_reason()
create_order_error_reason() ::
  :not_implemented
  | shared_error_reason()
  | Tai.Trading.InsufficientBalanceError.t()

Link to this type

order_response()
order_response() :: Tai.Trading.OrderResponse.t()

Link to this type

product()
product() :: Tai.Venues.Product.t()

Link to this type

shared_error_reason()
shared_error_reason() :: :timeout | Tai.CredentialError.t()

Link to this type

venue_order_id()
venue_order_id() :: String.t()

Link to this section Functions

Link to this function

amend_order(order, attrs, adapters \\ %{})

Link to this function

asset_balances(adapter, account_id)
asset_balances(adapter :: adapter(), account_id :: atom()) ::
  {:ok, [asset_balance()]}

Link to this function

cancel_order(order, adapters \\ %{})

Link to this function

create_order(order, adapters \\ %{})

Link to this function

maker_taker_fees(adapter, account_id)
maker_taker_fees(adapter :: adapter(), account_id :: atom()) ::
  {:ok, {maker :: Decimal.t(), taker :: Decimal.t()}}

Link to this function

products(adapter)
products(adapter :: adapter()) :: {:ok, [product()]}