roshi 0.0.1

A Rust client for the Kalshi API
Documentation
pub const DEMO_HTTP_API_BASE: &str = "https://demo-api.kalshi.co/trade-api/v2";
pub const LIVE_HTTP_API_BASE: &str = "https://api.elections.kalshi.com/trade-api/v2";

pub const LIVE_WS_API_BASE: &str = "wss://api.elections.kalshi.com/trade-api/ws/v2";

pub mod public {
    pub const API_VERSION: &str = "/api_version";
}

pub mod communications {
    pub const GET_COMM_ID: &str = "/communications";
    pub const GET_QUOTES: &str = "/communications/quotes";
    pub const CREATE_QUOTE: &str = "/communications/quotes";
    pub const GET_QUOTE: &str = "/communications/quotes/{quote_id}";
    pub const DELETE_QUOTE: &str = "/communications/quotes/{quote_id}";
    pub const ACCEPT_QUOTE: &str = "/communications/quotes/{quote_id}/accept";
    pub const CONFIRM_QUOTE: &str = "/communications/quotes/{quote_id}/confirm";
    pub const GET_RFQS: &str = "/communications/rfqs";
    pub const CREATE_RFQ: &str = "/communications/rfqs";
    pub const GET_RFQ: &str = "/communications/rfqs/{rfq_id}";
    pub const DELETE_RFQ: &str = "/communications/rfqs/{rfq_id}";
}

pub mod market {
    pub const GET_EVENTS: &str = "/events";
    pub const GET_EVENT: &str = "/events/{event_id}";
    pub const GET_MARKETS: &str = "/markets";
    pub const GET_MARKET: &str = "/markets/{market_id}";
    pub const GET_TRADES: &str = "/market/trades";
    pub const GET_MARKET_ORDERBOOK: &str = "/markets/{market_id}/orderbook";
    pub const GET_SERIES_LIST: &str = "/series";
    pub const GET_SERIES: &str = "/series/{series_id}";
    pub const GET_MARKET_CANDLESTICKS: &str = "/markets/{market_id}/candlesticks";
}

pub mod exchange {
    pub const GET_ANNOUNCEMENTS: &str = "/exchange/announcements";
    pub const GET_SCHEDULE: &str = "/exchange/schedule";
    pub const GET_STATUS: &str = "/exchange/status";
    pub const GET_USER_DATA_TS: &str = "/exchange/user_data_timestamp";
}

pub mod milestone {
    pub const GET_MILESTONES: &str = "/milestone";
    pub const GET_MILESTONE: &str = "/milestone/{milestone_id}";
}

pub mod collection {
    pub const GET_MULTIVARIATE_COLLECTIONS: &str = "/collection/multivariate_event_collections";
    pub const GET_MULTIVARIATE_COLLECTION: &str =
        "/collection/multivariate_event_collections/{collection_id}";
    pub const CREATE_MARKET_IN_COLLECTION: &str =
        "/collection/multivariate_event_collections/{collection_id}/markets";
    pub const GET_COLLECTION_LOOKUP_HISTORY: &str =
        "/collection/multivariate_event_collections/{collection_id}/lookup_history";
    pub const LOOKUP_TICKERS_FOR_MARKET: &str =
        "/collection/multivariate_event_collections/{collection_id}/lookup_tickers";
}

pub mod portfolio {
    pub const GET_BALANCE: &str = "/portfolio/balance";
    pub const GET_FILLS: &str = "/portfolio/fills";
    pub const GET_ORDERS: &str = "/portfolio/orders";
    pub const CREATE_ORDER: &str = "/portfolio/orders";
    pub const BATCH_CREATE_ORDERS: &str = "/portfolio/orders/batch";
    pub const BATCH_CANCEL_ORDERS: &str = "/portfolio/orders/batch";
    pub const GET_ORDER: &str = "/portfolio/orders/{order_id}";
    pub const CANCEL_ORDER: &str = "/portfolio/orders/{order_id}";
    pub const AMEND_ORDER: &str = "/portfolio/orders/{order_id}/amend";
    pub const DECREASE_ORDER: &str = "/portfolio/orders/{order_id}/decrease";
    pub const GET_POSITIONS: &str = "/portfolio/positions"; // :contentReference[oaicite:2]{index=2}
    pub const GET_ORDER_QUEUE_POSITION: &str = "/portfolio/orders/{order_id}/queue_position";
    pub const GET_PORTFOLIO_VALUE: &str = "/portfolio/summary/total_resting_order_value";
    pub const GET_SETTLEMENTS: &str = "/portfolio/settlements";
}

pub mod structured_target {
    pub const GET_STRUCTURED_TARGET: &str = "/structured_target";
}