#[derive(Clone, Debug)]
#[cfg_attr(
feature = "python",
pyo3::pyclass(module = "nautilus_trader.core.nautilus_pyo3.bybit", from_py_object)
)]
#[cfg_attr(
feature = "python",
pyo3_stub_gen::derive::gen_stub_pyclass(module = "nautilus_trader.bybit")
)]
pub struct BybitMarginBorrowResult {
pub coin: String,
pub amount: String,
pub success: bool,
pub message: String,
pub ts_event: u64,
pub ts_init: u64,
}
#[derive(Clone, Debug)]
#[cfg_attr(
feature = "python",
pyo3::pyclass(module = "nautilus_trader.core.nautilus_pyo3.bybit", from_py_object)
)]
#[cfg_attr(
feature = "python",
pyo3_stub_gen::derive::gen_stub_pyclass(module = "nautilus_trader.bybit")
)]
pub struct BybitMarginRepayResult {
pub coin: String,
pub amount: Option<String>,
pub success: bool,
pub result_status: String,
pub message: String,
pub ts_event: u64,
pub ts_init: u64,
}
#[derive(Clone, Debug)]
#[cfg_attr(
feature = "python",
pyo3::pyclass(module = "nautilus_trader.core.nautilus_pyo3.bybit", from_py_object)
)]
#[cfg_attr(
feature = "python",
pyo3_stub_gen::derive::gen_stub_pyclass(module = "nautilus_trader.bybit")
)]
pub struct BybitMarginStatusResult {
pub coin: String,
pub borrow_amount: String,
pub ts_event: u64,
pub ts_init: u64,
}