Skip to main content

GetUltraV1OrderResponse

Struct GetUltraV1OrderResponse 

Source
pub struct GetUltraV1OrderResponse {
Show 36 fields pub error_code: Option<f64>, pub error_message: Option<GetUltraV1OrderResponseErrorMessage>, pub expire_at: Option<String>, pub fee_bps: f64, pub fee_mint: Option<String>, pub gasless: bool, pub in_amount: String, pub in_usd_value: Option<f64>, pub input_mint: String, pub maker: Option<String>, pub mode: String, pub other_amount_threshold: String, pub out_amount: String, pub out_usd_value: Option<f64>, pub output_mint: String, pub platform_fee: GetUltraV1OrderResponsePlatformFee, pub price_impact: Option<f64>, pub price_impact_pct: String, pub prioritization_fee_lamports: f64, pub prioritization_fee_payer: Option<String>, pub quote_id: Option<String>, pub referral_account: Option<String>, pub rent_fee_lamports: f64, pub rent_fee_payer: Option<String>, pub request_id: String, pub route_plan: Vec<GetUltraV1OrderResponseRoutePlanItem>, pub router: GetUltraV1OrderResponseRouter, pub signature_fee_lamports: f64, pub signature_fee_payer: Option<String>, pub slippage_bps: f64, pub swap_mode: String, pub swap_type: String, pub swap_usd_value: Option<f64>, pub taker: Option<String>, pub total_time: f64, pub transaction: Option<String>,
}

Fields§

§error_code: Option<f64>
  • This field will be present if taker is defined and transaction is an empty string
    • It is unique for each error scenarios
§error_message: Option<GetUltraV1OrderResponseErrorMessage>
  • This field will be present if taker is defined and transaction is an empty string
    • This field can still return despite having a valid order/quote
    • This is meant for display purposes only and it is discouraged to match these error messages as they could be parameterized
§expire_at: Option<String>§fee_bps: f64
  • The fee includes either Ultra default fee or your integrator fee, depending on if referral and/or payer params are passed in
    • If referralAccount, referralFee (and payer if passed in) are passed in, the fee will be the integrator fee only
    • If no additional referral params are passed in, the fee will be the Ultra default fee only and can include additional fees for gasless support mechanism
§fee_mint: Option<String>§gasless: bool§in_amount: String§in_usd_value: Option<f64>§input_mint: String§maker: Option<String>§mode: String§other_amount_threshold: String§out_amount: String§out_usd_value: Option<f64>§output_mint: String§platform_fee: GetUltraV1OrderResponsePlatformFee
  • This field shows the platform fee only, does not include fee for gas
    • Platform fee can either be the Ultra default fee or your integrator fee
§price_impact: Option<f64>§price_impact_pct: String
  • Please use priceImpact field instead, this is still available only for backwards compatibility
§prioritization_fee_lamports: f64
  • The number of lamports the taker, maker (JupiterZ’s MM) or payer has to pay for higher priority landing, if a valid transaction is returned
    • Includes priority fees and tips for services such as Jito, etc, if any
§prioritization_fee_payer: Option<String>
  • The public key of the account that will cover the prioritization fee, it can be either taker, maker (JupiterZ’s MM) or payer if passed in
§quote_id: Option<String>§referral_account: Option<String>§rent_fee_lamports: f64
  • The number of lamports the taker or payer has to pay for account rent, if a valid transaction is returned
    • Note that this value is just an estimate
    • For JupiterZ quotes, Jupiter’s gas wallet pays the rent to create the taker’s output token account if not yet initialised
§rent_fee_payer: Option<String>
  • The public key of the account that will cover the rent fee, it can be either taker, payer if passed in, or Jupiter’s gas wallet for JupiterZ quotes when the taker’s output token account is not yet initialised
§request_id: String
  • Required to make a request to /execute
§route_plan: Vec<GetUltraV1OrderResponseRoutePlanItem>§router: GetUltraV1OrderResponseRouter§signature_fee_lamports: f64
  • The number of lamports the taker, maker (JupiterZ’s MM) or payer has to pay for the base network fee, if a valid transaction is returned.
§signature_fee_payer: Option<String>
  • The public key of the account that will cover the signature fee, it can be either taker, maker (JupiterZ’s MM) or payer if passed in
§slippage_bps: f64§swap_mode: String§swap_type: String
  • Deprecated, in favour of router
§swap_usd_value: Option<f64>§taker: Option<String>§total_time: f64§transaction: Option<String>
  • Unsigned base-64 encoded transaction to be signed and used in /execute
    • If taker is null, this field will be null.
    • If the transaction field is empty, it is returned with errorCode and errorMessage such as Insufficient Funds

Trait Implementations§

Source§

impl Clone for GetUltraV1OrderResponse

Source§

fn clone(&self) -> GetUltraV1OrderResponse

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GetUltraV1OrderResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for GetUltraV1OrderResponse

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for GetUltraV1OrderResponse

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more