API Reference tai v0.0.75
Modules
A behavior for implementing a server that receives events such as market quotes.
Advisor factory for sharing all subscribed products.
Advisor factory for creating an advisor instance for each subscribed product.
Advisor factory for creating an advisor instance per venue.
The default supervisor for advisor instances. This supervisor can be replaced
with a custom implementation by setting Tai.Fleets.AdvisorConfig#instance_supervisor
.
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 failed order transitions and their details
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 order transitions and their details
Display the list of order transitions and their details
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
Represents a normalized trade on a venue
The OrderTransitionWorker acts as a locking mechanism to ensure an order can only be updated sequentially to avoid race conditions when receiving the accepted response from a request and asynchronously receiving the result of that request.
Returned from venue adapters when accepted for amending. Updates to the order will be received from the stream.
Return from venue adapters when amending orders in bulk
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.
ApplyOrderTransition is responsible for the modification of an order's state and the recording of an audit history from the applied and attempted changes.
The amend request has been accepted by the venue. The result of the amended order is received in the stream.
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 received and accepted by the venue. The result of the created order will either be returned immediately in the response or received asynchronously on the connection stream.
The order was successfully amended on the venue.
The order was successfully canceled on the venue
The order was not filled or partially filled and removed from the order book
The order was completely 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, canceled or amended
An order has been partially filled. This is a self transition and does not update the status attribute.
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 pass the venue's validation criteria.
While sending the amend request for the order to the venue there was an uncaught error from the adapter, or an error processing it's response.
While sending the cancel order request to the venue there was an uncaught error from the adapter, or an error processing it's response.
While sending the create order request to the venue there was an uncaught error from the adapter, or an error processing it's response.
Bypass sending the order to the venue
There was an error amending the order on the venue
There was an error canceling the order on the venue
There was an error creating the order on the venue.
Run time settings
Transform symbols between tai and exchange formats
A core pubsub bus for async message communication. The following subsystems depend on this module.
This module defines the setup for tests requiring access to the application's data layer.
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{}
.
Mix Tasks
Generates database migrations for tai repos