crypto_trader
Cryptocurrency Trading Bot API Documentation
Loading...
Searching...
No Matches
crypto_trader::common::Position Struct Reference

Represents a single position (lot) within a larger holding. More...

#include <Accounting.h>

Collaboration diagram for crypto_trader::common::Position:
Collaboration graph

Public Attributes

double d_totalQty = 0.0
 Quantity of the asset in this lot.
double d_price = 0.0
 Price at which this lot was acquired.
int64_t d_timestamp
 Timestamp when this lot was acquired.

Detailed Description

Represents a single position (lot) within a larger holding.

Member Data Documentation

◆ d_price

double crypto_trader::common::Position::d_price = 0.0

Price at which this lot was acquired.

◆ d_timestamp

int64_t crypto_trader::common::Position::d_timestamp

Timestamp when this lot was acquired.

◆ d_totalQty

double crypto_trader::common::Position::d_totalQty = 0.0

Quantity of the asset in this lot.


The documentation for this struct was generated from the following file:
  • /home/runner/work/crypto_trader/crypto_trader/common/Accounting.h