tai v0.0.28 Tai.Trading.Orders

Link to this section Summary

Link to this section Types

Link to this type

amend_attrs()

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

amend_error_reason()

amend_error_reason() :: {:invalid_status, status_was(), status_required()}
Link to this type

cancel_error_reason()

cancel_error_reason() :: {:invalid_status, status_was(), status_required()}
Link to this type

status_required()

status_required() :: status() | [status()]
Link to this type

status_was()

status_was() :: status()

Link to this section Functions

Link to this function

amend(order, attrs)

amend(order(), amend_attrs()) ::
  {:ok, updated :: order()} | {:error, amend_error_reason()}

See Tai.Trading.Orders.Amend.amend/2.

Link to this function

broadcast(order)

broadcast(order()) :: :ok
Link to this function

cancel(order)

cancel(order()) :: {:ok, updated :: order()} | {:error, cancel_error_reason()}

See Tai.Trading.Orders.Cancel.cancel/1.

Link to this function

create(submission)

create(submission()) :: {:ok, order()}

See Tai.Trading.Orders.Create.create/1.

Link to this function

updated!(previous, updated)

updated!(order() | nil, order()) :: :ok