pub struct HttpClient { /* private fields */ }Expand description
HTTP client for making API requests
Implementations§
Source§impl HttpClient
impl HttpClient
Sourcepub fn with_config(enable_tracing: bool) -> Self
pub fn with_config(enable_tracing: bool) -> Self
Create a new HTTP client with custom configuration
Sourcepub fn with_base_url(self, base_url: impl Into<String>) -> Self
pub fn with_base_url(self, base_url: impl Into<String>) -> Self
Set the base URL for all requests
Sourcepub fn with_api_key(self, api_key: impl Into<String>) -> Self
pub fn with_api_key(self, api_key: impl Into<String>) -> Self
Set the API key for authentication
Sourcepub fn with_max_response_body_bytes(self, limit: usize) -> Self
pub fn with_max_response_body_bytes(self, limit: usize) -> Self
Set the maximum number of response-body bytes buffered in memory.
Sourcepub fn with_header(
self,
name: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn with_header( self, name: impl Into<String>, value: impl Into<String>, ) -> Self
Add a custom header to all requests
Sourcepub fn with_headers(self, headers: BTreeMap<String, String>) -> Self
pub fn with_headers(self, headers: BTreeMap<String, String>) -> Self
Add multiple custom headers
Source§impl HttpClient
impl HttpClient
Sourcepub async fn get_build(
&self,
input_mint: impl AsRef<str>,
output_mint: impl AsRef<str>,
amount: impl AsRef<str>,
taker: impl AsRef<str>,
slippage_bps: Option<impl AsRef<str>>,
mode: Option<GetBuildMode>,
dexes: Option<impl AsRef<str>>,
exclude_dexes: Option<impl AsRef<str>>,
platform_fee_bps: Option<i64>,
fee_account: Option<impl AsRef<str>>,
max_accounts: Option<i64>,
payer: Option<impl AsRef<str>>,
wrap_and_unwrap_sol: Option<bool>,
destination_token_account: Option<impl AsRef<str>>,
native_destination_account: Option<impl AsRef<str>>,
blockhash_slots_to_expiry: Option<i64>,
tip_amount: Option<impl AsRef<str>>,
compute_unit_price_percentile: Option<impl AsRef<str>>,
for_jito_bundle: Option<bool>,
) -> Result<GetBuildResponse, ApiOpError<GetBuildApiError>>
pub async fn get_build( &self, input_mint: impl AsRef<str>, output_mint: impl AsRef<str>, amount: impl AsRef<str>, taker: impl AsRef<str>, slippage_bps: Option<impl AsRef<str>>, mode: Option<GetBuildMode>, dexes: Option<impl AsRef<str>>, exclude_dexes: Option<impl AsRef<str>>, platform_fee_bps: Option<i64>, fee_account: Option<impl AsRef<str>>, max_accounts: Option<i64>, payer: Option<impl AsRef<str>>, wrap_and_unwrap_sol: Option<bool>, destination_token_account: Option<impl AsRef<str>>, native_destination_account: Option<impl AsRef<str>>, blockhash_slots_to_expiry: Option<i64>, tip_amount: Option<impl AsRef<str>>, compute_unit_price_percentile: Option<impl AsRef<str>>, for_jito_bundle: Option<bool>, ) -> Result<GetBuildResponse, ApiOpError<GetBuildApiError>>
Build Transaction
Get a swap quote with raw instructions for building custom transactions. This is the advanced path for integrators who need full transaction control (add custom instructions, CPI, custom payer).
You are responsible for assembling the transaction, signing, and sending via your own RPC.
The /execute endpoint is not available for /build transactions.
Routing is Metis only. No swap fees are charged by Jupiter.
GET /swap/v2/build
Sourcepub async fn get_order(
&self,
input_mint: impl AsRef<str>,
output_mint: impl AsRef<str>,
amount: impl AsRef<str>,
taker: Option<impl AsRef<str>>,
receiver: Option<impl AsRef<str>>,
swap_mode: Option<GetOrderSwapMode>,
slippage_bps: Option<i64>,
referral_account: Option<impl AsRef<str>>,
referral_fee: Option<f64>,
payer: Option<impl AsRef<str>>,
priority_fee_lamports: Option<f64>,
jito_tip_lamports: Option<f64>,
broadcast_fee_type: Option<GetOrderBroadcastFeeType>,
exclude_routers: Option<impl AsRef<str>>,
exclude_dexes: Option<impl AsRef<str>>,
) -> Result<GetOrderResponse, ApiOpError<GetOrderApiError>>
pub async fn get_order( &self, input_mint: impl AsRef<str>, output_mint: impl AsRef<str>, amount: impl AsRef<str>, taker: Option<impl AsRef<str>>, receiver: Option<impl AsRef<str>>, swap_mode: Option<GetOrderSwapMode>, slippage_bps: Option<i64>, referral_account: Option<impl AsRef<str>>, referral_fee: Option<f64>, payer: Option<impl AsRef<str>>, priority_fee_lamports: Option<f64>, jito_tip_lamports: Option<f64>, broadcast_fee_type: Option<GetOrderBroadcastFeeType>, exclude_routers: Option<impl AsRef<str>>, exclude_dexes: Option<impl AsRef<str>>, ) -> Result<GetOrderResponse, ApiOpError<GetOrderApiError>>
Get Order
Get a swap quote and assembled transaction. This is the default happy path with all Ultra benefits (predictive execution, RTSE, Jupiter Beam, gasless, multi-router competition).
Without optional parameters, all routers compete for the best price (Metis, JupiterZ RFQ, Dflow, OKX).
Setting payer to a wallet different from taker restricts routing to Metis.
GET /swap/v2/order
Sourcepub async fn post_execute(
&self,
request: PostExecuteRequest,
) -> Result<PostExecuteResponse, ApiOpError<PostExecuteApiError>>
pub async fn post_execute( &self, request: PostExecuteRequest, ) -> Result<PostExecuteResponse, ApiOpError<PostExecuteApiError>>
Execute Transaction
Execute a signed transaction from /order. Handles transaction landing, confirmation, and retry.
Only available for transactions obtained via /order. Transactions built via /build must be
sent through your own RPC.
POST /swap/v2/execute
Sourcepub async fn program_id_to_label_get(
&self,
) -> Result<ProgramIdToLabelGetResponse, ApiOpError<Value>>
pub async fn program_id_to_label_get( &self, ) -> Result<ProgramIdToLabelGetResponse, ApiOpError<Value>>
program-id-to-label
Returns a hash, which key is the program id and value is the label.
This is used to help map error from transaction by identifying the fault program id.
This can be used in conjunction with the excludeDexes or dexes parameter.
GET /swap/v1/program-id-to-label
Sourcepub async fn quote_get(
&self,
input_mint: impl AsRef<str>,
output_mint: impl AsRef<str>,
amount: u64,
slippage_bps: Option<i64>,
swap_mode: Option<QuoteGetSwapMode>,
dexes: Option<Vec<String>>,
exclude_dexes: Option<Vec<String>>,
restrict_intermediate_tokens: Option<bool>,
only_direct_routes: Option<bool>,
as_legacy_transaction: Option<bool>,
platform_fee_bps: Option<i64>,
max_accounts: Option<u64>,
instruction_version: Option<QuoteGetInstructionVersion>,
dynamic_slippage: Option<bool>,
for_jito_bundle: Option<bool>,
) -> Result<SwapV1QuoteResponse, ApiOpError<Value>>
pub async fn quote_get( &self, input_mint: impl AsRef<str>, output_mint: impl AsRef<str>, amount: u64, slippage_bps: Option<i64>, swap_mode: Option<QuoteGetSwapMode>, dexes: Option<Vec<String>>, exclude_dexes: Option<Vec<String>>, restrict_intermediate_tokens: Option<bool>, only_direct_routes: Option<bool>, as_legacy_transaction: Option<bool>, platform_fee_bps: Option<i64>, max_accounts: Option<u64>, instruction_version: Option<QuoteGetInstructionVersion>, dynamic_slippage: Option<bool>, for_jito_bundle: Option<bool>, ) -> Result<SwapV1QuoteResponse, ApiOpError<Value>>
quote
Request for a quote to be used in POST /swap
GET /swap/v1/quote
Sourcepub async fn swap_instructions_post(
&self,
request: SwapV1SwapRequest,
) -> Result<SwapV1SwapInstructionsResponse, ApiOpError<Value>>
pub async fn swap_instructions_post( &self, request: SwapV1SwapRequest, ) -> Result<SwapV1SwapInstructionsResponse, ApiOpError<Value>>
swap-instructions
Request for swap instructions that you can use from the quote you get from /quote
POST /swap/v1/swap-instructions
Sourcepub async fn swap_post(
&self,
request: SwapV1SwapRequest,
) -> Result<SwapV1SwapResponse, ApiOpError<Value>>
pub async fn swap_post( &self, request: SwapV1SwapRequest, ) -> Result<SwapV1SwapResponse, ApiOpError<Value>>
swap
Request for a base64-encoded unsigned swap transaction based on the /quote response
POST /swap/v1/swap
Sourcepub async fn build_borrow_operate_instructions(
&self,
market: Option<LendBorrowMarket>,
request: LendBorrowOperatePayload,
) -> Result<LendBorrowOperateInstructionsResponse, ApiOpError<Value>>
pub async fn build_borrow_operate_instructions( &self, market: Option<LendBorrowMarket>, request: LendBorrowOperatePayload, ) -> Result<LendBorrowOperateInstructionsResponse, ApiOpError<Value>>
Build operate instructions
Returns Solana instructions and lookup table addresses for a borrow operate action.
POST /lend/v1/borrow/operate-instructions
Sourcepub async fn build_borrow_operate_transaction(
&self,
market: Option<LendBorrowMarket>,
request: LendBorrowOperatePayload,
) -> Result<LendBorrowOperateTransactionResponse, ApiOpError<Value>>
pub async fn build_borrow_operate_transaction( &self, market: Option<LendBorrowMarket>, request: LendBorrowOperatePayload, ) -> Result<LendBorrowOperateTransactionResponse, ApiOpError<Value>>
Build unsigned operate transaction
Builds a base64-encoded unsigned versioned transaction for a borrow operate action.
Positive colAmount / debtAmount values deposit collateral or borrow debt.
Negative values withdraw collateral or pay back debt.
POST /lend/v1/borrow/operate
Sourcepub async fn cancel_order(
&self,
request: RecurringCloseRecurring,
) -> Result<RecurringRecurringResponse, ApiOpError<Value>>
pub async fn cancel_order( &self, request: RecurringCloseRecurring, ) -> Result<RecurringRecurringResponse, ApiOpError<Value>>
cancelOrder
Request for a base64-encoded unsigned recurring order cancellation transaction to be used in POST /recurring/v1/execute
POST /recurring/v1/cancelOrder
Sourcepub async fn create_order(
&self,
request: RecurringCreateRecurring,
) -> Result<RecurringRecurringResponse, ApiOpError<Value>>
pub async fn create_order( &self, request: RecurringCreateRecurring, ) -> Result<RecurringRecurringResponse, ApiOpError<Value>>
createOrder
Request for a base64-encoded unsigned recurring order creation transaction to be used in POST /recurring/v1/execute
POST /recurring/v1/createOrder
Sourcepub async fn delete_prediction_v1_positions(
&self,
request: PredictionCloseAllPositionsRequest,
) -> Result<DeletePredictionV1PositionsResponse, ApiOpError<DeletePredictionV1PositionsApiError>>
pub async fn delete_prediction_v1_positions( &self, request: PredictionCloseAllPositionsRequest, ) -> Result<DeletePredictionV1PositionsResponse, ApiOpError<DeletePredictionV1PositionsApiError>>
DELETE /prediction/v1/positions
Sourcepub async fn delete_prediction_v1_positions_position_pubkey(
&self,
position_pubkey: impl AsRef<str>,
request: PredictionClosePositionRequest,
) -> Result<PredictionCreateOrderResponse, ApiOpError<DeletePredictionV1PositionsPositionPubkeyApiError>>
pub async fn delete_prediction_v1_positions_position_pubkey( &self, position_pubkey: impl AsRef<str>, request: PredictionClosePositionRequest, ) -> Result<PredictionCreateOrderResponse, ApiOpError<DeletePredictionV1PositionsPositionPubkeyApiError>>
DELETE /prediction/v1/positions/{positionPubkey}
Sourcepub async fn execute(
&self,
request: RecurringExecuteRecurring,
) -> Result<RecurringExecuteRecurringResponse, ApiOpError<Value>>
pub async fn execute( &self, request: RecurringExecuteRecurring, ) -> Result<RecurringExecuteRecurringResponse, ApiOpError<Value>>
execute
Execute the signed transaction and get the execution status
POST /recurring/v1/execute
Sourcepub async fn get_lend_v1_earn_earnings(
&self,
user: impl AsRef<str>,
positions: impl AsRef<str>,
) -> Result<LendUserEarningsResponse, ApiOpError<Value>>
pub async fn get_lend_v1_earn_earnings( &self, user: impl AsRef<str>, positions: impl AsRef<str>, ) -> Result<LendUserEarningsResponse, ApiOpError<Value>>
earnings
Request for the earnings of one or multiple positions of a user
GET /lend/v1/earn/earnings
Sourcepub async fn get_lend_v1_earn_positions(
&self,
users: impl AsRef<str>,
) -> Result<LendUserPositionsResponse, ApiOpError<Value>>
pub async fn get_lend_v1_earn_positions( &self, users: impl AsRef<str>, ) -> Result<LendUserPositionsResponse, ApiOpError<Value>>
positions
Request for the position data of one or multiple users
GET /lend/v1/earn/positions
Sourcepub async fn get_lend_v1_earn_tokens(
&self,
) -> Result<LendTokensResponse, ApiOpError<Value>>
pub async fn get_lend_v1_earn_tokens( &self, ) -> Result<LendTokensResponse, ApiOpError<Value>>
tokens
Request for the tokens available to be deposited and their information
GET /lend/v1/earn/tokens
Sourcepub async fn get_portfolio_v1_platforms(
&self,
) -> Result<GetPortfolioV1PlatformsResponse, ApiOpError<Value>>
pub async fn get_portfolio_v1_platforms( &self, ) -> Result<GetPortfolioV1PlatformsResponse, ApiOpError<Value>>
GET /portfolio/v1/platforms
Sourcepub async fn get_portfolio_v1_positions_address(
&self,
address: impl AsRef<str>,
platforms: Option<impl AsRef<str>>,
) -> Result<GetPortfolioV1PositionsAddressResponse, ApiOpError<Value>>
pub async fn get_portfolio_v1_positions_address( &self, address: impl AsRef<str>, platforms: Option<impl AsRef<str>>, ) -> Result<GetPortfolioV1PositionsAddressResponse, ApiOpError<Value>>
GET /portfolio/v1/positions/{address}
Sourcepub async fn get_portfolio_v1_staked_jup_address(
&self,
address: impl AsRef<str>,
) -> Result<GetPortfolioV1StakedJupAddressResponse, ApiOpError<Value>>
pub async fn get_portfolio_v1_staked_jup_address( &self, address: impl AsRef<str>, ) -> Result<GetPortfolioV1StakedJupAddressResponse, ApiOpError<Value>>
GET /portfolio/v1/staked-jup/{address}
Sourcepub async fn get_prediction_v1_events(
&self,
provider: Option<GetPredictionV1EventsProvider>,
include_markets: Option<bool>,
include_all_markets: Option<bool>,
start: Option<i64>,
end: Option<i64>,
category: Option<GetPredictionV1EventsCategory>,
subcategory: Option<impl AsRef<str>>,
sort_by: Option<GetPredictionV1EventsSortBy>,
sort_direction: Option<GetPredictionV1EventsSortDirection>,
filter: Option<GetPredictionV1EventsFilter>,
tags: Option<impl AsRef<str>>,
) -> Result<GetPredictionV1EventsResponse, ApiOpError<Value>>
pub async fn get_prediction_v1_events( &self, provider: Option<GetPredictionV1EventsProvider>, include_markets: Option<bool>, include_all_markets: Option<bool>, start: Option<i64>, end: Option<i64>, category: Option<GetPredictionV1EventsCategory>, subcategory: Option<impl AsRef<str>>, sort_by: Option<GetPredictionV1EventsSortBy>, sort_direction: Option<GetPredictionV1EventsSortDirection>, filter: Option<GetPredictionV1EventsFilter>, tags: Option<impl AsRef<str>>, ) -> Result<GetPredictionV1EventsResponse, ApiOpError<Value>>
GET /prediction/v1/events
Sourcepub async fn get_prediction_v1_events_event_id(
&self,
event_id: impl AsRef<str>,
include_markets: Option<bool>,
include_all_markets: Option<bool>,
) -> Result<PredictionEvent, ApiOpError<GetPredictionV1EventsEventIdApiError>>
pub async fn get_prediction_v1_events_event_id( &self, event_id: impl AsRef<str>, include_markets: Option<bool>, include_all_markets: Option<bool>, ) -> Result<PredictionEvent, ApiOpError<GetPredictionV1EventsEventIdApiError>>
GET /prediction/v1/events/{eventId}
Sourcepub async fn get_prediction_v1_events_event_id_markets(
&self,
event_id: impl AsRef<str>,
start: Option<i64>,
end: Option<i64>,
) -> Result<GetPredictionV1EventsEventIdMarketsResponse, ApiOpError<Value>>
pub async fn get_prediction_v1_events_event_id_markets( &self, event_id: impl AsRef<str>, start: Option<i64>, end: Option<i64>, ) -> Result<GetPredictionV1EventsEventIdMarketsResponse, ApiOpError<Value>>
GET /prediction/v1/events/{eventId}/markets
Sourcepub async fn get_prediction_v1_events_event_id_markets_market_id(
&self,
event_id: impl AsRef<str>,
market_id: impl AsRef<str>,
) -> Result<PredictionMarket, ApiOpError<GetPredictionV1EventsEventIdMarketsMarketIdApiError>>
pub async fn get_prediction_v1_events_event_id_markets_market_id( &self, event_id: impl AsRef<str>, market_id: impl AsRef<str>, ) -> Result<PredictionMarket, ApiOpError<GetPredictionV1EventsEventIdMarketsMarketIdApiError>>
GET /prediction/v1/events/{eventId}/markets/{marketId}
Sourcepub async fn get_prediction_v1_events_event_id_score(
&self,
event_id: impl AsRef<str>,
) -> Result<PredictionGameScore, ApiOpError<Value>>
pub async fn get_prediction_v1_events_event_id_score( &self, event_id: impl AsRef<str>, ) -> Result<PredictionGameScore, ApiOpError<Value>>
GET /prediction/v1/events/{eventId}/score
Sourcepub async fn get_prediction_v1_events_scores(
&self,
event_ids: impl AsRef<str>,
) -> Result<GetPredictionV1EventsScoresResponse, ApiOpError<Value>>
pub async fn get_prediction_v1_events_scores( &self, event_ids: impl AsRef<str>, ) -> Result<GetPredictionV1EventsScoresResponse, ApiOpError<Value>>
GET /prediction/v1/events/scores
Sourcepub async fn get_prediction_v1_events_search(
&self,
provider: Option<GetPredictionV1EventsSearchProvider>,
query: impl AsRef<str>,
limit: Option<i64>,
) -> Result<GetPredictionV1EventsSearchResponse, ApiOpError<Value>>
pub async fn get_prediction_v1_events_search( &self, provider: Option<GetPredictionV1EventsSearchProvider>, query: impl AsRef<str>, limit: Option<i64>, ) -> Result<GetPredictionV1EventsSearchResponse, ApiOpError<Value>>
GET /prediction/v1/events/search
Sourcepub async fn get_prediction_v1_events_suggested_pubkey(
&self,
pubkey: impl AsRef<str>,
provider: Option<GetPredictionV1EventsSuggestedPubkeyProvider>,
) -> Result<GetPredictionV1EventsSuggestedPubkeyResponse, ApiOpError<Value>>
pub async fn get_prediction_v1_events_suggested_pubkey( &self, pubkey: impl AsRef<str>, provider: Option<GetPredictionV1EventsSuggestedPubkeyProvider>, ) -> Result<GetPredictionV1EventsSuggestedPubkeyResponse, ApiOpError<Value>>
GET /prediction/v1/events/suggested/{pubkey}
Sourcepub async fn get_prediction_v1_forecast(
&self,
market_id: impl AsRef<str>,
) -> Result<GetPredictionV1ForecastResponse, ApiOpError<GetPredictionV1ForecastApiError>>
pub async fn get_prediction_v1_forecast( &self, market_id: impl AsRef<str>, ) -> Result<GetPredictionV1ForecastResponse, ApiOpError<GetPredictionV1ForecastApiError>>
GET /prediction/v1/forecast
Sourcepub async fn get_prediction_v1_history(
&self,
start: Option<i64>,
end: Option<i64>,
owner_pubkey: Option<impl AsRef<str>>,
id: Option<i64>,
position_pubkey: Option<impl AsRef<str>>,
) -> Result<GetPredictionV1HistoryResponse, ApiOpError<Value>>
pub async fn get_prediction_v1_history( &self, start: Option<i64>, end: Option<i64>, owner_pubkey: Option<impl AsRef<str>>, id: Option<i64>, position_pubkey: Option<impl AsRef<str>>, ) -> Result<GetPredictionV1HistoryResponse, ApiOpError<Value>>
GET /prediction/v1/history
Sourcepub async fn get_prediction_v1_leaderboards(
&self,
period: Option<GetPredictionV1LeaderboardsPeriod>,
limit: Option<i64>,
metric: Option<GetPredictionV1LeaderboardsMetric>,
) -> Result<GetPredictionV1LeaderboardsResponse, ApiOpError<Value>>
pub async fn get_prediction_v1_leaderboards( &self, period: Option<GetPredictionV1LeaderboardsPeriod>, limit: Option<i64>, metric: Option<GetPredictionV1LeaderboardsMetric>, ) -> Result<GetPredictionV1LeaderboardsResponse, ApiOpError<Value>>
GET /prediction/v1/leaderboards
Sourcepub async fn get_prediction_v1_markets_market_id(
&self,
market_id: impl AsRef<str>,
) -> Result<PredictionMarket, ApiOpError<GetPredictionV1MarketsMarketIdApiError>>
pub async fn get_prediction_v1_markets_market_id( &self, market_id: impl AsRef<str>, ) -> Result<PredictionMarket, ApiOpError<GetPredictionV1MarketsMarketIdApiError>>
GET /prediction/v1/markets/{marketId}
Sourcepub async fn get_prediction_v1_orderbook_market_id(
&self,
market_id: impl AsRef<str>,
) -> Result<GetPredictionV1OrderbookMarketIdResponse, ApiOpError<GetPredictionV1OrderbookMarketIdApiError>>
pub async fn get_prediction_v1_orderbook_market_id( &self, market_id: impl AsRef<str>, ) -> Result<GetPredictionV1OrderbookMarketIdResponse, ApiOpError<GetPredictionV1OrderbookMarketIdApiError>>
GET /prediction/v1/orderbook/{marketId}
Sourcepub async fn get_prediction_v1_orders(
&self,
start: Option<i64>,
end: Option<i64>,
owner_pubkey: Option<impl AsRef<str>>,
) -> Result<GetPredictionV1OrdersResponse, ApiOpError<GetPredictionV1OrdersApiError>>
pub async fn get_prediction_v1_orders( &self, start: Option<i64>, end: Option<i64>, owner_pubkey: Option<impl AsRef<str>>, ) -> Result<GetPredictionV1OrdersResponse, ApiOpError<GetPredictionV1OrdersApiError>>
GET /prediction/v1/orders
Sourcepub async fn get_prediction_v1_orders_order_pubkey(
&self,
order_pubkey: impl AsRef<str>,
) -> Result<PredictionOrder, ApiOpError<GetPredictionV1OrdersOrderPubkeyApiError>>
pub async fn get_prediction_v1_orders_order_pubkey( &self, order_pubkey: impl AsRef<str>, ) -> Result<PredictionOrder, ApiOpError<GetPredictionV1OrdersOrderPubkeyApiError>>
GET /prediction/v1/orders/{orderPubkey}
Sourcepub async fn get_prediction_v1_orders_status_order_pubkey(
&self,
order_pubkey: impl AsRef<str>,
) -> Result<GetPredictionV1OrdersStatusOrderPubkeyResponse, ApiOpError<GetPredictionV1OrdersStatusOrderPubkeyApiError>>
pub async fn get_prediction_v1_orders_status_order_pubkey( &self, order_pubkey: impl AsRef<str>, ) -> Result<GetPredictionV1OrdersStatusOrderPubkeyResponse, ApiOpError<GetPredictionV1OrdersStatusOrderPubkeyApiError>>
GET /prediction/v1/orders/status/{orderPubkey}
Sourcepub async fn get_prediction_v1_positions(
&self,
start: Option<i64>,
end: Option<i64>,
owner_pubkey: Option<impl AsRef<str>>,
market_pubkey: Option<impl AsRef<str>>,
market_id: Option<impl AsRef<str>>,
is_yes: Option<GetPredictionV1PositionsIsYes>,
) -> Result<GetPredictionV1PositionsResponse, ApiOpError<GetPredictionV1PositionsApiError>>
pub async fn get_prediction_v1_positions( &self, start: Option<i64>, end: Option<i64>, owner_pubkey: Option<impl AsRef<str>>, market_pubkey: Option<impl AsRef<str>>, market_id: Option<impl AsRef<str>>, is_yes: Option<GetPredictionV1PositionsIsYes>, ) -> Result<GetPredictionV1PositionsResponse, ApiOpError<GetPredictionV1PositionsApiError>>
GET /prediction/v1/positions
Sourcepub async fn get_prediction_v1_positions_position_pubkey(
&self,
position_pubkey: impl AsRef<str>,
) -> Result<PredictionPosition, ApiOpError<GetPredictionV1PositionsPositionPubkeyApiError>>
pub async fn get_prediction_v1_positions_position_pubkey( &self, position_pubkey: impl AsRef<str>, ) -> Result<PredictionPosition, ApiOpError<GetPredictionV1PositionsPositionPubkeyApiError>>
GET /prediction/v1/positions/{positionPubkey}
Sourcepub async fn get_prediction_v1_profiles_owner_pubkey(
&self,
owner_pubkey: impl AsRef<str>,
) -> Result<GetPredictionV1ProfilesOwnerPubkeyResponse, ApiOpError<GetPredictionV1ProfilesOwnerPubkeyApiError>>
pub async fn get_prediction_v1_profiles_owner_pubkey( &self, owner_pubkey: impl AsRef<str>, ) -> Result<GetPredictionV1ProfilesOwnerPubkeyResponse, ApiOpError<GetPredictionV1ProfilesOwnerPubkeyApiError>>
GET /prediction/v1/profiles/{ownerPubkey}
Sourcepub async fn get_prediction_v1_profiles_owner_pubkey_pnl_history(
&self,
owner_pubkey: impl AsRef<str>,
interval: Option<GetPredictionV1ProfilesOwnerPubkeyPnlHistoryInterval>,
count: Option<i64>,
) -> Result<GetPredictionV1ProfilesOwnerPubkeyPnlHistoryResponse, ApiOpError<Value>>
pub async fn get_prediction_v1_profiles_owner_pubkey_pnl_history( &self, owner_pubkey: impl AsRef<str>, interval: Option<GetPredictionV1ProfilesOwnerPubkeyPnlHistoryInterval>, count: Option<i64>, ) -> Result<GetPredictionV1ProfilesOwnerPubkeyPnlHistoryResponse, ApiOpError<Value>>
GET /prediction/v1/profiles/{ownerPubkey}/pnl-history
Sourcepub async fn get_prediction_v1_trades(
&self,
) -> Result<GetPredictionV1TradesResponse, ApiOpError<Value>>
pub async fn get_prediction_v1_trades( &self, ) -> Result<GetPredictionV1TradesResponse, ApiOpError<Value>>
GET /prediction/v1/trades
Sourcepub async fn get_prediction_v1_trading_status(
&self,
) -> Result<PredictionTradingStatusResponse, ApiOpError<Value>>
pub async fn get_prediction_v1_trading_status( &self, ) -> Result<PredictionTradingStatusResponse, ApiOpError<Value>>
GET /prediction/v1/trading-status
Sourcepub async fn get_prediction_v1_vault_info(
&self,
) -> Result<GetPredictionV1VaultInfoResponse, ApiOpError<GetPredictionV1VaultInfoApiError>>
pub async fn get_prediction_v1_vault_info( &self, ) -> Result<GetPredictionV1VaultInfoResponse, ApiOpError<GetPredictionV1VaultInfoApiError>>
GET /prediction/v1/vault-info
Sourcepub async fn get_price_v2(
&self,
ids: impl AsRef<str>,
vs_token: Option<impl AsRef<str>>,
show_extra_info: Option<impl AsRef<str>>,
) -> Result<PriceV2PriceResponse, ApiOpError<Value>>
pub async fn get_price_v2( &self, ids: impl AsRef<str>, vs_token: Option<impl AsRef<str>>, show_extra_info: Option<impl AsRef<str>>, ) -> Result<PriceV2PriceResponse, ApiOpError<Value>>
price
Returns prices of specified tokens. Price V2 API is deprecated, please use Price V3 API instead.
GET /price/v2/
Sourcepub async fn get_price_v3(
&self,
ids: impl AsRef<str>,
) -> Result<GetPriceV3Response, ApiOpError<Value>>
pub async fn get_price_v3( &self, ids: impl AsRef<str>, ) -> Result<GetPriceV3Response, ApiOpError<Value>>
price
Get USD prices for up to 50 tokens per request. Tokens without a reliable price are omitted from the response.
GET /price/v3
Sourcepub async fn get_recurring_v1_get_recurring_orders(
&self,
recurring_type: RecurringRecurringOrderType,
order_status: RecurringOrderState,
user: impl AsRef<str>,
page: i64,
mint: impl AsRef<str>,
include_failed_tx: bool,
) -> Result<RecurringGetRecurringOrderResponse, ApiOpError<Value>>
pub async fn get_recurring_v1_get_recurring_orders( &self, recurring_type: RecurringRecurringOrderType, order_status: RecurringOrderState, user: impl AsRef<str>, page: i64, mint: impl AsRef<str>, include_failed_tx: bool, ) -> Result<RecurringGetRecurringOrderResponse, ApiOpError<Value>>
getRecurringOrders
GET /recurring/v1/getRecurringOrders
Sourcepub async fn get_send_v1_invite_history(
&self,
address: impl AsRef<str>,
page: Option<i64>,
) -> Result<SendInviteDataResponse, ApiOpError<GetSendV1InviteHistoryApiError>>
pub async fn get_send_v1_invite_history( &self, address: impl AsRef<str>, page: Option<i64>, ) -> Result<SendInviteDataResponse, ApiOpError<GetSendV1InviteHistoryApiError>>
invite-history
Request for the invite history of an address
GET /send/v1/invite-history
Sourcepub async fn get_send_v1_pending_invites(
&self,
address: impl AsRef<str>,
page: Option<i64>,
) -> Result<SendInviteDataResponse, ApiOpError<GetSendV1PendingInvitesApiError>>
pub async fn get_send_v1_pending_invites( &self, address: impl AsRef<str>, page: Option<i64>, ) -> Result<SendInviteDataResponse, ApiOpError<GetSendV1PendingInvitesApiError>>
pending-invites
Request for the pending invites of an address
GET /send/v1/pending-invites
Sourcepub async fn get_studio_v1_dbc_pool_addresses_mint(
&self,
mint: impl AsRef<str>,
) -> Result<GetStudioV1DbcPoolAddressesMintResponse, ApiOpError<GetStudioV1DbcPoolAddressesMintApiError>>
pub async fn get_studio_v1_dbc_pool_addresses_mint( &self, mint: impl AsRef<str>, ) -> Result<GetStudioV1DbcPoolAddressesMintResponse, ApiOpError<GetStudioV1DbcPoolAddressesMintApiError>>
dbc-pool-addresses-by-mint
Request for pool addresses for a given token mint
GET /studio/v1/dbc-pool/addresses/{mint}
Sourcepub async fn get_tokens_v1_all(
&self,
) -> Result<GetTokensV1AllResponse, ApiOpError<Value>>
pub async fn get_tokens_v1_all( &self, ) -> Result<GetTokensV1AllResponse, ApiOpError<Value>>
all
Returns all tokens with all metadata. Tokens API V1 is deprecated, please use Tokens API V2 instead.
GET /tokens/v1/all
Sourcepub async fn get_tokens_v1_market_market_address_mints(
&self,
market_address: impl AsRef<str>,
) -> Result<GetTokensV1MarketMarketAddressMintsResponse, ApiOpError<Value>>
pub async fn get_tokens_v1_market_market_address_mints( &self, market_address: impl AsRef<str>, ) -> Result<GetTokensV1MarketMarketAddressMintsResponse, ApiOpError<Value>>
mints in market
Returns the mints involved in a market. Tokens API V1 is deprecated, please use Tokens API V2 instead.
GET /tokens/v1/market/{market_address}/mints
Sourcepub async fn get_tokens_v1_mints_tradable(
&self,
) -> Result<GetTokensV1MintsTradableResponse, ApiOpError<Value>>
pub async fn get_tokens_v1_mints_tradable( &self, ) -> Result<GetTokensV1MintsTradableResponse, ApiOpError<Value>>
tradable
Returns a list of all mints tradable via Jupiter routing. Tokens API V1 is deprecated, please use Tokens API V2 instead.
GET /tokens/v1/mints/tradable
Sourcepub async fn get_tokens_v1_new(
&self,
limit: Option<i64>,
offset: Option<i64>,
) -> Result<GetTokensV1NewResponse, ApiOpError<Value>>
pub async fn get_tokens_v1_new( &self, limit: Option<i64>, offset: Option<i64>, ) -> Result<GetTokensV1NewResponse, ApiOpError<Value>>
new
Returns new tokens with metadata, created at timestamp and markets. Tokens API V1 is deprecated, please use Tokens API V2 instead.
GET /tokens/v1/new
Sourcepub async fn get_tokens_v1_tagged_tag(
&self,
tag: impl AsRef<str>,
) -> Result<TokensV1MintIncludingDuplicates, ApiOpError<Value>>
pub async fn get_tokens_v1_tagged_tag( &self, tag: impl AsRef<str>, ) -> Result<TokensV1MintIncludingDuplicates, ApiOpError<Value>>
tagged
Returns a list of mints with specified tag(s) along with their metadata. Tokens API V1 is deprecated, please use Tokens API V2 instead.
GET /tokens/v1/tagged/{tag}
Sourcepub async fn get_tokens_v1_token_mint_address(
&self,
mint_address: impl AsRef<str>,
) -> Result<TokensV1MintIncludingDuplicates, ApiOpError<Value>>
pub async fn get_tokens_v1_token_mint_address( &self, mint_address: impl AsRef<str>, ) -> Result<TokensV1MintIncludingDuplicates, ApiOpError<Value>>
token information
Returns the specified mint address’s token information and metadata. Tokens API V1 is deprecated, please use Tokens API V2 instead.
GET /tokens/v1/token/{mint_address}
Sourcepub async fn get_tokens_v2_category_interval(
&self,
category: GetTokensV2CategoryIntervalCategory,
interval: GetTokensV2CategoryIntervalInterval,
limit: Option<i64>,
) -> Result<GetTokensV2CategoryIntervalResponse, ApiOpError<GetTokensV2CategoryIntervalApiError>>
pub async fn get_tokens_v2_category_interval( &self, category: GetTokensV2CategoryIntervalCategory, interval: GetTokensV2CategoryIntervalInterval, limit: Option<i64>, ) -> Result<GetTokensV2CategoryIntervalResponse, ApiOpError<GetTokensV2CategoryIntervalApiError>>
category
Returns an array of mints and their information for the given category and interval
GET /tokens/v2/{category}/{interval}
Sourcepub async fn get_tokens_v2_recent(
&self,
) -> Result<GetTokensV2RecentResponse, ApiOpError<GetTokensV2RecentApiError>>
pub async fn get_tokens_v2_recent( &self, ) -> Result<GetTokensV2RecentResponse, ApiOpError<GetTokensV2RecentApiError>>
recent
Returns an array of mints that recently had their first created pool
- Default to 30 mints in response
GET /tokens/v2/recent
Sourcepub async fn get_tokens_v2_search(
&self,
query: impl AsRef<str>,
) -> Result<GetTokensV2SearchResponse, ApiOpError<GetTokensV2SearchApiError>>
pub async fn get_tokens_v2_search( &self, query: impl AsRef<str>, ) -> Result<GetTokensV2SearchResponse, ApiOpError<GetTokensV2SearchApiError>>
search
Request a search by token’s symbol, name or mint address
GET /tokens/v2/search
Sourcepub async fn get_tokens_v2_tag(
&self,
query: GetTokensV2TagQuery,
) -> Result<GetTokensV2TagResponse, ApiOpError<GetTokensV2TagApiError>>
pub async fn get_tokens_v2_tag( &self, query: GetTokensV2TagQuery, ) -> Result<GetTokensV2TagResponse, ApiOpError<GetTokensV2TagApiError>>
tag
Request an array of mints and their information by a tag
- Note that this will return the entire array of existing mints that belongs to the tag.
GET /tokens/v2/tag
Sourcepub async fn get_tokens_v2_verify_express_check_eligibility(
&self,
token_id: impl AsRef<str>,
) -> Result<TokensV2VerificationCheckEligibilityResponse, ApiOpError<GetTokensV2VerifyExpressCheckEligibilityApiError>>
pub async fn get_tokens_v2_verify_express_check_eligibility( &self, token_id: impl AsRef<str>, ) -> Result<TokensV2VerificationCheckEligibilityResponse, ApiOpError<GetTokensV2VerifyExpressCheckEligibilityApiError>>
Check express verification eligibility
Checks whether a token is eligible for express verification and metadata updates.
If both canVerify and canMetadata are false, any submission will be rejected
before payment is charged.
GET /tokens/v2/verify/express/check-eligibility
Sourcepub async fn get_tokens_v2_verify_express_craft_txn(
&self,
sender_address: impl AsRef<str>,
payment_currency: Option<TokensV2VerificationPaymentCurrency>,
) -> Result<TokensV2VerificationCraftTxnResponse, ApiOpError<GetTokensV2VerifyExpressCraftTxnApiError>>
pub async fn get_tokens_v2_verify_express_craft_txn( &self, sender_address: impl AsRef<str>, payment_currency: Option<TokensV2VerificationPaymentCurrency>, ) -> Result<TokensV2VerificationCraftTxnResponse, ApiOpError<GetTokensV2VerifyExpressCraftTxnApiError>>
Craft express verification payment transaction
Returns an unsigned Solana transaction worth 1000 JUP as payment for express
verification. JUP transfers directly; SOL, USDC, and JUPUSD craft an Ultra swap to
1000 JUP. The requestId in the response is required for the execute step.
GET /tokens/v2/verify/express/craft-txn
Sourcepub async fn get_trigger_v1_get_trigger_orders(
&self,
user: impl AsRef<str>,
page: Option<impl AsRef<str>>,
include_failed_tx: Option<GetTriggerV1GetTriggerOrdersIncludeFailedTx>,
order_status: GetTriggerV1GetTriggerOrdersOrderStatus,
input_mint: Option<impl AsRef<str>>,
output_mint: Option<impl AsRef<str>>,
) -> Result<GetTriggerV1GetTriggerOrdersResponse, ApiOpError<Value>>
pub async fn get_trigger_v1_get_trigger_orders( &self, user: impl AsRef<str>, page: Option<impl AsRef<str>>, include_failed_tx: Option<GetTriggerV1GetTriggerOrdersIncludeFailedTx>, order_status: GetTriggerV1GetTriggerOrdersOrderStatus, input_mint: Option<impl AsRef<str>>, output_mint: Option<impl AsRef<str>>, ) -> Result<GetTriggerV1GetTriggerOrdersResponse, ApiOpError<Value>>
getTriggerOrders
Request for the active or historical orders associated to the provided account
GET /trigger/v1/getTriggerOrders
Sourcepub async fn get_trigger_v2_orders_history(
&self,
state: Option<GetTriggerV2OrdersHistoryState>,
mint: Option<impl AsRef<str>>,
limit: Option<f64>,
offset: Option<f64>,
sort: Option<GetTriggerV2OrdersHistorySort>,
dir: Option<GetTriggerV2OrdersHistoryDir>,
) -> Result<GetTriggerV2OrdersHistoryResponse, ApiOpError<Value>>
pub async fn get_trigger_v2_orders_history( &self, state: Option<GetTriggerV2OrdersHistoryState>, mint: Option<impl AsRef<str>>, limit: Option<f64>, offset: Option<f64>, sort: Option<GetTriggerV2OrdersHistorySort>, dir: Option<GetTriggerV2OrdersHistoryDir>, ) -> Result<GetTriggerV2OrdersHistoryResponse, ApiOpError<Value>>
Get order history
Retrieve paginated order history for the authenticated wallet. Filter by state, mint, and sort order.
GET /trigger/v2/orders/history
Sourcepub async fn get_trigger_v2_orders_history_dca(
&self,
state: Option<GetTriggerV2OrdersHistoryDcaState>,
mint: Option<impl AsRef<str>>,
limit: Option<f64>,
offset: Option<f64>,
sort: Option<GetTriggerV2OrdersHistoryDcaSort>,
dir: Option<GetTriggerV2OrdersHistoryDcaDir>,
) -> Result<GetTriggerV2OrdersHistoryDcaResponse, ApiOpError<Value>>
pub async fn get_trigger_v2_orders_history_dca( &self, state: Option<GetTriggerV2OrdersHistoryDcaState>, mint: Option<impl AsRef<str>>, limit: Option<f64>, offset: Option<f64>, sort: Option<GetTriggerV2OrdersHistoryDcaSort>, dir: Option<GetTriggerV2OrdersHistoryDcaDir>, ) -> Result<GetTriggerV2OrdersHistoryDcaResponse, ApiOpError<Value>>
List DCA orders
List the authenticated wallet’s DCA orders with full event history.
GET /trigger/v2/orders/history/dca
Sourcepub async fn get_trigger_v2_orders_history_dca_id(
&self,
id: impl AsRef<str>,
) -> Result<TriggerV2DcaHistoryItem, ApiOpError<Value>>
pub async fn get_trigger_v2_orders_history_dca_id( &self, id: impl AsRef<str>, ) -> Result<TriggerV2DcaHistoryItem, ApiOpError<Value>>
Get DCA order
Get a single DCA order by ID, including fill history and events. The path requires
the dca segment.
GET /trigger/v2/orders/history/dca/{id}
Sourcepub async fn get_trigger_v2_vault(
&self,
) -> Result<GetTriggerV2VaultResponse, ApiOpError<Value>>
pub async fn get_trigger_v2_vault( &self, ) -> Result<GetTriggerV2VaultResponse, ApiOpError<Value>>
Get vault info
Retrieve the vault associated with your authenticated wallet.
GET /trigger/v2/vault
Sourcepub async fn get_trigger_v2_vault_register(
&self,
) -> Result<GetTriggerV2VaultRegisterResponse201, ApiOpError<GetTriggerV2VaultRegisterApiError>>
pub async fn get_trigger_v2_vault_register( &self, ) -> Result<GetTriggerV2VaultRegisterResponse201, ApiOpError<GetTriggerV2VaultRegisterApiError>>
Register a new vault
Create a new Privy-managed vault wallet for your account. Call this once per wallet. Subsequent calls return the existing vault.
GET /trigger/v2/vault/register
Sourcepub async fn get_ultra_v1_balances_address(
&self,
address: impl AsRef<str>,
) -> Result<GetUltraV1BalancesAddressResponse, ApiOpError<GetUltraV1BalancesAddressApiError>>
pub async fn get_ultra_v1_balances_address( &self, address: impl AsRef<str>, ) -> Result<GetUltraV1BalancesAddressResponse, ApiOpError<GetUltraV1BalancesAddressApiError>>
balances
Request for token balances of an account
GET /ultra/v1/balances/{address}
Sourcepub async fn get_ultra_v1_holdings_address(
&self,
address: impl AsRef<str>,
) -> Result<UltraHoldingsResponse, ApiOpError<Value>>
pub async fn get_ultra_v1_holdings_address( &self, address: impl AsRef<str>, ) -> Result<UltraHoldingsResponse, ApiOpError<Value>>
holdings
Request for token balances of an account including token account information
GET /ultra/v1/holdings/{address}
Sourcepub async fn get_ultra_v1_holdings_address_native(
&self,
address: impl AsRef<str>,
) -> Result<UltraNativeHoldingsResponse, ApiOpError<Value>>
pub async fn get_ultra_v1_holdings_address_native( &self, address: impl AsRef<str>, ) -> Result<UltraNativeHoldingsResponse, ApiOpError<Value>>
holdings (native)
Request for native SOL holdings only, without other tokens
GET /ultra/v1/holdings/{address}/native
Sourcepub async fn get_ultra_v1_order(
&self,
input_mint: impl AsRef<str>,
output_mint: impl AsRef<str>,
amount: impl AsRef<str>,
taker: Option<impl AsRef<str>>,
receiver: Option<impl AsRef<str>>,
payer: Option<impl AsRef<str>>,
close_authority: Option<impl AsRef<str>>,
referral_account: Option<impl AsRef<str>>,
referral_fee: Option<f64>,
exclude_routers: Option<GetUltraV1OrderExcludeRouters>,
exclude_dexes: Option<impl AsRef<str>>,
) -> Result<GetUltraV1OrderResponse, ApiOpError<GetUltraV1OrderApiError>>
pub async fn get_ultra_v1_order( &self, input_mint: impl AsRef<str>, output_mint: impl AsRef<str>, amount: impl AsRef<str>, taker: Option<impl AsRef<str>>, receiver: Option<impl AsRef<str>>, payer: Option<impl AsRef<str>>, close_authority: Option<impl AsRef<str>>, referral_account: Option<impl AsRef<str>>, referral_fee: Option<f64>, exclude_routers: Option<GetUltraV1OrderExcludeRouters>, exclude_dexes: Option<impl AsRef<str>>, ) -> Result<GetUltraV1OrderResponse, ApiOpError<GetUltraV1OrderApiError>>
order
Request for a base64-encoded unsigned swap transaction to be used in POST /ultra/v1/execute
GET /ultra/v1/order
Sourcepub async fn get_ultra_v1_order_routers(
&self,
) -> Result<GetUltraV1OrderRoutersResponse, ApiOpError<Value>>
pub async fn get_ultra_v1_order_routers( &self, ) -> Result<GetUltraV1OrderRoutersResponse, ApiOpError<Value>>
routers
Request for the list of routers available in the routing engine of Ultra, which is Juno
GET /ultra/v1/order/routers
Sourcepub async fn get_ultra_v1_search(
&self,
query: impl AsRef<str>,
) -> Result<GetUltraV1SearchResponse, ApiOpError<GetUltraV1SearchApiError>>
pub async fn get_ultra_v1_search( &self, query: impl AsRef<str>, ) -> Result<GetUltraV1SearchResponse, ApiOpError<GetUltraV1SearchApiError>>
search
Request a search by token’s symbol, name or mint address
GET /ultra/v1/search
Sourcepub async fn get_ultra_v1_shield(
&self,
mints: impl AsRef<str>,
) -> Result<GetUltraV1ShieldResponse, ApiOpError<GetUltraV1ShieldApiError>>
pub async fn get_ultra_v1_shield( &self, mints: impl AsRef<str>, ) -> Result<GetUltraV1ShieldResponse, ApiOpError<GetUltraV1ShieldApiError>>
shield
Request for token information and warnings of mints
GET /ultra/v1/shield
Sourcepub async fn list_borrow_positions(
&self,
users: impl AsRef<str>,
market: Option<LendBorrowMarket>,
) -> Result<ListBorrowPositionsResponse, ApiOpError<Value>>
pub async fn list_borrow_positions( &self, users: impl AsRef<str>, market: Option<LendBorrowMarket>, ) -> Result<ListBorrowPositionsResponse, ApiOpError<Value>>
List borrow positions for users
Returns borrow positions (NFTs) for one or more wallet addresses.
Pass multiple wallets as a comma-separated list in the users query parameter.
GET /lend/v1/borrow/positions
Sourcepub async fn list_borrow_vaults(
&self,
market: Option<LendBorrowMarket>,
rpc_url: Option<impl AsRef<str>>,
) -> Result<ListBorrowVaultsResponse, ApiOpError<Value>>
pub async fn list_borrow_vaults( &self, market: Option<LendBorrowMarket>, rpc_url: Option<impl AsRef<str>>, ) -> Result<ListBorrowVaultsResponse, ApiOpError<Value>>
List borrow vaults
Returns all whitelisted borrow vaults for the requested market.
GET /lend/v1/borrow/vaults
Sourcepub async fn patch_trigger_v2_orders_price_order_id(
&self,
order_id: impl AsRef<str>,
request: PatchTriggerV2OrdersPriceOrderIdRequest,
) -> Result<PatchTriggerV2OrdersPriceOrderIdResponse, ApiOpError<Value>>
pub async fn patch_trigger_v2_orders_price_order_id( &self, order_id: impl AsRef<str>, request: PatchTriggerV2OrdersPriceOrderIdRequest, ) -> Result<PatchTriggerV2OrdersPriceOrderIdResponse, ApiOpError<Value>>
Update price order
Update trigger price or slippage of an existing order.
PATCH /trigger/v2/orders/price/{orderId}
Sourcepub async fn post_lend_v1_earn_deposit(
&self,
request: LendEarnAmountRequestBody,
) -> Result<LendTransactionResponse, ApiOpError<Value>>
pub async fn post_lend_v1_earn_deposit( &self, request: LendEarnAmountRequestBody, ) -> Result<LendTransactionResponse, ApiOpError<Value>>
deposit
Request for a base64-encoded unsigned earn deposit transaction to deposit assets
POST /lend/v1/earn/deposit
Sourcepub async fn post_lend_v1_earn_deposit_instructions(
&self,
request: LendEarnAmountRequestBody,
) -> Result<LendInstructionResponse, ApiOpError<Value>>
pub async fn post_lend_v1_earn_deposit_instructions( &self, request: LendEarnAmountRequestBody, ) -> Result<LendInstructionResponse, ApiOpError<Value>>
deposit-instructions
Request for the instruction of an earn deposit transaction to deposit assets
POST /lend/v1/earn/deposit-instructions
Sourcepub async fn post_lend_v1_earn_mint(
&self,
request: LendEarnSharesRequestBody,
) -> Result<LendTransactionResponse, ApiOpError<Value>>
pub async fn post_lend_v1_earn_mint( &self, request: LendEarnSharesRequestBody, ) -> Result<LendTransactionResponse, ApiOpError<Value>>
mint
Request for a base64-encoded unsigned earn mint transaction to mint shares
POST /lend/v1/earn/mint
Sourcepub async fn post_lend_v1_earn_mint_instructions(
&self,
request: LendEarnSharesRequestBody,
) -> Result<LendInstructionResponse, ApiOpError<Value>>
pub async fn post_lend_v1_earn_mint_instructions( &self, request: LendEarnSharesRequestBody, ) -> Result<LendInstructionResponse, ApiOpError<Value>>
mint-instructions
Request for the instruction of an earn mint transaction to mint shares
POST /lend/v1/earn/mint-instructions
Sourcepub async fn post_lend_v1_earn_redeem(
&self,
request: LendEarnSharesRequestBody,
) -> Result<LendTransactionResponse, ApiOpError<Value>>
pub async fn post_lend_v1_earn_redeem( &self, request: LendEarnSharesRequestBody, ) -> Result<LendTransactionResponse, ApiOpError<Value>>
redeem
Request for a base64-encoded unsigned earn redeem transaction to redeem shares
POST /lend/v1/earn/redeem
Sourcepub async fn post_lend_v1_earn_redeem_instructions(
&self,
request: LendEarnSharesRequestBody,
) -> Result<LendInstructionResponse, ApiOpError<Value>>
pub async fn post_lend_v1_earn_redeem_instructions( &self, request: LendEarnSharesRequestBody, ) -> Result<LendInstructionResponse, ApiOpError<Value>>
redeem-instructions
Request for the instruction of an earn redeem transaction to redeem shares
POST /lend/v1/earn/redeem-instructions
Sourcepub async fn post_lend_v1_earn_withdraw(
&self,
request: LendEarnAmountRequestBody,
) -> Result<LendTransactionResponse, ApiOpError<Value>>
pub async fn post_lend_v1_earn_withdraw( &self, request: LendEarnAmountRequestBody, ) -> Result<LendTransactionResponse, ApiOpError<Value>>
withdraw
Request for a base64-encoded unsigned earn withdraw transaction to withdraw assets
POST /lend/v1/earn/withdraw
Sourcepub async fn post_lend_v1_earn_withdraw_instructions(
&self,
request: LendEarnAmountRequestBody,
) -> Result<LendInstructionResponse, ApiOpError<Value>>
pub async fn post_lend_v1_earn_withdraw_instructions( &self, request: LendEarnAmountRequestBody, ) -> Result<LendInstructionResponse, ApiOpError<Value>>
withdraw-instructions
Request for the instruction of an earn withdraw transaction to withdraw assets
POST /lend/v1/earn/withdraw-instructions
Sourcepub async fn post_prediction_v1_execute(
&self,
request: PredictionExecuteRequest,
) -> Result<PredictionExecuteResponse, ApiOpError<PostPredictionV1ExecuteApiError>>
pub async fn post_prediction_v1_execute( &self, request: PredictionExecuteRequest, ) -> Result<PredictionExecuteResponse, ApiOpError<PostPredictionV1ExecuteApiError>>
Execute a signed order transaction
Submit a signed order transaction for execution. Pass the base64 signedTransaction together with the execution.context object returned by the order build (POST /orders, or DELETE /positions/{positionPubkey} for a sell), unchanged. Jupiter Forecast (bisonfi) orders execute as an atomic swap through this endpoint and the transaction signature is returned on success.
POST /prediction/v1/execute
Sourcepub async fn post_prediction_v1_orders(
&self,
request: PredictionCreateOrderRequest,
) -> Result<PredictionCreateOrderResponse, ApiOpError<PostPredictionV1OrdersApiError>>
pub async fn post_prediction_v1_orders( &self, request: PredictionCreateOrderRequest, ) -> Result<PredictionCreateOrderResponse, ApiOpError<PostPredictionV1OrdersApiError>>
POST /prediction/v1/orders
Sourcepub async fn post_prediction_v1_positions_position_pubkey_claim(
&self,
position_pubkey: impl AsRef<str>,
request: PredictionClaimPositionRequest,
) -> Result<PredictionClaimPositionResponse, ApiOpError<PostPredictionV1PositionsPositionPubkeyClaimApiError>>
pub async fn post_prediction_v1_positions_position_pubkey_claim( &self, position_pubkey: impl AsRef<str>, request: PredictionClaimPositionRequest, ) -> Result<PredictionClaimPositionResponse, ApiOpError<PostPredictionV1PositionsPositionPubkeyClaimApiError>>
POST /prediction/v1/positions/{positionPubkey}/claim
Sourcepub async fn post_send_v1_craft_clawback(
&self,
request: PostSendV1CraftClawbackRequest,
) -> Result<PostSendV1CraftClawbackResponse, ApiOpError<PostSendV1CraftClawbackApiError>>
pub async fn post_send_v1_craft_clawback( &self, request: PostSendV1CraftClawbackRequest, ) -> Result<PostSendV1CraftClawbackResponse, ApiOpError<PostSendV1CraftClawbackApiError>>
craft-clawback
Request for a base64-encoded unsigned Send transaction
POST /send/v1/craft-clawback
Sourcepub async fn post_send_v1_craft_send(
&self,
request: PostSendV1CraftSendRequest,
) -> Result<PostSendV1CraftSendResponse, ApiOpError<PostSendV1CraftSendApiError>>
pub async fn post_send_v1_craft_send( &self, request: PostSendV1CraftSendRequest, ) -> Result<PostSendV1CraftSendResponse, ApiOpError<PostSendV1CraftSendApiError>>
craft-send
Request for a base64-encoded unsigned Send transaction
POST /send/v1/craft-send
Sourcepub async fn post_studio_v1_dbc_fee(
&self,
request: Option<PostStudioV1DbcFeeRequest>,
) -> Result<PostStudioV1DbcFeeResponse, ApiOpError<PostStudioV1DbcFeeApiError>>
pub async fn post_studio_v1_dbc_fee( &self, request: Option<PostStudioV1DbcFeeRequest>, ) -> Result<PostStudioV1DbcFeeResponse, ApiOpError<PostStudioV1DbcFeeApiError>>
dbc-fee
Request for unclaimed creator trading fees of a Dynamic Bonding Curve pool
POST /studio/v1/dbc/fee
Sourcepub async fn post_studio_v1_dbc_fee_create_tx(
&self,
request: Option<StudioCreateClaimFeeDBCTransactionRequestBody>,
) -> Result<PostStudioV1DbcFeeCreateTxResponse, ApiOpError<PostStudioV1DbcFeeCreateTxApiError>>
pub async fn post_studio_v1_dbc_fee_create_tx( &self, request: Option<StudioCreateClaimFeeDBCTransactionRequestBody>, ) -> Result<PostStudioV1DbcFeeCreateTxResponse, ApiOpError<PostStudioV1DbcFeeCreateTxApiError>>
dbc-fee-create-tx
Request for a base64-encoded unsigned transaction to claim creator trading fees of a Dynamic Bonding Curve pool
- Handles both direct creator ownership and proxy-based ownership.
POST /studio/v1/dbc/fee/create-tx
Sourcepub async fn post_studio_v1_dbc_pool_create_tx(
&self,
request: Option<StudioCreateDBCTransactionRequestBody>,
) -> Result<StudioCreateDBCTransactionResponse, ApiOpError<PostStudioV1DbcPoolCreateTxApiError>>
pub async fn post_studio_v1_dbc_pool_create_tx( &self, request: Option<StudioCreateDBCTransactionRequestBody>, ) -> Result<StudioCreateDBCTransactionResponse, ApiOpError<PostStudioV1DbcPoolCreateTxApiError>>
dbc-pool-create-tx
Request for a base64-encoded unsigned transaction to create a Dynamic Bonding Curve pool with token metadata
POST /studio/v1/dbc-pool/create-tx
Sourcepub async fn post_studio_v1_dbc_pool_submit(
&self,
request: Option<StudioSubmitDBCTransactionRequestBody>,
) -> Result<PostStudioV1DbcPoolSubmitResponse, ApiOpError<PostStudioV1DbcPoolSubmitApiError>>
pub async fn post_studio_v1_dbc_pool_submit( &self, request: Option<StudioSubmitDBCTransactionRequestBody>, ) -> Result<PostStudioV1DbcPoolSubmitResponse, ApiOpError<PostStudioV1DbcPoolSubmitApiError>>
dbc-pool-submit
Execute the signed transaction, and optionally upload content and header image
POST /studio/v1/dbc-pool/submit
Sourcepub async fn post_tokens_v2_verify_express_execute(
&self,
request: TokensV2VerificationExpressExecuteBody,
) -> Result<TokensV2VerificationExpressExecuteResponse, ApiOpError<PostTokensV2VerifyExpressExecuteApiError>>
pub async fn post_tokens_v2_verify_express_execute( &self, request: TokensV2VerificationExpressExecuteBody, ) -> Result<TokensV2VerificationExpressExecuteResponse, ApiOpError<PostTokensV2VerifyExpressExecuteApiError>>
Execute express verification
Submits the signed payment transaction, records the payment, creates a verification request, and optionally submits token metadata updates. Verification and metadata updates are reviewed independently.
POST /tokens/v2/verify/express/execute
Sourcepub async fn post_trigger_v1_cancel_order(
&self,
request: Option<PostTriggerV1CancelOrderRequest>,
) -> Result<PostTriggerV1CancelOrderResponse, ApiOpError<PostTriggerV1CancelOrderApiError>>
pub async fn post_trigger_v1_cancel_order( &self, request: Option<PostTriggerV1CancelOrderRequest>, ) -> Result<PostTriggerV1CancelOrderResponse, ApiOpError<PostTriggerV1CancelOrderApiError>>
cancelOrder
Request for a base64-encoded unsigned trigger order cancellation transaction to be used in POST /trigger/v1/execute
POST /trigger/v1/cancelOrder
Sourcepub async fn post_trigger_v1_cancel_orders(
&self,
request: Option<PostTriggerV1CancelOrdersRequest>,
) -> Result<PostTriggerV1CancelOrdersResponse, ApiOpError<PostTriggerV1CancelOrdersApiError>>
pub async fn post_trigger_v1_cancel_orders( &self, request: Option<PostTriggerV1CancelOrdersRequest>, ) -> Result<PostTriggerV1CancelOrdersResponse, ApiOpError<PostTriggerV1CancelOrdersApiError>>
cancelOrders
Request for a base64-encoded unsigned trigger order cancellation transaction(s) to be used in POST /trigger/v1/execute
POST /trigger/v1/cancelOrders
Sourcepub async fn post_trigger_v1_create_order(
&self,
request: Option<PostTriggerV1CreateOrderRequest>,
) -> Result<PostTriggerV1CreateOrderResponse, ApiOpError<PostTriggerV1CreateOrderApiError>>
pub async fn post_trigger_v1_create_order( &self, request: Option<PostTriggerV1CreateOrderRequest>, ) -> Result<PostTriggerV1CreateOrderResponse, ApiOpError<PostTriggerV1CreateOrderApiError>>
createOrder
Request for a base64-encoded unsigned trigger order creation transaction to be used in POST /trigger/v1/execute
POST /trigger/v1/createOrder
Sourcepub async fn post_trigger_v1_execute(
&self,
request: PostTriggerV1ExecuteRequest,
) -> Result<PostTriggerV1ExecuteResponse, ApiOpError<PostTriggerV1ExecuteApiError>>
pub async fn post_trigger_v1_execute( &self, request: PostTriggerV1ExecuteRequest, ) -> Result<PostTriggerV1ExecuteResponse, ApiOpError<PostTriggerV1ExecuteApiError>>
execute
Execute the signed transaction and get the execution status
POST /trigger/v1/execute
Sourcepub async fn post_trigger_v2_auth_challenge(
&self,
request: PostTriggerV2AuthChallengeRequest,
) -> Result<PostTriggerV2AuthChallengeResponse, ApiOpError<PostTriggerV2AuthChallengeApiError>>
pub async fn post_trigger_v2_auth_challenge( &self, request: PostTriggerV2AuthChallengeRequest, ) -> Result<PostTriggerV2AuthChallengeResponse, ApiOpError<PostTriggerV2AuthChallengeApiError>>
Request authentication challenge
Request a challenge to sign with your wallet. Use message for standard wallets
or transaction for hardware wallets that only support transaction signing.
Challenges expire after 5 minutes.
POST /trigger/v2/auth/challenge
Sourcepub async fn post_trigger_v2_auth_verify(
&self,
request: PostTriggerV2AuthVerifyRequest,
) -> Result<PostTriggerV2AuthVerifyResponse, ApiOpError<PostTriggerV2AuthVerifyApiError>>
pub async fn post_trigger_v2_auth_verify( &self, request: PostTriggerV2AuthVerifyRequest, ) -> Result<PostTriggerV2AuthVerifyResponse, ApiOpError<PostTriggerV2AuthVerifyApiError>>
Verify signed challenge and receive JWT
Submit the signed challenge to receive a JWT token valid for 24 hours.
Include the JWT in all subsequent authenticated requests via the Authorization: Bearer header.
POST /trigger/v2/auth/verify
Sourcepub async fn post_trigger_v2_deposit_craft(
&self,
request: PostTriggerV2DepositCraftRequest,
) -> Result<PostTriggerV2DepositCraftResponse, ApiOpError<PostTriggerV2DepositCraftApiError>>
pub async fn post_trigger_v2_deposit_craft( &self, request: PostTriggerV2DepositCraftRequest, ) -> Result<PostTriggerV2DepositCraftResponse, ApiOpError<PostTriggerV2DepositCraftApiError>>
Craft deposit transaction
Build an unsigned transaction to deposit tokens from your wallet into your vault. The vault address is automatically resolved from your JWT token.
POST /trigger/v2/deposit/craft
Sourcepub async fn post_trigger_v2_orders_dca(
&self,
request: PostTriggerV2OrdersDcaRequest,
) -> Result<TriggerV2TxSignatureResponse, ApiOpError<PostTriggerV2OrdersDcaApiError>>
pub async fn post_trigger_v2_orders_dca( &self, request: PostTriggerV2OrdersDcaRequest, ) -> Result<TriggerV2TxSignatureResponse, ApiOpError<PostTriggerV2OrdersDcaApiError>>
Create DCA order
Create a dollar-cost averaging order that splits a single deposit into orderCount
equal rounds executed every intervalSeconds. Submit the signed deposit transaction
from /deposit/craft (crafted with orderType: "dca").
Call this path with no trailing slash. POST /orders/dca/ returns 404.
Rounds execute as Jupiter swaps with Ultra-managed (RTSE) slippage; there is no slippage parameter. Each round pays the standard Jupiter swap fee (no separate DCA fee), and the output settles directly to the taker’s wallet.
POST /trigger/v2/orders/dca
Sourcepub async fn post_trigger_v2_orders_dca_cancel_id(
&self,
id: impl AsRef<str>,
) -> Result<PostTriggerV2OrdersDcaCancelIdResponse, ApiOpError<Value>>
pub async fn post_trigger_v2_orders_dca_cancel_id( &self, id: impl AsRef<str>, ) -> Result<PostTriggerV2OrdersDcaCancelIdResponse, ApiOpError<Value>>
Initiate DCA cancellation
Step 1 of the two-step cancellation. Moves the order to withdrawing and returns an
unsigned withdrawal transaction for the unfilled remainder. Already-filled rounds are
not reversed.
POST /trigger/v2/orders/dca/cancel/{id}
Sourcepub async fn post_trigger_v2_orders_dca_confirm_cancel_id(
&self,
id: impl AsRef<str>,
request: PostTriggerV2OrdersDcaConfirmCancelIdRequest,
) -> Result<TriggerV2TxSignatureResponse, ApiOpError<Value>>
pub async fn post_trigger_v2_orders_dca_confirm_cancel_id( &self, id: impl AsRef<str>, request: PostTriggerV2OrdersDcaConfirmCancelIdRequest, ) -> Result<TriggerV2TxSignatureResponse, ApiOpError<Value>>
Confirm DCA cancellation
Step 2 of the two-step cancellation. Submit the signed withdrawal transaction to return
the remaining funds and move the order to cancelled.
POST /trigger/v2/orders/dca/confirm-cancel/{id}
Sourcepub async fn post_trigger_v2_orders_price(
&self,
request: PostTriggerV2OrdersPriceRequest,
) -> Result<TriggerV2OrderResponse, ApiOpError<PostTriggerV2OrdersPriceApiError>>
pub async fn post_trigger_v2_orders_price( &self, request: PostTriggerV2OrdersPriceRequest, ) -> Result<TriggerV2OrderResponse, ApiOpError<PostTriggerV2OrdersPriceApiError>>
Create price order
Create a new price order. Supports three order types:
single: triggers when price crosses above/below thresholdoco: one-cancels-other (take-profit + stop-loss pair)otoco: parent trigger activates a TP/SL pair on fill
POST /trigger/v2/orders/price
Sourcepub async fn post_trigger_v2_orders_price_cancel_order_id(
&self,
order_id: impl AsRef<str>,
) -> Result<PostTriggerV2OrdersPriceCancelOrderIdResponse, ApiOpError<Value>>
pub async fn post_trigger_v2_orders_price_cancel_order_id( &self, order_id: impl AsRef<str>, ) -> Result<PostTriggerV2OrdersPriceCancelOrderIdResponse, ApiOpError<Value>>
Initiate order cancellation
Step 1 of the two-step cancellation flow. Returns a withdrawal transaction that must be signed and submitted via the confirm-cancel endpoint.
POST /trigger/v2/orders/price/cancel/{orderId}
Sourcepub async fn post_trigger_v2_orders_price_confirm_cancel_order_id(
&self,
order_id: impl AsRef<str>,
request: PostTriggerV2OrdersPriceConfirmCancelOrderIdRequest,
) -> Result<TriggerV2TxSignatureResponse, ApiOpError<Value>>
pub async fn post_trigger_v2_orders_price_confirm_cancel_order_id( &self, order_id: impl AsRef<str>, request: PostTriggerV2OrdersPriceConfirmCancelOrderIdRequest, ) -> Result<TriggerV2TxSignatureResponse, ApiOpError<Value>>
Confirm order cancellation
Step 2 of the two-step cancellation flow. Submit the signed withdrawal transaction to complete the cancellation and return funds to your wallet.
POST /trigger/v2/orders/price/confirm-cancel/{orderId}
Sourcepub async fn post_ultra_v1_execute(
&self,
request: Option<PostUltraV1ExecuteRequest>,
) -> Result<PostUltraV1ExecuteResponse, ApiOpError<PostUltraV1ExecuteApiError>>
pub async fn post_ultra_v1_execute( &self, request: Option<PostUltraV1ExecuteRequest>, ) -> Result<PostUltraV1ExecuteResponse, ApiOpError<PostUltraV1ExecuteApiError>>
execute
Execute the signed transaction and get the execution status
POST /ultra/v1/execute
Sourcepub async fn price_deposit(
&self,
request: RecurringDepositPriceRecurring,
) -> Result<RecurringRecurringResponse, ApiOpError<Value>>
pub async fn price_deposit( &self, request: RecurringDepositPriceRecurring, ) -> Result<RecurringRecurringResponse, ApiOpError<Value>>
priceDeposit
Request for a base64-encoded unsigned price-based recurring order deposit transaction to be used in POST /recurring/v1/execute. Price-based recurring orders are deprecated, please use time-based recurring orders instead.
POST /recurring/v1/priceDeposit
Sourcepub async fn price_withdraw(
&self,
request: RecurringWithdrawPriceRecurring,
) -> Result<RecurringRecurringResponse, ApiOpError<Value>>
pub async fn price_withdraw( &self, request: RecurringWithdrawPriceRecurring, ) -> Result<RecurringRecurringResponse, ApiOpError<Value>>
priceWithdraw
Request for a base64-encoded unsigned price-based recurring order withdrawal transaction to be used in POST /recurring/v1/execute. Price-based recurring orders are deprecated, please use time-based recurring orders instead.
POST /recurring/v1/priceWithdraw
Sourcepub fn get_build_builder(
&self,
input_mint: impl Into<String>,
output_mint: impl Into<String>,
amount: impl Into<String>,
taker: impl Into<String>,
) -> GetBuildBuilder<'_>
pub fn get_build_builder( &self, input_mint: impl Into<String>, output_mint: impl Into<String>, amount: impl Into<String>, taker: impl Into<String>, ) -> GetBuildBuilder<'_>
Start an additive builder for GetBuild.
Sourcepub fn get_order_builder(
&self,
input_mint: impl Into<String>,
output_mint: impl Into<String>,
amount: impl Into<String>,
) -> GetOrderBuilder<'_>
pub fn get_order_builder( &self, input_mint: impl Into<String>, output_mint: impl Into<String>, amount: impl Into<String>, ) -> GetOrderBuilder<'_>
Start an additive builder for GetOrder.
Sourcepub fn post_execute_builder(
&self,
request_id: String,
signed_transaction: String,
) -> PostExecuteBuilder<'_>
pub fn post_execute_builder( &self, request_id: String, signed_transaction: String, ) -> PostExecuteBuilder<'_>
Start an additive builder for PostExecute.
Sourcepub fn quote_get_builder(
&self,
input_mint: impl Into<String>,
output_mint: impl Into<String>,
amount: u64,
) -> QuoteGetBuilder<'_>
pub fn quote_get_builder( &self, input_mint: impl Into<String>, output_mint: impl Into<String>, amount: u64, ) -> QuoteGetBuilder<'_>
Start an additive builder for QuoteGet.
Sourcepub fn swap_instructions_post_builder(
&self,
quote_response: SwapV1QuoteResponse,
user_public_key: String,
) -> SwapInstructionsPostBuilder<'_>
pub fn swap_instructions_post_builder( &self, quote_response: SwapV1QuoteResponse, user_public_key: String, ) -> SwapInstructionsPostBuilder<'_>
Start an additive builder for SwapInstructionsPost.
Sourcepub fn swap_post_builder(
&self,
quote_response: SwapV1QuoteResponse,
user_public_key: String,
) -> SwapPostBuilder<'_>
pub fn swap_post_builder( &self, quote_response: SwapV1QuoteResponse, user_public_key: String, ) -> SwapPostBuilder<'_>
Start an additive builder for SwapPost.
Sourcepub fn build_borrow_operate_instructions_builder(
&self,
col_amount: String,
debt_amount: String,
position_id: i64,
signer: String,
vault_id: i64,
) -> BuildBorrowOperateInstructionsBuilder<'_>
pub fn build_borrow_operate_instructions_builder( &self, col_amount: String, debt_amount: String, position_id: i64, signer: String, vault_id: i64, ) -> BuildBorrowOperateInstructionsBuilder<'_>
Start an additive builder for buildBorrowOperateInstructions.
Sourcepub fn build_borrow_operate_transaction_builder(
&self,
col_amount: String,
debt_amount: String,
position_id: i64,
signer: String,
vault_id: i64,
) -> BuildBorrowOperateTransactionBuilder<'_>
pub fn build_borrow_operate_transaction_builder( &self, col_amount: String, debt_amount: String, position_id: i64, signer: String, vault_id: i64, ) -> BuildBorrowOperateTransactionBuilder<'_>
Start an additive builder for buildBorrowOperateTransaction.
Sourcepub fn delete_prediction_v1_positions_builder(
&self,
min_sell_price_slippage_bps: f64,
) -> DeletePredictionV1PositionsBuilder<'_>
pub fn delete_prediction_v1_positions_builder( &self, min_sell_price_slippage_bps: f64, ) -> DeletePredictionV1PositionsBuilder<'_>
Start an additive builder for deletePredictionV1Positions.
Sourcepub fn delete_prediction_v1_positions_position_pubkey_builder(
&self,
position_pubkey: impl Into<String>,
) -> DeletePredictionV1PositionsPositionPubkeyBuilder<'_>
pub fn delete_prediction_v1_positions_position_pubkey_builder( &self, position_pubkey: impl Into<String>, ) -> DeletePredictionV1PositionsPositionPubkeyBuilder<'_>
Start an additive builder for deletePredictionV1PositionsPositionPubkey.
Sourcepub fn get_portfolio_v1_positions_address_builder(
&self,
address: impl Into<String>,
) -> GetPortfolioV1PositionsAddressBuilder<'_>
pub fn get_portfolio_v1_positions_address_builder( &self, address: impl Into<String>, ) -> GetPortfolioV1PositionsAddressBuilder<'_>
Start an additive builder for getPortfolioV1PositionsAddress.
Sourcepub fn get_prediction_v1_events_builder(
&self,
) -> GetPredictionV1EventsBuilder<'_>
pub fn get_prediction_v1_events_builder( &self, ) -> GetPredictionV1EventsBuilder<'_>
Start an additive builder for getPredictionV1Events.
Sourcepub fn get_prediction_v1_events_event_id_builder(
&self,
event_id: impl Into<String>,
) -> GetPredictionV1EventsEventIdBuilder<'_>
pub fn get_prediction_v1_events_event_id_builder( &self, event_id: impl Into<String>, ) -> GetPredictionV1EventsEventIdBuilder<'_>
Start an additive builder for getPredictionV1EventsEventId.
Sourcepub fn get_prediction_v1_events_event_id_markets_builder(
&self,
event_id: impl Into<String>,
) -> GetPredictionV1EventsEventIdMarketsBuilder<'_>
pub fn get_prediction_v1_events_event_id_markets_builder( &self, event_id: impl Into<String>, ) -> GetPredictionV1EventsEventIdMarketsBuilder<'_>
Start an additive builder for getPredictionV1EventsEventIdMarkets.
Sourcepub fn get_prediction_v1_events_search_builder(
&self,
query: impl Into<String>,
) -> GetPredictionV1EventsSearchBuilder<'_>
pub fn get_prediction_v1_events_search_builder( &self, query: impl Into<String>, ) -> GetPredictionV1EventsSearchBuilder<'_>
Start an additive builder for getPredictionV1EventsSearch.
Sourcepub fn get_prediction_v1_events_suggested_pubkey_builder(
&self,
pubkey: impl Into<String>,
) -> GetPredictionV1EventsSuggestedPubkeyBuilder<'_>
pub fn get_prediction_v1_events_suggested_pubkey_builder( &self, pubkey: impl Into<String>, ) -> GetPredictionV1EventsSuggestedPubkeyBuilder<'_>
Start an additive builder for getPredictionV1EventsSuggestedPubkey.
Sourcepub fn get_prediction_v1_history_builder(
&self,
) -> GetPredictionV1HistoryBuilder<'_>
pub fn get_prediction_v1_history_builder( &self, ) -> GetPredictionV1HistoryBuilder<'_>
Start an additive builder for getPredictionV1History.
Sourcepub fn get_prediction_v1_leaderboards_builder(
&self,
) -> GetPredictionV1LeaderboardsBuilder<'_>
pub fn get_prediction_v1_leaderboards_builder( &self, ) -> GetPredictionV1LeaderboardsBuilder<'_>
Start an additive builder for getPredictionV1Leaderboards.
Sourcepub fn get_prediction_v1_orders_builder(
&self,
) -> GetPredictionV1OrdersBuilder<'_>
pub fn get_prediction_v1_orders_builder( &self, ) -> GetPredictionV1OrdersBuilder<'_>
Start an additive builder for getPredictionV1Orders.
Sourcepub fn get_prediction_v1_positions_builder(
&self,
) -> GetPredictionV1PositionsBuilder<'_>
pub fn get_prediction_v1_positions_builder( &self, ) -> GetPredictionV1PositionsBuilder<'_>
Start an additive builder for getPredictionV1Positions.
Sourcepub fn get_prediction_v1_profiles_owner_pubkey_pnl_history_builder(
&self,
owner_pubkey: impl Into<String>,
) -> GetPredictionV1ProfilesOwnerPubkeyPnlHistoryBuilder<'_>
pub fn get_prediction_v1_profiles_owner_pubkey_pnl_history_builder( &self, owner_pubkey: impl Into<String>, ) -> GetPredictionV1ProfilesOwnerPubkeyPnlHistoryBuilder<'_>
Start an additive builder for getPredictionV1ProfilesOwnerPubkeyPnlHistory.
Sourcepub fn get_price_v2_builder(
&self,
ids: impl Into<String>,
) -> GetPriceV2Builder<'_>
pub fn get_price_v2_builder( &self, ids: impl Into<String>, ) -> GetPriceV2Builder<'_>
Start an additive builder for getPriceV2.
Sourcepub fn get_send_v1_invite_history_builder(
&self,
address: impl Into<String>,
) -> GetSendV1InviteHistoryBuilder<'_>
pub fn get_send_v1_invite_history_builder( &self, address: impl Into<String>, ) -> GetSendV1InviteHistoryBuilder<'_>
Start an additive builder for getSendV1InviteHistory.
Sourcepub fn get_send_v1_pending_invites_builder(
&self,
address: impl Into<String>,
) -> GetSendV1PendingInvitesBuilder<'_>
pub fn get_send_v1_pending_invites_builder( &self, address: impl Into<String>, ) -> GetSendV1PendingInvitesBuilder<'_>
Start an additive builder for getSendV1PendingInvites.
Sourcepub fn get_tokens_v1_new_builder(&self) -> GetTokensV1NewBuilder<'_>
pub fn get_tokens_v1_new_builder(&self) -> GetTokensV1NewBuilder<'_>
Start an additive builder for getTokensV1New.
Sourcepub fn get_tokens_v2_category_interval_builder(
&self,
category: GetTokensV2CategoryIntervalCategory,
interval: GetTokensV2CategoryIntervalInterval,
) -> GetTokensV2CategoryIntervalBuilder<'_>
pub fn get_tokens_v2_category_interval_builder( &self, category: GetTokensV2CategoryIntervalCategory, interval: GetTokensV2CategoryIntervalInterval, ) -> GetTokensV2CategoryIntervalBuilder<'_>
Start an additive builder for getTokensV2CategoryInterval.
Sourcepub fn get_tokens_v2_verify_express_craft_txn_builder(
&self,
sender_address: impl Into<String>,
) -> GetTokensV2VerifyExpressCraftTxnBuilder<'_>
pub fn get_tokens_v2_verify_express_craft_txn_builder( &self, sender_address: impl Into<String>, ) -> GetTokensV2VerifyExpressCraftTxnBuilder<'_>
Start an additive builder for getTokensV2VerifyExpressCraftTxn.
Sourcepub fn get_trigger_v1_get_trigger_orders_builder(
&self,
user: impl Into<String>,
order_status: GetTriggerV1GetTriggerOrdersOrderStatus,
) -> GetTriggerV1GetTriggerOrdersBuilder<'_>
pub fn get_trigger_v1_get_trigger_orders_builder( &self, user: impl Into<String>, order_status: GetTriggerV1GetTriggerOrdersOrderStatus, ) -> GetTriggerV1GetTriggerOrdersBuilder<'_>
Start an additive builder for getTriggerV1GetTriggerOrders.
Sourcepub fn get_trigger_v2_orders_history_builder(
&self,
) -> GetTriggerV2OrdersHistoryBuilder<'_>
pub fn get_trigger_v2_orders_history_builder( &self, ) -> GetTriggerV2OrdersHistoryBuilder<'_>
Start an additive builder for getTriggerV2OrdersHistory.
Sourcepub fn get_trigger_v2_orders_history_dca_builder(
&self,
) -> GetTriggerV2OrdersHistoryDcaBuilder<'_>
pub fn get_trigger_v2_orders_history_dca_builder( &self, ) -> GetTriggerV2OrdersHistoryDcaBuilder<'_>
Start an additive builder for getTriggerV2OrdersHistoryDca.
Sourcepub fn get_ultra_v1_order_builder(
&self,
input_mint: impl Into<String>,
output_mint: impl Into<String>,
amount: impl Into<String>,
) -> GetUltraV1OrderBuilder<'_>
pub fn get_ultra_v1_order_builder( &self, input_mint: impl Into<String>, output_mint: impl Into<String>, amount: impl Into<String>, ) -> GetUltraV1OrderBuilder<'_>
Start an additive builder for getUltraV1Order.
Sourcepub fn list_borrow_positions_builder(
&self,
users: impl Into<String>,
) -> ListBorrowPositionsBuilder<'_>
pub fn list_borrow_positions_builder( &self, users: impl Into<String>, ) -> ListBorrowPositionsBuilder<'_>
Start an additive builder for listBorrowPositions.
Sourcepub fn list_borrow_vaults_builder(&self) -> ListBorrowVaultsBuilder<'_>
pub fn list_borrow_vaults_builder(&self) -> ListBorrowVaultsBuilder<'_>
Start an additive builder for listBorrowVaults.
Sourcepub fn patch_trigger_v2_orders_price_order_id_builder(
&self,
order_id: impl Into<String>,
order_type: PatchTriggerV2OrdersPriceOrderIdRequestOrderType,
) -> PatchTriggerV2OrdersPriceOrderIdBuilder<'_>
pub fn patch_trigger_v2_orders_price_order_id_builder( &self, order_id: impl Into<String>, order_type: PatchTriggerV2OrdersPriceOrderIdRequestOrderType, ) -> PatchTriggerV2OrdersPriceOrderIdBuilder<'_>
Start an additive builder for patchTriggerV2OrdersPriceOrderId.
Sourcepub fn post_prediction_v1_execute_builder(
&self,
signed_transaction: String,
) -> PostPredictionV1ExecuteBuilder<'_>
pub fn post_prediction_v1_execute_builder( &self, signed_transaction: String, ) -> PostPredictionV1ExecuteBuilder<'_>
Start an additive builder for postPredictionV1Execute.
Sourcepub fn post_prediction_v1_orders_builder(
&self,
is_buy: bool,
) -> PostPredictionV1OrdersBuilder<'_>
pub fn post_prediction_v1_orders_builder( &self, is_buy: bool, ) -> PostPredictionV1OrdersBuilder<'_>
Start an additive builder for postPredictionV1Orders.
Sourcepub fn post_prediction_v1_positions_position_pubkey_claim_builder(
&self,
position_pubkey: impl Into<String>,
) -> PostPredictionV1PositionsPositionPubkeyClaimBuilder<'_>
pub fn post_prediction_v1_positions_position_pubkey_claim_builder( &self, position_pubkey: impl Into<String>, ) -> PostPredictionV1PositionsPositionPubkeyClaimBuilder<'_>
Start an additive builder for postPredictionV1PositionsPositionPubkeyClaim.
Sourcepub fn post_send_v1_craft_send_builder(
&self,
amount: String,
invite_signer: String,
sender: String,
) -> PostSendV1CraftSendBuilder<'_>
pub fn post_send_v1_craft_send_builder( &self, amount: String, invite_signer: String, sender: String, ) -> PostSendV1CraftSendBuilder<'_>
Start an additive builder for postSendV1CraftSend.
Sourcepub fn post_studio_v1_dbc_fee_builder(&self) -> PostStudioV1DbcFeeBuilder<'_>
pub fn post_studio_v1_dbc_fee_builder(&self) -> PostStudioV1DbcFeeBuilder<'_>
Start an additive builder for postStudioV1DbcFee.
Sourcepub fn post_studio_v1_dbc_fee_create_tx_builder(
&self,
) -> PostStudioV1DbcFeeCreateTxBuilder<'_>
pub fn post_studio_v1_dbc_fee_create_tx_builder( &self, ) -> PostStudioV1DbcFeeCreateTxBuilder<'_>
Start an additive builder for postStudioV1DbcFeeCreateTx.
Sourcepub fn post_studio_v1_dbc_pool_create_tx_builder(
&self,
) -> PostStudioV1DbcPoolCreateTxBuilder<'_>
pub fn post_studio_v1_dbc_pool_create_tx_builder( &self, ) -> PostStudioV1DbcPoolCreateTxBuilder<'_>
Start an additive builder for postStudioV1DbcPoolCreateTx.
Sourcepub fn post_studio_v1_dbc_pool_submit_builder(
&self,
) -> PostStudioV1DbcPoolSubmitBuilder<'_>
pub fn post_studio_v1_dbc_pool_submit_builder( &self, ) -> PostStudioV1DbcPoolSubmitBuilder<'_>
Start an additive builder for postStudioV1DbcPoolSubmit.
Sourcepub fn post_tokens_v2_verify_express_execute_builder(
&self,
description: String,
request_id: String,
sender_address: String,
token_id: String,
transaction: String,
twitter_handle: String,
) -> PostTokensV2VerifyExpressExecuteBuilder<'_>
pub fn post_tokens_v2_verify_express_execute_builder( &self, description: String, request_id: String, sender_address: String, token_id: String, transaction: String, twitter_handle: String, ) -> PostTokensV2VerifyExpressExecuteBuilder<'_>
Start an additive builder for postTokensV2VerifyExpressExecute.
Sourcepub fn post_trigger_v1_cancel_order_builder(
&self,
) -> PostTriggerV1CancelOrderBuilder<'_>
pub fn post_trigger_v1_cancel_order_builder( &self, ) -> PostTriggerV1CancelOrderBuilder<'_>
Start an additive builder for postTriggerV1CancelOrder.
Sourcepub fn post_trigger_v1_cancel_orders_builder(
&self,
) -> PostTriggerV1CancelOrdersBuilder<'_>
pub fn post_trigger_v1_cancel_orders_builder( &self, ) -> PostTriggerV1CancelOrdersBuilder<'_>
Start an additive builder for postTriggerV1CancelOrders.
Sourcepub fn post_trigger_v1_create_order_builder(
&self,
) -> PostTriggerV1CreateOrderBuilder<'_>
pub fn post_trigger_v1_create_order_builder( &self, ) -> PostTriggerV1CreateOrderBuilder<'_>
Start an additive builder for postTriggerV1CreateOrder.
Sourcepub fn post_trigger_v2_deposit_craft_builder(
&self,
amount: String,
input_mint: String,
order_type: PostTriggerV2DepositCraftRequestOrderType,
output_mint: String,
user_address: String,
) -> PostTriggerV2DepositCraftBuilder<'_>
pub fn post_trigger_v2_deposit_craft_builder( &self, amount: String, input_mint: String, order_type: PostTriggerV2DepositCraftRequestOrderType, output_mint: String, user_address: String, ) -> PostTriggerV2DepositCraftBuilder<'_>
Start an additive builder for postTriggerV2DepositCraft.
Sourcepub fn post_trigger_v2_orders_dca_builder(
&self,
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,
) -> PostTriggerV2OrdersDcaBuilder<'_>
pub fn post_trigger_v2_orders_dca_builder( &self, 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, ) -> PostTriggerV2OrdersDcaBuilder<'_>
Start an additive builder for postTriggerV2OrdersDca.
Sourcepub fn post_trigger_v2_orders_price_builder(
&self,
deposit_request_id: String,
deposit_signed_tx: String,
expires_at: f64,
input_amount: String,
input_mint: String,
order_type: PostTriggerV2OrdersPriceRequestOrderType,
output_mint: String,
trigger_mint: String,
user_pubkey: String,
) -> PostTriggerV2OrdersPriceBuilder<'_>
pub fn post_trigger_v2_orders_price_builder( &self, deposit_request_id: String, deposit_signed_tx: String, expires_at: f64, input_amount: String, input_mint: String, order_type: PostTriggerV2OrdersPriceRequestOrderType, output_mint: String, trigger_mint: String, user_pubkey: String, ) -> PostTriggerV2OrdersPriceBuilder<'_>
Start an additive builder for postTriggerV2OrdersPrice.
Sourcepub fn post_ultra_v1_execute_builder(&self) -> PostUltraV1ExecuteBuilder<'_>
pub fn post_ultra_v1_execute_builder(&self) -> PostUltraV1ExecuteBuilder<'_>
Start an additive builder for postUltraV1Execute.
Sourcepub fn price_withdraw_builder(
&self,
input_or_output: RecurringWithdrawal,
order: String,
user: String,
) -> PriceWithdrawBuilder<'_>
pub fn price_withdraw_builder( &self, input_or_output: RecurringWithdrawal, order: String, user: String, ) -> PriceWithdrawBuilder<'_>
Start an additive builder for price-withdraw.
Trait Implementations§
Source§impl Clone for HttpClient
impl Clone for HttpClient
Source§fn clone(&self) -> HttpClient
fn clone(&self) -> HttpClient
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more