#[non_exhaustive]pub struct StakingDefiOrder {Show 16 fields
pub ccy: String,
pub ord_id: String,
pub product_id: String,
pub state: String,
pub protocol: String,
pub protocol_type: String,
pub term: String,
pub apy: NumberString,
pub invest_data: Vec<StakingDefiOrderInvestData>,
pub earning_data: Vec<StakingDefiOrderEarningData>,
pub fast_redemption_data: Vec<StakingDefiFastRedemptionData>,
pub purchased_time: NumberString,
pub est_settlement_time: NumberString,
pub cancel_redemption_deadline: NumberString,
pub redeemed_time: NumberString,
pub tag: String,
}Expand description
Staking/DeFi order row, returned by both the active-orders and order-history endpoints.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ccy: StringCurrency, e.g. BTC.
ord_id: StringOrder ID.
product_id: StringProduct ID.
state: StringOrder state.
Active orders: 8: Pending, 13: Cancelling, 9: Onchain,
1: Earning, 2: Redeeming.
Order history: 3: Completed (including canceled and redeemed).
protocol: StringProtocol.
protocol_type: StringProtocol type.
defi: on-chain earn.
term: StringProtocol term.
Returns the days of a fixed term, or 0 for a flexible product.
apy: NumberStringEstimated APY. 0.07 represents 7%. Retained to 4 decimal places
(truncated).
invest_data: Vec<StakingDefiOrderInvestData>Investment data.
earning_data: Vec<StakingDefiOrderEarningData>Earning data.
fast_redemption_data: Vec<StakingDefiFastRedemptionData>Fast redemption data. Only returned by the active-orders endpoint.
purchased_time: NumberStringOrder purchased time, Unix timestamp in milliseconds, e.g.
1597026383085.
est_settlement_time: NumberStringEstimated redemption settlement time. Only returned by the active-orders endpoint.
cancel_redemption_deadline: NumberStringDeadline for cancellation of a redemption application. Only returned by the active-orders endpoint.
redeemed_time: NumberStringOrder redeemed time. Only returned by the order-history endpoint.
tag: StringOrder tag.
Trait Implementations§
Source§impl Clone for StakingDefiOrder
impl Clone for StakingDefiOrder
Source§fn clone(&self) -> StakingDefiOrder
fn clone(&self) -> StakingDefiOrder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more