ibkr-agent-gateway 0.5.2

Unofficial local-first CLI and MCP gateway for Interactive Brokers workflows.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Client Portal preview estimate mapping.
//!
//! This module intentionally contains no submit, cancel, or approval endpoint.

use crate::internal::domain::Money;
use serde::{Deserialize, Serialize};

/// Optional broker-side preview estimate if a backend supports it.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct ClientPortalPreviewEstimate {
    /// Estimated cost.
    pub estimated_cost: Money,
    /// Estimated commission.
    pub estimated_commission: Option<Money>,
    /// Estimated margin impact.
    pub margin_impact: Option<Money>,
}