tai v0.0.11 Tai.Venues.Adapter behaviour
Link to this section Summary
Link to this section Types
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 | :not_found | shared_error_reason()
amend_order_error_reason() :: :not_implemented | :not_found | shared_error_reason()
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
create_order_error_reason()
create_order_error_reason()
create_order_error_reason() ::
:not_implemented
| shared_error_reason()
| Tai.Trading.InsufficientBalanceError.t()
create_order_error_reason() :: :not_implemented | shared_error_reason() | Tai.Trading.InsufficientBalanceError.t()
Link to this type
credentials()
credentials()
credentials() :: map()
credentials() :: map()
Link to this type
order()
order()
order() :: Tai.Trading.Order.t()
order() :: Tai.Trading.Order.t()
Link to this type
order_response()
order_response()
order_response() :: Tai.Trading.OrderResponse.t()
order_response() :: Tai.Trading.OrderResponse.t()
Link to this type
product()
product()
product() :: Tai.Venues.Product.t()
product() :: Tai.Venues.Product.t()
Link to this type
venue_order_id()
venue_order_id()
venue_order_id() :: String.t()
venue_order_id() :: String.t()
Link to this section Callbacks
Link to this callback
amend_order(venue_order_id, amend_attrs, credentials)
amend_order(venue_order_id, amend_attrs, credentials)
amend_order(venue_order_id(), amend_attrs(), credentials()) ::
{:ok, order_response()} | {:error, amend_order_error_reason()}
amend_order(venue_order_id(), amend_attrs(), credentials()) :: {:ok, order_response()} | {:error, amend_order_error_reason()}
Link to this callback
asset_balances(exchange_id, account_id, credentials)
asset_balances(exchange_id, account_id, credentials)
asset_balances(
exchange_id :: atom(),
account_id :: atom(),
credentials :: map()
) :: {:ok, [asset_balance()]} | {:error, reason :: term()}
asset_balances( exchange_id :: atom(), account_id :: atom(), credentials :: map() ) :: {:ok, [asset_balance()]} | {:error, reason :: term()}
Link to this callback
cancel_order(venue_order_id, credentials)
cancel_order(venue_order_id, credentials)
cancel_order(venue_order_id(), credentials()) ::
{:ok, venue_order_id()} | {:error, cancel_order_error_reason()}
cancel_order(venue_order_id(), credentials()) :: {:ok, venue_order_id()} | {:error, cancel_order_error_reason()}
Link to this callback
create_order(order, credentials)
create_order(order, credentials)
create_order(order(), credentials()) ::
{:ok, order_response()} | {:error, create_order_error_reason()}
create_order(order(), credentials()) :: {:ok, order_response()} | {:error, create_order_error_reason()}
Link to this callback
maker_taker_fees(exchange_id, account_id, credentials)
Link to this callback
order_book_feed()
order_book_feed()
order_book_feed() :: atom()
order_book_feed() :: atom()
Link to this callback
products(exchange_id)
Link to this callback
stream_supervisor()
stream_supervisor()
stream_supervisor() :: atom()
stream_supervisor() :: atom()