trade_config

Classes

BrokerType

Enum for broker types.

AssetExchange

Represents the current exchanges Alpaca supports.

RRTradeConfig

Trading Configuration

Module Contents

class trade_config.BrokerType

Bases: str, enum.Enum

Enum for broker types.

ALPACA = 'ALPACA'
LOCAL = 'LOCAL'
REMOTE = 'REMOTE'
class trade_config.AssetExchange

Bases: str, enum.Enum

Represents the current exchanges Alpaca supports.

AMEX = 'AMEX'
ARCA = 'ARCA'
BATS = 'BATS'
NYSE = 'NYSE'
NASDAQ = 'NASDAQ'
NYSEARCA = 'NYSEARCA'
FTXU = 'FTXU'
CBSE = 'CBSE'
GNSS = 'GNSS'
ERSX = 'ERSX'
OTC = 'OTC'
CRYPTO = 'CRYPTO'
EMPTY = ''
class trade_config.RRTradeConfig(/, **data)

Bases: pydantic.BaseModel

Trading Configuration .. todo:

- notifications
- require trade approval
Parameters:

data (Any)

id: uuid.UUID | None = None
account_number: str = None
model_path: trading.cli.alg.config.ProjectPath = None
broker: BrokerType = None
broker_kwargs: dict = None
bucket_name: str | None = None
positions_path: trading.cli.alg.config.ProjectPath | None = None
closed_positions_path: trading.cli.alg.config.ProjectPath | None = None
account_value_series_path: trading.cli.alg.config.ProjectPath | None = None
account_path: trading.cli.alg.config.ProjectPath | None = None
meta_data_path: trading.cli.alg.config.ProjectPath | None = None
backtest_path: trading.cli.alg.config.ProjectPath | None = None
active: bool = None
out_dir: trading.cli.alg.config.ProjectPath = None
portfolio_config: trading.cli.alg.config.PortfolioConfig | None = None
defer_trade_execution: bool = None
asset_exchanges: list[AssetExchange] = None
ensure_id(values)