use nautilus_model::identifiers::{AccountId, TraderId};
use pyo3::prelude::*;
use crate::{
common::consts::IB,
factories::{InteractiveBrokersDataClientFactory, InteractiveBrokersExecutionClientFactory},
};
#[pymethods]
#[pyo3_stub_gen::derive::gen_stub_pymethods]
impl InteractiveBrokersDataClientFactory {
#[new]
fn py_new() -> Self {
Self
}
#[pyo3(name = "name")]
fn py_name(&self) -> &str {
IB
}
}
#[pymethods]
#[pyo3_stub_gen::derive::gen_stub_pymethods]
impl InteractiveBrokersExecutionClientFactory {
#[new]
fn py_new(trader_id: TraderId, account_id: AccountId) -> Self {
Self::new(trader_id, account_id)
}
#[pyo3(name = "name")]
fn py_name(&self) -> &str {
IB
}
}