|
crypto_trader
Cryptocurrency Trading Bot API Documentation
|
Aggregates all positions and financial data for a specific trading symbol. More...
#include <Accounting.h>

Public Attributes | |
| std::string | d_symbol |
| The trading symbol (e.g., "BTC-USD"). | |
| double | d_totalQty = 0.0 |
| Total quantity of the asset held. | |
| double | d_averagePrice = 0.0 |
| Weighted average price of all held lots. | |
| std::list< Position > | d_positions_in_time |
| List of individual lots, ordered by time or FIFO/LIFO. | |
| bool | d_fifo |
| True if positions are managed using FIFO, false for LIFO. | |
| double | d_realizedPnl |
| Realized Profit and Loss from closed positions. | |
| int64_t | d_timestamp |
| Timestamp of the last change. | |
| nlohmann::json | d_metadata |
Aggregates all positions and financial data for a specific trading symbol.
| double crypto_trader::common::SymbolPositions::d_averagePrice = 0.0 |
Weighted average price of all held lots.
| bool crypto_trader::common::SymbolPositions::d_fifo |
True if positions are managed using FIFO, false for LIFO.
| nlohmann::json crypto_trader::common::SymbolPositions::d_metadata |
| std::list<Position> crypto_trader::common::SymbolPositions::d_positions_in_time |
List of individual lots, ordered by time or FIFO/LIFO.
| double crypto_trader::common::SymbolPositions::d_realizedPnl |
Realized Profit and Loss from closed positions.
| std::string crypto_trader::common::SymbolPositions::d_symbol |
The trading symbol (e.g., "BTC-USD").
| int64_t crypto_trader::common::SymbolPositions::d_timestamp |
Timestamp of the last change.
| double crypto_trader::common::SymbolPositions::d_totalQty = 0.0 |
Total quantity of the asset held.