Definitions & Terminology
The "Definitions & Terminology" section serves as a comprehensive guide to the key terms, concepts, and constructs used within our automated trading platform. It is designed to empower developers by p
Last updated
The "Definitions & Terminology" section serves as a comprehensive guide to the key terms, concepts, and constructs used within our automated trading platform. It is designed to empower developers by p
Last updated
Trade: A pair of buy and sell orders placed around a common reference price, positioned above and below it.
Fluctuating Component: A signal or indicator that aligns and moves in response to market trends and patterns.
Completion of an Order: The point at which an order is fully executed in the market.
Completion of a Trade: The successful execution of all orders associated with a specific trade.
Base Asset: The primary asset in a trading pair, such as BTC or ETH, representing the component being traded.
Quote Asset: The secondary asset in a trading pair that is used to express the value of the base asset, such as USDT or BUSD.
Open Trade: A trade that has only been partially completed, with at least one order executed.
Pending Trade: A trade in which none of the associated orders have been executed.
Pending Order: An order that has been placed but has not yet been executed.
- Total initial asset value
- Initial base asset amount
- Initial base asset value (in quote asset units)
- Initial quote asset price
- Initial quote asset value
- Total closing asset value
- Closing base asset amount
- Closing base asset value (in quote asset units)
- Closing quote asset price
- Closing quote asset value
- Market-making gain (quote asset gain from completed trades → completed buy-sell pairs)
- Quote asset difference
- Base asset amount difference
- Base asset value difference (in quote asset units)
- Total asset value difference
- Price difference ()
- Bought base asset amount of open trades (a trade with only the buy order has been executed)
- Spent quote asset value of open trades (a trade with only the buy order has been executed)
- Sold base asset amount of open trades (a trade with only the sell order has been executed)
- Earned quote asset value of open trades (a trade with only the sell order has been executed)
- Maker fee
- Taker fee
Total initial and closing equity:
Initial base asset:
Closing base asset:
Since completed order pair will not add/remove a resultant base asset (buy_size = sell_size),
Closing quote assets: Mm_gain is the profit by completing an order pair,
Base Asset Gain:
From (8), (6), (3),
Quote Asset Gain:
From (11), (7),
Equity Gain:
From (10), (13),
Definition: Represents gains or losses resulting from holding the base asset.
Market Impact:
Bullish Conditions: Gains are realized when the value of the base asset increases.
Bearish Conditions: Losses occur when the value of the base asset decreases.
Significance: This is the first component contributing to inventory risk, as fluctuations in the base asset's value directly affect overall asset performance.
Definition: Refers to the impact of pending orders or open trades on asset valuation.
Resultant Effect: Often leads to a loss due to unresolved trades.
Inventory Risk: This is the second major component contributing to inventory risk.
Gain2 - Base Asset Mismatch Due to Open Trades
Description: Represents changes caused by open trades involving the base asset.
Buy Order Execution: If only the buy order is executed, this term increases as more base assets are acquired.
Sell Order Execution: If only the sell order is executed, this term decreases as base assets are sold off.
Significance: This component contributes to the pending component by highlighting the imbalance in base asset positions during open trades.
Gain3 - Quote Asset Mismatch Due to Open Trades
Description: Reflects changes related to open trades involving the quote asset.
Buy Order Execution: If only the buy order is executed, this term decreases since quote assets are spent.
Sell Order Execution: If only the sell order is executed, this term increases as quote assets are received.
Significance: Like Gain2, this component contributes to the pending component by capturing the mismatch in quote asset holdings during open trades.
Rearranging (17),
If pending buy orders get accumulated (only the sell part of trades gets executed more often),
Definition: Represents gains earned through market-making activities from completed trades.
Mechanism: Involves placing a buy-sell order pair of the same size, with the buy price set lower than the sell price. This approach ensures a profit is generated through the difference (spread) between the buy and sell prices when both orders are successfully executed.
Significance: This gain highlights the profitability of market-making strategies and reflects the effectiveness of capturing spreads between orders as a key component of trading performance.
Rearranged Aggregated Gain Components: Here, we have rearranged some of the aforementioned components for the sake of representation and ease.
Note: \text{big_bulls_mm_gain} is a measure favoring long-term bullish behavior in the market. Therefore, we ignore the \text{half_buy_component} from the \text{net_mm_gain} equation since having extra base asset (BTC) in hand will benefit in long-term bullish conditions.
Factors Reducing Total Equity Value:
Pending Component: When the majority of pending orders or open trades are positioned against the direction of market profit.
Bearish Market Impact: The value of the base asset declines, resulting in reduced equity value.
Bear Markets:
Objective: Aim to accumulate more quote assets.
Impact on Holding Cost:
The decline in base asset prices turns the holding cost into a loss.
Trade Behavior:
More sell orders remain pending while buy orders get executed frequently, leading to an accumulation of base assets and a reduction in quote assets.
Result: Loss
Market-Making Impact:
Expected gains from market-making activities are reduced due to pending orders, leading to a loss.
Bull Markets:
Objective: Aim to accumulate more base assets.
Impact on Holding Cost:
The increase in base asset prices turns the holding cost into a gain.
Trade Behavior:
More buy orders remain pending while sell orders get executed frequently, resulting in the accumulation of quote assets and a reduction in base assets.
Result: Loss
Market-Making Impact:
Expected gains from market-making activities are reduced due to pending orders, leading to a loss.
Ranging Markets:
Holding Cost:
This component does not dominate the overall behavior, resulting in a neutral effect.
Pending Orders:
Minimal pending orders, with trades getting completed more frequently, leading to a neutral effect.
Market-Making Gains:
Maximized gains from market-making activities.
- gain/loss due to the holding of the base asset
- base asset mismatch due to open trades/pending orders
- quote asset mismatch due to open trades/pending orders
- market-making gain from completed trades