#[non_exhaustive]pub struct RecurringBuyOrderUpdate {Show 29 fields
pub algo_id: String,
pub algo_cl_ord_id: String,
pub inst_type: String,
pub algo_ord_type: String,
pub state: String,
pub stgy_name: String,
pub recurring_list: Vec<RecurringBuyAllocation>,
pub period: String,
pub recurring_day: String,
pub recurring_hour: String,
pub recurring_time: String,
pub time_zone: String,
pub amt: NumberString,
pub investment_amt: NumberString,
pub investment_ccy: String,
pub next_invest_time: NumberString,
pub total_pnl: NumberString,
pub total_ann_rate: NumberString,
pub pnl_ratio: NumberString,
pub mkt_cap: NumberString,
pub cycles: NumberString,
pub tag: String,
pub trade_quote_ccy: String,
pub recurring_time_type: String,
pub recurring_time_minutes: String,
pub c_time: NumberString,
pub u_time: NumberString,
pub p_time: NumberString,
pub extra: ExtraFields,
}Expand description
algo-recurring-buy channel row.
OKX docs: https://www.okx.com/docs-v5/en/#trading-bot-websocket-recurring-buy-orders-channel
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.algo_id: StringOKX-assigned algo order ID.
algo_cl_ord_id: StringClient-supplied algo order ID.
inst_type: StringInstrument type covered by this strategy (typically SPOT).
algo_ord_type: StringAlgo order type: recurring.
state: StringStrategy state: running, stopping, stopped, or pause.
stgy_name: StringUser-defined strategy name (up to 40 characters).
recurring_list: Vec<RecurringBuyAllocation>List of currencies and their allocation ratios.
period: StringRecurrence period: monthly, weekly, daily, or hourly.
recurring_day: StringDay of month (1–28) or week (1–7) for monthly/weekly periods.
recurring_hour: StringHour interval for hourly period: 1, 4, 8, or 12.
recurring_time: StringClock hour within the day to execute (0–23).
time_zone: StringUTC time zone offset, e.g., 8 for UTC+8.
amt: NumberStringQuote-currency amount spent per execution cycle.
investment_amt: NumberStringAccumulated quote-currency amount invested to date.
investment_ccy: StringInvestment currency: USDT or USDC.
next_invest_time: NumberStringNext scheduled investment time (Unix milliseconds).
total_pnl: NumberStringTotal profit and loss since strategy start.
total_ann_rate: NumberStringTotal annualized rate of yield.
pnl_ratio: NumberStringRate of yield (P&L ratio).
mkt_cap: NumberStringMarket value of purchased assets in USDT.
cycles: NumberStringNumber of completed buy cycles.
tag: StringOrder tag.
trade_quote_ccy: StringQuote currency used for trading.
recurring_time_type: StringRecurring buy time type.
recurring_time_minutes: StringCustom recurring buy minutes.
c_time: NumberStringStrategy creation time (Unix milliseconds).
u_time: NumberStringLast update time (Unix milliseconds).
p_time: NumberStringPush time (Unix milliseconds).
extra: ExtraFieldsUnrecognized fields retained for forward compatibility.
Trait Implementations§
Source§impl Clone for RecurringBuyOrderUpdate
impl Clone for RecurringBuyOrderUpdate
Source§fn clone(&self) -> RecurringBuyOrderUpdate
fn clone(&self) -> RecurringBuyOrderUpdate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more