Skip to content

Commit

Permalink
chore: Subscribe to mainnet quotes
Browse files Browse the repository at this point in the history
testnet quotes look odd, especially as we are using the mainnet prices for the candlestick charts.

I don't see a reason why we should not use the mainnet quotes also for testing.
  • Loading branch information
holzeis committed Jul 25, 2023
1 parent 0a9c34d commit 8943f21
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions maker/src/trading/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,10 @@ mod orderbook_client;
pub async fn run(
orderbook_url: &Url,
maker_id: PublicKey,
network: Network,
_network: Network,
concurrent_orders: usize,
) -> Result<()> {
let network = match network {
Network::Bitcoin => bitmex_stream::Network::Mainnet,
_ => bitmex_stream::Network::Testnet,
};
let mut price_stream = bitmex_client::bitmex(network).await;
let mut price_stream = bitmex_client::bitmex(bitmex_stream::Network::Mainnet).await;

let orderbook_client = OrderbookClient::new();

Expand Down

0 comments on commit 8943f21

Please sign in to comment.