Tai.Venues.Client (tai v0.0.65)

Link to this section Summary

Link to this section Types

Specs

account() :: Tai.Venues.Account.t()
Link to this type

amend_attrs()

Specs

amend_attrs() :: Tai.Orders.Worker.amend_attrs()
Link to this type

amend_bulk_attrs()

Specs

amend_bulk_attrs() :: Tai.Orders.Worker.amend_attrs()
Link to this type

amend_bulk_order_error_reason()

Specs

amend_bulk_order_error_reason() :: Tai.Venues.Adapter.amend_order_error_reason()
Link to this type

amend_bulk_response()

Specs

amend_bulk_response() :: Tai.Orders.Responses.AmendBulk.t()
Link to this type

amend_order_error_reason()

Specs

amend_order_error_reason() :: Tai.Venues.Adapter.amend_order_error_reason()
Link to this type

amend_response()

Specs

amend_response() :: Tai.Orders.Responses.Amend.t()
Link to this type

cancel_order_error_reason()

Specs

cancel_order_error_reason() :: Tai.Venues.Adapter.cancel_order_error_reason()
Link to this type

cancel_response()

Specs

Link to this type

create_order_error_reason()

Specs

create_order_error_reason() :: Tai.Venues.Adapter.create_order_error_reason()
Link to this type

create_response()

Specs

Link to this type

credential_id()

Specs

credential_id() :: Tai.Venue.credential_id()
Link to this type

funding_rate()

Specs

funding_rate() :: Tai.Venues.FundingRate.t()

Specs

order() :: Tai.Orders.Order.t()

Specs

position() :: Tai.Trading.Position.t()
Link to this type

positions_error_reason()

Specs

positions_error_reason() :: Tai.Venues.Adapter.positions_error_reason()

Specs

product() :: Tai.Venues.Product.t()
Link to this type

shared_error_reason()

Specs

shared_error_reason() :: Tai.Venues.Adapter.shared_error_reason()

Specs

venue() :: Tai.Venue.t()

Link to this section Functions

Link to this function

accounts(venue, credential_id)

Specs

accounts(venue(), credential_id()) ::
  {:ok, [account()]} | {:error, shared_error_reason()}
Link to this function

amend_bulk_orders(orders_and_attributes, venue_provider \\ Tai.Venues.VenueStore)

Link to this function

amend_order(order, attrs, venue_provider \\ Tai.Venues.VenueStore)

Link to this function

cancel_order(order, venue_provider \\ Tai.Venues.VenueStore)

Link to this function

create_order(order, venue_provider \\ Tai.Venues.VenueStore)

Link to this function

funding_rates(venue)

Specs

funding_rates(venue()) ::
  {:ok, [funding_rate()]} | {:error, shared_error_reason()}
Link to this function

maker_taker_fees(venue, credential_id)

Specs

maker_taker_fees(venue(), credential_id()) ::
  {:ok, {maker :: Decimal.t(), taker :: Decimal.t()} | nil}
  | {:error, shared_error_reason()}
Link to this function

positions(venue, credential_id)

Specs

positions(venue(), credential_id()) ::
  {:ok, [position()]} | {:error, positions_error_reason()}
Link to this function

products(venue)

Specs

products(venue()) :: {:ok, [product()]} | {:error, shared_error_reason()}