-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use async_trait::async_trait; | ||
use clap::{ArgMatches, Command as ClapCommand}; | ||
use crate::cmds::Command; | ||
|
||
pub struct LiveTradingCommand; | ||
|
||
#[async_trait] | ||
impl Command for LiveTradingCommand { | ||
fn usage() -> ClapCommand { | ||
ClapCommand::new("live-trading") | ||
.about("Live trading") | ||
.visible_alias("l") | ||
} | ||
|
||
async fn handler(m: &ArgMatches) -> anyhow::Result<()> { | ||
log::info!("handle live trading"); | ||
Ok(()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ pub trait Command { | |
|
||
pub mod backtest; | ||
pub mod paper; | ||
mod live; | ||
pub mod live; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.