crypto_trader
Cryptocurrency Trading Bot API Documentation
Loading...
Searching...
No Matches
crypto_trader::executors::PaperTrade Struct Reference

Represents a simulated trade executed by the PaperTradingExecutor. More...

#include <paper_trading_executor.h>

Collaboration diagram for crypto_trader::executors::PaperTrade:
Collaboration graph

Public Attributes

std::string d_symbol
 The product that was traded.
common::Side d_side
 Side of the trade (Buy or Sell).
std::string d_timestamp
 Time when the trade was finalized.
double d_price
 Price at which the trade was executed.
double d_amount
 Amount of product bought/sold.
double d_commission
 Commission paid on the trade.

Detailed Description

Represents a simulated trade executed by the PaperTradingExecutor.

Member Data Documentation

◆ d_amount

double crypto_trader::executors::PaperTrade::d_amount

Amount of product bought/sold.

◆ d_commission

double crypto_trader::executors::PaperTrade::d_commission

Commission paid on the trade.

◆ d_price

double crypto_trader::executors::PaperTrade::d_price

Price at which the trade was executed.

◆ d_side

common::Side crypto_trader::executors::PaperTrade::d_side

Side of the trade (Buy or Sell).

◆ d_symbol

std::string crypto_trader::executors::PaperTrade::d_symbol

The product that was traded.

◆ d_timestamp

std::string crypto_trader::executors::PaperTrade::d_timestamp

Time when the trade was finalized.


The documentation for this struct was generated from the following file: