tai v0.0.21 Tai.Venue
Link to this section Summary
Link to this section Types
Link to this type
account_id()
account_id()
account_id() :: Tai.Venues.Adapter.account_id()
account_id() :: Tai.Venues.Adapter.account_id()
Link to this type
adapter()
adapter()
adapter() :: Tai.Venues.Adapter.t()
adapter() :: Tai.Venues.Adapter.t()
Link to this type
amend_attrs()
amend_attrs()
amend_attrs() :: Tai.Trading.Orders.Amend.attrs()
amend_attrs() :: Tai.Trading.Orders.Amend.attrs()
Link to this type
amend_order_error_reason()
amend_order_error_reason()
amend_order_error_reason() :: :not_implemented | shared_error_reason()
amend_order_error_reason() :: :not_implemented | shared_error_reason()
Link to this type
amend_response()
amend_response()
amend_response() :: Tai.Trading.OrderResponses.Amend.t()
amend_response() :: Tai.Trading.OrderResponses.Amend.t()
Link to this type
asset_balance()
asset_balance()
asset_balance() :: Tai.Venues.AssetBalance.t()
asset_balance() :: Tai.Venues.AssetBalance.t()
Link to this type
cancel_order_error_reason()
cancel_order_error_reason()
cancel_order_error_reason() ::
:not_implemented | :not_found | shared_error_reason()
cancel_order_error_reason() :: :not_implemented | :not_found | shared_error_reason()
Link to this type
cancel_response()
cancel_response()
cancel_response() ::
Tai.Trading.OrderResponses.Cancel.t()
| Tai.Trading.OrderResponses.CancelAccepted.t()
cancel_response() :: Tai.Trading.OrderResponses.Cancel.t() | Tai.Trading.OrderResponses.CancelAccepted.t()
Link to this type
create_order_error_reason()
create_order_error_reason()
create_order_error_reason() ::
:not_implemented
| {:insufficient_balance, reason :: term()}
| shared_error_reason()
create_order_error_reason() :: :not_implemented | {:insufficient_balance, reason :: term()} | shared_error_reason()
Link to this type
create_response()
create_response()
create_response() ::
Tai.Trading.OrderResponses.Create.t()
| Tai.Trading.OrderResponses.CreateAccepted.t()
create_response() :: Tai.Trading.OrderResponses.Create.t() | Tai.Trading.OrderResponses.CreateAccepted.t()
Link to this type
order()
order()
order() :: Tai.Trading.Order.t()
order() :: Tai.Trading.Order.t()
Link to this type
position()
position()
position() :: Tai.Trading.Position.t()
position() :: Tai.Trading.Position.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
amend_order(order, attrs, adapters \\ Tai.Venues.Config.parse_adapters())
Link to this function
asset_balances(adapter, account_id)
asset_balances(adapter, account_id)
asset_balances(adapter(), account_id()) :: {:ok, [asset_balance()]}
asset_balances(adapter(), account_id()) :: {:ok, [asset_balance()]}
Link to this function
cancel_order(order, adapters \\ Tai.Venues.Config.parse_adapters())
Link to this function
create_order(order, adapters \\ Tai.Venues.Config.parse_adapters())
Link to this function
maker_taker_fees(adapter, account_id)
maker_taker_fees(adapter, account_id)
maker_taker_fees(adapter :: adapter(), account_id()) ::
{:ok, {maker :: Decimal.t(), taker :: Decimal.t()}}
maker_taker_fees(adapter :: adapter(), account_id()) :: {:ok, {maker :: Decimal.t(), taker :: Decimal.t()}}
Link to this function
positions(adapter, account_id)
positions(adapter, account_id)
positions(adapter(), account_id()) ::
{:ok, [position()]} | {:error, :not_supported | shared_error_reason()}
positions(adapter(), account_id()) :: {:ok, [position()]} | {:error, :not_supported | shared_error_reason()}
Link to this function