pub struct GetAccountBillsParams {
pub inst_type: Option<OKXInstrumentType>,
pub inst_id: Option<String>,
pub ccy: Option<String>,
pub mgn_mode: Option<OKXMarginMode>,
pub ct_type: Option<OKXContractType>,
pub bill_type: Option<String>,
pub sub_type: Option<String>,
pub after: Option<String>,
pub before: Option<String>,
pub begin: Option<String>,
pub end: Option<String>,
pub limit: Option<u32>,
}Expand description
Parameters for GET /api/v5/account/bills and GET /api/v5/account/bills-archive.
All filters are optional, allowing account-wide and currency-wide queries.
Fields§
§inst_type: Option<OKXInstrumentType>Instrument type: SPOT, MARGIN, SWAP, FUTURES, OPTION, EVENTS.
inst_id: Option<String>Instrument ID, e.g. “BTC-USDT”.
ccy: Option<String>Bill currency.
mgn_mode: Option<OKXMarginMode>Margin mode: cross or isolated.
ct_type: Option<OKXContractType>Contract type: linear or inverse, applicable to FUTURES/SWAP.
bill_type: Option<String>Bill type code, as defined by OKX.
sub_type: Option<String>Bill subtype code, as defined by OKX.
after: Option<String>Returns records older than this bill ID.
before: Option<String>Returns records newer than this bill ID.
begin: Option<String>Begin timestamp in Unix milliseconds.
end: Option<String>End timestamp in Unix milliseconds.
limit: Option<u32>Number of results per request (default 100, maximum 100).
Trait Implementations§
Source§impl Clone for GetAccountBillsParams
impl Clone for GetAccountBillsParams
Source§impl Debug for GetAccountBillsParams
impl Debug for GetAccountBillsParams
Source§impl Default for GetAccountBillsParams
impl Default for GetAccountBillsParams
Source§impl<'de> Deserialize<'de> for GetAccountBillsParams
impl<'de> Deserialize<'de> for GetAccountBillsParams
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GetAccountBillsParams
impl RefUnwindSafe for GetAccountBillsParams
impl Send for GetAccountBillsParams
impl Sync for GetAccountBillsParams
impl Unpin for GetAccountBillsParams
impl UnsafeUnpin for GetAccountBillsParams
impl UnwindSafe for GetAccountBillsParams
Blanket Implementations§
impl<T> Allocation for T
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
Converts
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> ⓘ
Converts
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