pub struct OKXBalanceDetail {Show 41 fields
pub avail_bal: String,
pub avail_eq: String,
pub borrow_froz: String,
pub cash_bal: String,
pub ccy: Ustr,
pub cross_liab: String,
pub dis_eq: String,
pub eq: String,
pub eq_usd: String,
pub smt_sync_eq: String,
pub spot_copy_trading_eq: String,
pub fixed_bal: String,
pub frozen_bal: String,
pub imr: String,
pub interest: String,
pub iso_eq: String,
pub iso_liab: String,
pub iso_upl: String,
pub liab: String,
pub max_loan: String,
pub mgn_ratio: String,
pub mmr: String,
pub notional_lever: String,
pub ord_frozen: String,
pub reward_bal: String,
pub spot_in_use_amt: String,
pub cl_spot_in_use_amt: String,
pub max_spot_in_use_amt: String,
pub spot_iso_bal: String,
pub stgy_eq: String,
pub twap: String,
pub u_time: u64,
pub upl: String,
pub upl_liab: String,
pub spot_bal: String,
pub open_avg_px: String,
pub acc_avg_px: String,
pub spot_upl: String,
pub spot_upl_ratio: String,
pub total_pnl: String,
pub total_pnl_ratio: String,
}Expand description
Represents a balance detail for a single currency in an OKX account.
Fields§
§avail_bal: StringAvailable balance.
avail_eq: StringAvailable equity.
borrow_froz: StringBorrow frozen amount.
cash_bal: StringCash balance.
ccy: UstrCurrency.
cross_liab: StringCross liability.
dis_eq: StringDiscount equity in USD.
eq: StringEquity.
eq_usd: StringEquity in USD.
smt_sync_eq: StringSame-token equity.
spot_copy_trading_eq: StringCopy trading equity.
fixed_bal: StringFixed balance.
frozen_bal: StringFrozen balance.
imr: StringInitial margin requirement.
interest: StringInterest.
iso_eq: StringIsolated margin equity.
iso_liab: StringIsolated margin liability.
iso_upl: StringIsolated unrealized profit and loss.
liab: StringLiability.
max_loan: StringMaximum loan amount.
mgn_ratio: StringMargin ratio.
mmr: StringMaintenance margin requirement.
notional_lever: StringNotional leverage.
ord_frozen: StringOrder frozen.
reward_bal: StringReward balance.
spot_in_use_amt: StringSpot in use amount.
cl_spot_in_use_amt: StringCross liability spot in use amount.
max_spot_in_use_amt: StringMaximum spot in use amount.
spot_iso_bal: StringSpot isolated balance.
stgy_eq: StringStrategy equity.
twap: StringTime-weighted average price.
u_time: u64Last update time, Unix timestamp in milliseconds.
upl: StringUnrealized profit and loss.
upl_liab: StringUnrealized profit and loss liability.
spot_bal: StringSpot balance.
open_avg_px: StringOpen average price.
acc_avg_px: StringAccumulated average price.
spot_upl: StringSpot unrealized profit and loss.
spot_upl_ratio: StringSpot unrealized profit and loss ratio.
total_pnl: StringTotal profit and loss.
total_pnl_ratio: StringTotal profit and loss ratio.
Trait Implementations§
Source§impl Clone for OKXBalanceDetail
impl Clone for OKXBalanceDetail
Source§fn clone(&self) -> OKXBalanceDetail
fn clone(&self) -> OKXBalanceDetail
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OKXBalanceDetail
impl Debug for OKXBalanceDetail
Source§impl<'de> Deserialize<'de> for OKXBalanceDetail
impl<'de> Deserialize<'de> for OKXBalanceDetail
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl<'py> IntoPyObject<'py> for OKXBalanceDetail
impl<'py> IntoPyObject<'py> for OKXBalanceDetail
Source§type Target = OKXBalanceDetail
type Target = OKXBalanceDetail
Source§type Output = Bound<'py, <OKXBalanceDetail as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <OKXBalanceDetail as IntoPyObject<'py>>::Target>
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
Source§impl PyClass for OKXBalanceDetail
impl PyClass for OKXBalanceDetail
Source§impl PyClassImpl for OKXBalanceDetail
impl PyClassImpl for OKXBalanceDetail
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§const IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
Source§const RAW_DOC: &'static CStr = /// Represents a balance detail for a single currency in an OKX account.
const RAW_DOC: &'static CStr = /// Represents a balance detail for a single currency in an OKX account.
Source§const DOC: &'static CStr
const DOC: &'static CStr
text_signature if a constructor is defined. Read moreSource§type ThreadChecker = SendablePyClass<OKXBalanceDetail>
type ThreadChecker = SendablePyClass<OKXBalanceDetail>
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl<'a, 'holder, 'py> PyFunctionArgument<'a, 'holder, 'py, false> for &'holder OKXBalanceDetail
impl<'a, 'holder, 'py> PyFunctionArgument<'a, 'holder, 'py, false> for &'holder OKXBalanceDetail
Source§impl<'a, 'holder, 'py> PyFunctionArgument<'a, 'holder, 'py, false> for &'holder mut OKXBalanceDetail
impl<'a, 'holder, 'py> PyFunctionArgument<'a, 'holder, 'py, false> for &'holder mut OKXBalanceDetail
Source§impl PyMethods<OKXBalanceDetail> for PyClassImplCollector<OKXBalanceDetail>
impl PyMethods<OKXBalanceDetail> for PyClassImplCollector<OKXBalanceDetail>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for OKXBalanceDetail
impl PyTypeInfo for OKXBalanceDetail
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
§fn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
§fn is_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_type_of(object: &Bound<'_, PyAny>) -> bool
object is an instance of this type or a subclass of this type.§fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
object is an instance of this type.Source§impl Serialize for OKXBalanceDetail
impl Serialize for OKXBalanceDetail
impl DerefToPyAny for OKXBalanceDetail
Auto Trait Implementations§
impl Freeze for OKXBalanceDetail
impl RefUnwindSafe for OKXBalanceDetail
impl Send for OKXBalanceDetail
impl Sync for OKXBalanceDetail
impl Unpin for OKXBalanceDetail
impl UnwindSafe for OKXBalanceDetail
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FromPyObject<'_> for Twhere
T: PyClass + Clone,
impl<T> FromPyObject<'_> for Twhere
T: PyClass + Clone,
§fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<T, PyErr>
fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<T, PyErr>
§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
§fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
self into an owned Python object, dropping type information.§fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
self into an owned Python object, dropping type information and unbinding it
from the 'py lifetime.§fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
self into a Python object. Read more