Crate na_paper_account

Crate na_paper_account 

Source
Expand description

§Paper Account

paper_account is a Rust library for simulating trading accounts without using real money. It provides functionality for managing a paper trading account, including:

  • Account creation and management
  • Order placement (market, limit)
  • Position tracking
  • Portfolio valuation
  • Trade history

Re-exports§

pub use account::Account;
pub use order::Order;
pub use order::OrderType;
pub use order::OrderSide;
pub use order::OrderStatus;
pub use position::Position;
pub use error::Error;
pub use types::Symbol;
pub use types::Quantity;
pub use types::Price;
pub use types::TradeId;
pub use types::OrderId;
pub use types::AccountId;
pub use config::Config;
pub use manager::AccountManager;

Modules§

account
config
error
manager
market
order
position
types

Functions§

init
Initialize the library with default configuration
init_logger
Initialize the logger with a specific log level
init_with_config
Initialize the library with custom configuration