crypto_trader
Cryptocurrency Trading Bot API Documentation
Loading...
Searching...
No Matches
crypto_trader::executors::PaperTradingExecutorConfig Class Reference

Configuration parameters for the PaperTradingExecutor. More...

#include <paper_trading_executor.h>

Collaboration diagram for crypto_trader::executors::PaperTradingExecutorConfig:
Collaboration graph

Public Member Functions

PaperTradingExecutorConfigsetInitialBalance (double initialBalance)
 Sets the initial balance for paper trading.
PaperTradingExecutorConfigsetCommissionRate (double commissionRate)
 Sets the commission rate for paper trading.
double initialBalance () const
 Gets the initial balance.
double commissionRate () const
 Gets the commission rate.

Detailed Description

Configuration parameters for the PaperTradingExecutor.

Member Function Documentation

◆ commissionRate()

double crypto_trader::executors::PaperTradingExecutorConfig::commissionRate ( ) const
inline

Gets the commission rate.

Returns
The commission rate.

◆ initialBalance()

double crypto_trader::executors::PaperTradingExecutorConfig::initialBalance ( ) const
inline

Gets the initial balance.

Returns
The initial balance.

◆ setCommissionRate()

PaperTradingExecutorConfig & crypto_trader::executors::PaperTradingExecutorConfig::setCommissionRate ( double commissionRate)
inline

Sets the commission rate for paper trading.

Parameters
commissionRateThe commission rate (e.g., 0.001 for 0.1%).
Returns
A reference to the updated configuration object.

◆ setInitialBalance()

PaperTradingExecutorConfig & crypto_trader::executors::PaperTradingExecutorConfig::setInitialBalance ( double initialBalance)
inline

Sets the initial balance for paper trading.

Parameters
initialBalanceThe initial balance.
Returns
A reference to the updated configuration object.

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