use nautilus_model::identifiers::{AccountId, TraderId};
use pyo3::prelude::*;
use crate::{
common::consts::DERIVE,
config::DeriveExecClientConfig,
factories::{DeriveDataClientFactory, DeriveExecFactoryConfig, DeriveExecutionClientFactory},
};
#[pymethods]
#[pyo3_stub_gen::derive::gen_stub_pymethods]
impl DeriveDataClientFactory {
#[new]
fn py_new() -> Self {
Self
}
#[pyo3(name = "name")]
fn py_name(&self) -> &str {
DERIVE
}
}
#[pymethods]
#[pyo3_stub_gen::derive::gen_stub_pymethods]
impl DeriveExecFactoryConfig {
#[new]
fn py_new(trader_id: TraderId, account_id: AccountId, config: DeriveExecClientConfig) -> Self {
Self {
trader_id,
account_id,
config,
}
}
fn __repr__(&self) -> String {
format!("{self:?}")
}
}
#[pymethods]
#[pyo3_stub_gen::derive::gen_stub_pymethods]
impl DeriveExecutionClientFactory {
#[new]
fn py_new() -> Self {
Self
}
#[pyo3(name = "name")]
fn py_name(&self) -> &str {
DERIVE
}
}