tai v0.0.1 Tai.Exchanges.Account

Uniform interface for private exchange actions

Link to this section Summary

Functions

Create a buy limit order from the given order struct. It returns an error tuple when the type is not accepted

Create a buy limit order on the exchange with the given

Cancels the order on the exchange and returns the order_id

Fetches the status of the order from the exchange

Create a sell limit order from the given order struct. It returns an error tuple when the type is not accepted

Create a sell limit order on the exchange with the given

Returns an atom which identifies the process for the given exchange_id

Link to this section Functions

Link to this function balance(exchange_id)
Link to this function buy_limit(order)

Create a buy limit order from the given order struct. It returns an error tuple when the type is not accepted.

{:error, %OrderResponses.InvalidOrderType{}}

Link to this function buy_limit(exchange_id, symbol, price, size)

Create a buy limit order on the exchange with the given

  • symbol
  • price
  • size
Link to this function cancel_order(exchange_id, order_id)

Cancels the order on the exchange and returns the order_id

Link to this function order_status(exchange_id, order_id)

Fetches the status of the order from the exchange

Link to this function sell_limit(order)

Create a sell limit order from the given order struct. It returns an error tuple when the type is not accepted.

{:error, %OrderResponses.InvalidOrderType{}}

Link to this function sell_limit(exchange_id, symbol, price, size)

Create a sell limit order on the exchange with the given

  • symbol
  • price
  • size
Link to this function to_name(exchange_id)

Returns an atom which identifies the process for the given exchange_id

Examples

iex> Tai.Exchanges.Account.to_name(:my_test_exchange) :exchanges_account_my_test_exchange