#include <stdint.h>
#include <stdbool.h>
#include "types.h"
Go to the source code of this file.
◆ wu_position_add
| #define wu_position_add |
( |
| vec, |
|
|
| pos ) |
Value:((vec)->add((vec), (pos)))
Definition at line 40 of file positions.h.
◆ wu_position_clear
| #define wu_position_clear |
( |
| vec | ) |
|
◆ wu_position_get
| #define wu_position_get |
( |
| vec, |
|
|
| index, |
|
|
| found ) |
Value:((vec)->get((vec), (index), (found)))
Definition at line 43 of file positions.h.
◆ wu_position_remove
| #define wu_position_remove |
( |
| vec, |
|
|
| index ) |
Value:((vec)->remove((vec), (index)))
Definition at line 41 of file positions.h.
◆ wu_position_total_quantity
| #define wu_position_total_quantity |
( |
| vec | ) |
|
Value:((vec)->total_quantity((vec)))
Definition at line 44 of file positions.h.
◆ wu_position_vector_delete
| #define wu_position_vector_delete |
( |
| vec | ) |
|
Value: do { \
if ((vec)->delete) \
} while(0)
WU_PositionVector is a data structure that holds multiple positions for a single asset.
Definition at line 45 of file positions.h.
◆ WU_SYMBOL_MAX_LEN
| #define WU_SYMBOL_MAX_LEN 32 |
◆ WU_PositionSizeType
WU_PositionSizeType represents the type of position sizing used in the portfolio.
It can be an absolute quantity, a percentage of the portfolio value, an equal percentage across all assets, or a strategy-guided position sizing where the strategy determines the size of the position based on its own logic.
| Enumerator |
|---|
| WU_POSITION_SIZE_ABS | |
| WU_POSITION_SIZE_PCT | |
| WU_POSITION_SIZE_PCT_EQUAL | |
| WU_POSITION_SIZE_STRATEGY_GUIDED | |
Definition at line 59 of file positions.h.
◆ wu_position_vector_new()