pub struct PostTriggerV2OrdersDcaRequest {Show 15 fields
pub begin_fill_at: Option<String>,
pub deposit_request_id: String,
pub deposit_signed_tx: String,
pub input_amount: String,
pub input_mint: String,
pub interval_seconds: f64,
pub jl_enabled: Option<bool>,
pub jl_mint: Option<String>,
pub max_price_usd: Option<f64>,
pub min_price_usd: Option<f64>,
pub order_count: f64,
pub order_type: Option<PostTriggerV2OrdersDcaRequestOrderType>,
pub output_mint: String,
pub trigger_mint: Option<String>,
pub user_pubkey: String,
}Fields§
§begin_fill_at: Option<String>ISO-8601 time to start the first round. Defaults to now, max 30 days in the future.
deposit_request_id: StringrequestId from the deposit craft response
deposit_signed_tx: StringBase64-encoded signed deposit transaction
input_amount: StringTotal amount to DCA in smallest units. Dust from uneven division is added to the last round.
input_mint: StringMint of the token to sell
interval_seconds: f64Seconds between rounds (60 to 31,536,000, i.e. 1 minute to 1 year) Constraint: minimum=60, maximum=31536000
jl_enabled: Option<bool>Earn While You Wait. When true, idle funds earn Jupiter Lend yield between rounds. Requires orderType time_based, a supported stablecoin input, and a deposit crafted with jlMint. Default false.
jl_mint: Option<String>Jupiter Lend earn token for the input stablecoin (from GET /lend/v1/earn/tokens, the address whose assetAddress is the inputMint). Required when jlEnabled is true.
max_price_usd: Option<f64>Upper USD price bound. Price-conditional only.
min_price_usd: Option<f64>Lower USD price bound. Price-conditional only.
order_count: f64Number of rounds to split the deposit into (minimum 2). No fixed upper limit, but each round must be worth at least 10 USD, so the practical maximum is floor(total deposit USD / 10). Constraint: minimum=2
order_type: Option<PostTriggerV2OrdersDcaRequestOrderType>time_based runs every interval; price_conditional only fills while the trigger mint price is within the band.
output_mint: StringMint of the token to buy
trigger_mint: Option<String>Mint whose USD price is checked against the band. Required for price_conditional. Must be a mint with a supported USD price (in practice the volatile leg / outputMint); a stablecoin such as USDC returns “Trigger mint is not supported”. Ignored for time_based.
user_pubkey: StringYour wallet public key (must match the JWT)
Implementations§
Source§impl PostTriggerV2OrdersDcaRequest
impl PostTriggerV2OrdersDcaRequest
Sourcepub fn new(
deposit_request_id: String,
deposit_signed_tx: String,
input_amount: String,
input_mint: String,
interval_seconds: f64,
order_count: f64,
output_mint: String,
user_pubkey: String,
) -> Self
pub fn new( deposit_request_id: String, deposit_signed_tx: String, input_amount: String, input_mint: String, interval_seconds: f64, order_count: f64, output_mint: String, user_pubkey: String, ) -> Self
Construct this request with every required wire field.
Sourcepub fn builder(
deposit_request_id: String,
deposit_signed_tx: String,
input_amount: String,
input_mint: String,
interval_seconds: f64,
order_count: f64,
output_mint: String,
user_pubkey: String,
) -> PostTriggerV2OrdersDcaRequestBuilder
pub fn builder( deposit_request_id: String, deposit_signed_tx: String, input_amount: String, input_mint: String, interval_seconds: f64, order_count: f64, output_mint: String, user_pubkey: String, ) -> PostTriggerV2OrdersDcaRequestBuilder
Start a dependency-free builder with every required wire field.
Trait Implementations§
Source§impl Clone for PostTriggerV2OrdersDcaRequest
impl Clone for PostTriggerV2OrdersDcaRequest
Source§fn clone(&self) -> PostTriggerV2OrdersDcaRequest
fn clone(&self) -> PostTriggerV2OrdersDcaRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more