API Reference tai v0.0.59

Modules

Tai

A behavior for implementing a server that receives events such as market quotes.

Advisor factory for sharing all subscribed products.

Commands to control tai in IEx

Global configuration for a tai instance. This module provides a utility function to hydrate a struct from the OTP Application environment.

Commands to control tai in IEx

Display accounts on each exchange with a non-zero balance

Display the list of maker/taker fees for tradable products

Display the available commands and their usage

Display the bid/ask for each symbol on all order book feeds

Display the list of orders and their details

Display the list of positions and their details

Display the list of products for each venue

Arbitratry precision arithmetic for assets

The venue a product can be traded

Manage price points for the order book of a product

A level of a side in an order book

Represents the inside bid & ask price point within the order book

Run time settings

Transform symbols between tai and exchange formats

Returned when there is a problem creating fill or kill orders

Return from venue adapters when creating or canceling an order

Return from venue adapters when amending an order

Return from venue adapters when amending orders in bulk

Return from venue adapters when the order was canceled

Returned from venue adapters when accepted for cancellation. Updates to the order will be received from the stream.

Returned from venue adapters for a created order

Returned from venue adapters when accepted for creation. Updates to the order will be received from the stream.

Track and manage the local state of orders with a swappable backend

The cancel request has been accepted by the venue. The result of the canceled order is received in the stream.

The create request has been accepted by the venue. The result of the created order has been received in the connection stream.

The order was successfully amended on the venue

There was an error amending the order on the venue

The order was successfully canceled on the venue

There was an error canceling the order on the venue

There was an error creating the order on the venue.

The order was not filled or partially filled and removed from the order book

The order was fully filled and removed from the order book

The order has been created on the venue and is passively sitting in the order book waiting to be filled

An open order has been successfully canceled

An open order has been fully filled

An open order has been partially filled

The order is going to be sent to the venue to be amended

The order is going to be sent to the venue to be canceled

The order was not accepted by the venue. It most likely didn't the venue's pass validation criteria.

Bypass sending the order to the venue

Transforms a list of products to a map of product symbols by venue

Create orders for the Binance adapter

Create orders for the Bitmex adapter

Sends a cancel order request to FTX

Create orders for the FTX adapter

Hydrates the available products on the GDAX exchange

Sends a cancel order request to OkEx.

Create orders for the OkEx adapter

Venue configuration for a tai instance. This module provides a utility function Tai.Venues.Config.parse/0 that hydrates a list of venues from the %Tai.Config{}.