Skip to content

Commit bc4853a

Browse files
author
conditional-team
committed
feat: auto-open dashboard on launch, tune strategy params for testnet, relax risk limits
1 parent 31a6c3f commit bc4853a

File tree

4 files changed

+60
-17
lines changed

4 files changed

+60
-17
lines changed

Cargo.lock

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
}
1313
],
1414
"risk": {
15-
"max_position_qty": 100000000,
16-
"max_notional": 500000000000,
17-
"max_total_notional": 1000000000000,
18-
"max_order_qty": 10000000,
19-
"max_open_orders": 10,
20-
"max_loss": -50000000,
21-
"max_orders_per_second": 50
15+
"max_position_qty": 200000000,
16+
"max_notional": 2000000000000,
17+
"max_total_notional": 5000000000000,
18+
"max_order_qty": 50000000,
19+
"max_open_orders": 20,
20+
"max_loss": -200000000,
21+
"max_orders_per_second": 100
2222
},
2323
"event_log_path": "data/events.log",
2424
"snapshot_interval": 10000,

crates/atomic-node/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ clap = { version = "4", features = ["derive"] }
3030
futures-util = "0.3"
3131
dotenvy = "0.15"
3232
axum = { version = "0.8", features = ["ws"] }
33+
open = "5"

crates/atomic-node/src/main.rs

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,10 @@ async fn main() {
233233
&strat_id,
234234
symbol,
235235
feed_cfg.venue,
236-
100_000, // order_qty = 0.001 BTC (~$73)
237-
5_000_000, // max_inventory = 0.05 BTC
238-
5, // half_spread = 5 pipettes ($0.05 fixed)
239-
3000, // gamma = 0.3 risk aversion
236+
100_000, // order_qty = 0.001 BTC (~$74)
237+
20_000_000, // max_inventory = 0.2 BTC
238+
15, // half_spread = 15 pipettes ($0.15)
239+
1000, // gamma = 0.1 risk aversion (aggressive)
240240
);
241241
strategy_engine.register(Box::new(mm));
242242
}
@@ -246,13 +246,13 @@ async fn main() {
246246

247247
// C++ hot-path engine: same parameters as Rust MM but runs in ~100ns
248248
let mut hotpath = HotPathEngine::new(
249-
100_000, // order_qty = 0.001 BTC (~$73)
250-
5_000_000, // max_inventory = 0.05 BTC
251-
0, // half_spread = 0 → 1 pipette min ($0.01, at top of book)
252-
3000, // gamma = 0.3
249+
100_000, // order_qty = 0.001 BTC (~$74)
250+
20_000_000, // max_inventory = 0.2 BTC
251+
10, // half_spread = 10 pipettes ($0.10)
252+
1000, // gamma = 0.1 (aggressive)
253253
3, // warmup_ticks
254-
5, // cooldown_ticks
255-
500, // requote_threshold = $5 (let orders sit longer)
254+
2, // cooldown_ticks (faster requote)
255+
5, // requote_threshold = $0.05 (requote on small moves)
256256
);
257257
info!("C++ hot-path engine initialized");
258258

@@ -408,6 +408,11 @@ async fn main() {
408408
});
409409
tokio::spawn(start_dashboard(cli.dashboard_port, dash_state));
410410

411+
// Auto-open dashboard in browser
412+
let dash_url = format!("http://localhost:{}", cli.dashboard_port);
413+
info!("Opening dashboard: {}", dash_url);
414+
let _ = open::that(&dash_url);
415+
411416
info!("Node is ready. Processing live events. Press Ctrl+C to shutdown.");
412417

413418
// === MAIN EVENT LOOP ===

0 commit comments

Comments
 (0)