Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
ryqdev committed Jun 1, 2024
1 parent 9407644 commit 6440630
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
3 changes: 1 addition & 2 deletions src/broker/alpaca/alpaca.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use log::log;
use url::Url;
use tungstenite::{connect, Message};
use serde_json;

const TEST_BASE_URL: &str = "wss://stream.data.alpaca.markets/v2/test";
// const TEST_BASE_URL: &str = "wss://stream.data.alpaca.markets/v2/test";
const BASE_URL: &str = "wss://stream.data.alpaca.markets/v1beta2/crypto";

pub async fn alpaca_trading() {
Expand Down
4 changes: 2 additions & 2 deletions src/broker/backtest/backtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ pub(crate) struct BacktestBroker {
}

#[derive(Default, Clone, Debug)]
pub(crate) struct Order {
pub struct Order {
pub action: Action,
pub(crate) size: f64,
pub size: f64,
}

#[derive(Debug, Default, Copy, Clone)]
Expand Down
2 changes: 0 additions & 2 deletions src/broker/ibkr/trade.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
pub struct PaperTradingCommand;

use std::collections::VecDeque;

use ibapi::contracts::{Contract, SecurityType};
Expand Down
12 changes: 6 additions & 6 deletions src/err.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

#[derive(Debug)]
pub enum Error {
MatchError,
CSVError,
}
//
// #[derive(Debug)]
// pub enum Error {
// MatchError,
// CSVError,
// }

0 comments on commit 6440630

Please sign in to comment.