nautilus_kraken/common/
consts.rs1use std::sync::LazyLock;
19
20use nautilus_model::identifiers::Venue;
21use ustr::Ustr;
22
23pub const KRAKEN: &str = "KRAKEN";
24pub static KRAKEN_VENUE: LazyLock<Venue> = LazyLock::new(|| Venue::new(Ustr::from(KRAKEN)));
25
26pub const NAUTILUS_KRAKEN_BROKER_ID: &str = "AA98 N84G GOPN GL6Y";
28
29pub const KRAKEN_PONG: &str = "pong";
31pub const KRAKEN_WS_TOPIC_DELIMITER: char = '.';
32
33pub const KRAKEN_SPOT_HTTP_URL: &str = "https://api.kraken.com";
35pub const KRAKEN_SPOT_WS_PUBLIC_URL: &str = "wss://ws.kraken.com/v2";
36pub const KRAKEN_SPOT_WS_PRIVATE_URL: &str = "wss://ws-auth.kraken.com/v2";
37
38pub const KRAKEN_FUTURES_HTTP_URL: &str = "https://futures.kraken.com";
40pub const KRAKEN_FUTURES_WS_URL: &str = "wss://futures.kraken.com/ws/v1";
41
42pub const KRAKEN_FUTURES_DEMO_HTTP_URL: &str = "https://demo-futures.kraken.com";
44pub const KRAKEN_FUTURES_DEMO_WS_URL: &str = "wss://demo-futures.kraken.com/ws/v1";
45
46pub const KRAKEN_OFLAG_POST_ONLY: &str = "post";
48pub const KRAKEN_OFLAG_QUOTE_QUANTITY: &str = "viqc";
49
50pub const KRAKEN_FUTURES_POST_ONLY_REJECT: &str = "post_order_failed_because_it_would_filled";
52pub const KRAKEN_SPOT_POST_ONLY_REJECT: &str = "Post only order";
53pub const KRAKEN_SPOT_POST_ONLY_ERROR: &str = "EOrder:Post only order";