Skip to content

Paul-Folbrecht/algo-trading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

algo-trading

Algorithmic trading strategies and backtesting in Rust.

To obtain an access token, create an account at Tradier, then go to this page.

DISCLAIMER: This is a personal project and is not intended for production use. Use at your own risk. The author is not responsible for any financial losses incurred as a result of using this software.

Configuration

At present, only a very simple Bolinger Bands strategy is implemented.

Either modify config\default.toml or create config\local.toml to specify your account and trading information. Example:

sandbox = true
access_token = "XXXX"
sandbox_token = "XXXX"
account_id = "XXXX"

[[strategies]]
name = "mean-reversion"
symbols = ["AAPL", "AMZN"]
capital = [100000, 10000]

sandbox_token must be set, but a valid value is optional and only required if you are using the sandbox environment.

Building

cargo build

Running

cargo run <access-token>

Testing

cargo test requires the environment variables TRADIER_ACCESS_TOKEN, TRADIER_SANDBOX_TOKEN, and TRADIER_ACCOUNT_ID to be set.

algo-trading

Algorithmic trading strategies and backtesting in Rust.

To obtain an access token, create an account at Tradier, then go to this page.

DISCLAIMER: This is a personal project and is not intended for production use. Use at your own risk. The author is not responsible for any financial losses incurred as a result of using this software.

Configuration

At present, only a very simple Bolinger Bands strategy is implemented.

Either modify config\default.toml or create config\local.toml to specify your account and trading information. Example:

sandbox = true
access_token = "XXXX"
sandbox_token = "XXXX"
account_id = "XXXX"

[[strategies]]
name = "mean-reversion"
symbols = ["AAPL", "AMZN"]
capital = [100000, 10000]

sandbox_token must be set, but a valid value is optional and only required if you are using the sandbox environment.

Building

cargo build

Running

cargo run <access-token>

Testing

cargo test requires the environment variables TRADIER_ACCESS_TOKEN, TRADIER_SANDBOX_TOKEN, and TRADIER_ACCOUNT_ID to be set.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages