Client¶
cyhole.jupiter.client
¶
JupiterClient
¶
JupiterClient(
interaction: Jupiter, headers: Any | None = None
)
Bases: APIClient
flowchart TD
cyhole.jupiter.client.JupiterClient[JupiterClient]
cyhole.core.client.APIClient[APIClient]
cyhole.core.client.APIClientInterface[APIClientInterface]
cyhole.core.client.APIClient --> cyhole.jupiter.client.JupiterClient
cyhole.core.client.APIClientInterface --> cyhole.core.client.APIClient
click cyhole.jupiter.client.JupiterClient href "" "cyhole.jupiter.client.JupiterClient"
click cyhole.core.client.APIClient href "" "cyhole.core.client.APIClient"
click cyhole.core.client.APIClientInterface href "" "cyhole.core.client.APIClientInterface"
Client used for synchronous API calls for Jupiter interaction.
Source code in src/cyhole/jupiter/client.py
49 50 51 | |
get_price
¶
get_price(address: list[str]) -> GetPriceResponse
Call the Jupiter's GET Price API endpoint for synchronous logic.
All the API endpoint details are available on Jupiter._get_price.
Source code in src/cyhole/jupiter/client.py
53 54 55 56 57 58 | |
get_swap_order
¶
get_swap_order(
params: GetSwapOrderParams,
) -> GetSwapOrderResponse
Call the Jupiter's GET Swap - Order API endpoint for synchronous logic.
All the API endpoint details are available on Jupiter._get_swap_order.
Source code in src/cyhole/jupiter/client.py
60 61 62 63 64 65 | |
post_swap_execute
¶
post_swap_execute(
body: PostSwapExecuteBody,
) -> PostSwapExecuteResponse
Call the Jupiter's POST Swap - Execute API endpoint for synchronous logic.
All the API endpoint details are available on Jupiter._post_swap_execute.
Source code in src/cyhole/jupiter/client.py
67 68 69 70 71 72 | |
get_swap_build
¶
get_swap_build(
params: GetSwapBuildParams,
) -> GetSwapBuildResponse
Call the Jupiter's GET Swap - Build API endpoint for synchronous logic.
All the API endpoint details are available on Jupiter._get_swap_build.
Source code in src/cyhole/jupiter/client.py
74 75 76 77 78 79 | |
post_swap_submit
¶
post_swap_submit(
body: PostSwapSubmitBody,
) -> PostSwapSubmitResponse
Call the Jupiter's POST Swap - Submit API endpoint for synchronous logic.
All the API endpoint details are available on Jupiter._post_swap_submit.
Source code in src/cyhole/jupiter/client.py
81 82 83 84 85 86 | |
get_token_search
¶
get_token_search(
address: str | list[str],
) -> GetTokenSearchResponse
Call the Jupiter's GET Token Search API endpoint for synchronous logic.
All the API endpoint details are available on Jupiter._get_token_search.
Source code in src/cyhole/jupiter/client.py
88 89 90 91 92 93 | |
get_token_tag
¶
get_token_tag(
tag: str | JupiterTokenTagType,
) -> GetTokenTagResponse
Call the Jupiter's GET Token Tag API endpoint for synchronous logic.
All the API endpoint details are available on Jupiter._get_token_tag.
Source code in src/cyhole/jupiter/client.py
95 96 97 98 99 100 | |
get_token_category
¶
get_token_category(
category: str | JupiterTokenCategory,
interval: str | JupiterTokenInterval,
) -> GetTokenCategoryResponse
Call the Jupiter's GET Token Category API endpoint for synchronous logic.
All the API endpoint details are available on Jupiter._get_token_category.
Source code in src/cyhole/jupiter/client.py
102 103 104 105 106 107 | |
get_token_recent
¶
get_token_recent(
limit: int | None = None,
) -> GetTokenRecentResponse
Call the Jupiter's GET Token Recent API endpoint for synchronous logic.
All the API endpoint details are available on Jupiter._get_token_recent.
Source code in src/cyhole/jupiter/client.py
109 110 111 112 113 114 | |
get_token_verify_check_eligibility
¶
get_token_verify_check_eligibility(
token_id: str,
) -> GetTokenVerifyCheckEligibilityResponse
Call the Jupiter's GET Token Verify - Check Eligibility API endpoint for synchronous logic.
All the API endpoint details are available on Jupiter._get_token_verify_check_eligibility.
Source code in src/cyhole/jupiter/client.py
116 117 118 119 120 121 | |
get_token_verify_craft_txn
¶
get_token_verify_craft_txn(
sender_address: str,
) -> GetTokenVerifyCraftTxnResponse
Call the Jupiter's GET Token Verify - Craft Transaction API endpoint for synchronous logic.
All the API endpoint details are available on Jupiter._get_token_verify_craft_txn.
Source code in src/cyhole/jupiter/client.py
123 124 125 126 127 128 | |
post_token_verify_execute
¶
post_token_verify_execute(
body: PostTokenVerifyExecuteBody,
) -> PostTokenVerifyExecuteResponse
Call the Jupiter's POST Token Verify - Execute API endpoint for synchronous logic.
All the API endpoint details are available on Jupiter._post_token_verify_execute.
Source code in src/cyhole/jupiter/client.py
130 131 132 133 134 135 | |
post_recurring_create_order
¶
post_recurring_create_order(
body: PostRecurringCreateOrderBody,
) -> PostRecurringCreateOrderResponse
Call the Jupiter's POST Recurring - Create Order API endpoint for synchronous logic.
All the API endpoint details are available on Jupiter._post_recurring_create_order.
Source code in src/cyhole/jupiter/client.py
137 138 139 140 141 142 | |
get_recurring_orders
¶
get_recurring_orders(
user_public_key: str,
status: JupiterOrderStatus,
recurring_type: JupiterRecurringType,
include_failed: bool = False,
page: int = 1,
input_mint: str | None = None,
output_mint: str | None = None,
) -> GetRecurringOrdersResponse
Call the Jupiter's GET Recurring - Orders API endpoint for synchronous logic.
All the API endpoint details are available on Jupiter._get_recurring_orders.
Source code in src/cyhole/jupiter/client.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | |
post_recurring_cancel_order
¶
post_recurring_cancel_order(
order_id: str,
user_public_key: str,
recurring_type: JupiterRecurringType,
) -> PostRecurringCancelOrderResponse
Call the Jupiter's POST Recurring - Cancel Order API endpoint for synchronous logic.
All the API endpoint details are available on Jupiter._post_recurring_cancel_order.
Source code in src/cyhole/jupiter/client.py
160 161 162 163 164 165 | |
post_recurring_execute
¶
post_recurring_execute(
signed_transaction_id: str, request_id: str
) -> PostRecurringExecuteResponse
Call the Jupiter's POST Recurring - Execute API endpoint for synchronous logic.
All the API endpoint details are available on Jupiter._post_recurring_execute.
Source code in src/cyhole/jupiter/client.py
167 168 169 170 171 172 | |
JupiterAsyncClient
¶
JupiterAsyncClient(
interaction: Jupiter, headers: Any | None = None
)
Bases: AsyncAPIClient
flowchart TD
cyhole.jupiter.client.JupiterAsyncClient[JupiterAsyncClient]
cyhole.core.client.AsyncAPIClient[AsyncAPIClient]
cyhole.core.client.APIClientInterface[APIClientInterface]
cyhole.core.client.AsyncAPIClient --> cyhole.jupiter.client.JupiterAsyncClient
cyhole.core.client.APIClientInterface --> cyhole.core.client.AsyncAPIClient
click cyhole.jupiter.client.JupiterAsyncClient href "" "cyhole.jupiter.client.JupiterAsyncClient"
click cyhole.core.client.AsyncAPIClient href "" "cyhole.core.client.AsyncAPIClient"
click cyhole.core.client.APIClientInterface href "" "cyhole.core.client.APIClientInterface"
Client used for asynchronous API calls for Jupiter interaction.
Source code in src/cyhole/jupiter/client.py
179 180 181 | |
get_price
async
¶
get_price(address: list[str]) -> GetPriceResponse
Call the Jupiter's GET Price API endpoint for asynchronous logic.
All the API endpoint details are available on Jupiter._get_price.
Source code in src/cyhole/jupiter/client.py
183 184 185 186 187 188 | |
get_swap_order
async
¶
get_swap_order(
params: GetSwapOrderParams,
) -> GetSwapOrderResponse
Call the Jupiter's GET Swap - Order API endpoint for asynchronous logic.
All the API endpoint details are available on Jupiter._get_swap_order.
Source code in src/cyhole/jupiter/client.py
190 191 192 193 194 195 | |
post_swap_execute
async
¶
post_swap_execute(
body: PostSwapExecuteBody,
) -> PostSwapExecuteResponse
Call the Jupiter's POST Swap - Execute API endpoint for asynchronous logic.
All the API endpoint details are available on Jupiter._post_swap_execute.
Source code in src/cyhole/jupiter/client.py
197 198 199 200 201 202 | |
get_swap_build
async
¶
get_swap_build(
params: GetSwapBuildParams,
) -> GetSwapBuildResponse
Call the Jupiter's GET Swap - Build API endpoint for asynchronous logic.
All the API endpoint details are available on Jupiter._get_swap_build.
Source code in src/cyhole/jupiter/client.py
204 205 206 207 208 209 | |
post_swap_submit
async
¶
post_swap_submit(
body: PostSwapSubmitBody,
) -> PostSwapSubmitResponse
Call the Jupiter's POST Swap - Submit API endpoint for asynchronous logic.
All the API endpoint details are available on Jupiter._post_swap_submit.
Source code in src/cyhole/jupiter/client.py
211 212 213 214 215 216 | |
get_token_search
async
¶
get_token_search(
address: str | list[str],
) -> GetTokenSearchResponse
Call the Jupiter's GET Token Search API endpoint for asynchronous logic.
All the API endpoint details are available on Jupiter._get_token_search.
Source code in src/cyhole/jupiter/client.py
218 219 220 221 222 223 | |
get_token_tag
async
¶
get_token_tag(
tag: str | JupiterTokenTagType,
) -> GetTokenTagResponse
Call the Jupiter's GET Token Tag API endpoint for asynchronous logic.
All the API endpoint details are available on Jupiter._get_token_tag.
Source code in src/cyhole/jupiter/client.py
225 226 227 228 229 230 | |
get_token_category
async
¶
get_token_category(
category: str | JupiterTokenCategory,
interval: str | JupiterTokenInterval,
) -> GetTokenCategoryResponse
Call the Jupiter's GET Token Category API endpoint for asynchronous logic.
All the API endpoint details are available on Jupiter._get_token_category.
Source code in src/cyhole/jupiter/client.py
232 233 234 235 236 237 | |
get_token_recent
async
¶
get_token_recent(
limit: int | None = None,
) -> GetTokenRecentResponse
Call the Jupiter's GET Token Recent API endpoint for asynchronous logic.
All the API endpoint details are available on Jupiter._get_token_recent.
Source code in src/cyhole/jupiter/client.py
239 240 241 242 243 244 | |
get_token_verify_check_eligibility
async
¶
get_token_verify_check_eligibility(
token_id: str,
) -> GetTokenVerifyCheckEligibilityResponse
Call the Jupiter's GET Token Verify - Check Eligibility API endpoint for asynchronous logic.
All the API endpoint details are available on Jupiter._get_token_verify_check_eligibility.
Source code in src/cyhole/jupiter/client.py
246 247 248 249 250 251 | |
get_token_verify_craft_txn
async
¶
get_token_verify_craft_txn(
sender_address: str,
) -> GetTokenVerifyCraftTxnResponse
Call the Jupiter's GET Token Verify - Craft Transaction API endpoint for asynchronous logic.
All the API endpoint details are available on Jupiter._get_token_verify_craft_txn.
Source code in src/cyhole/jupiter/client.py
253 254 255 256 257 258 | |
post_token_verify_execute
async
¶
post_token_verify_execute(
body: PostTokenVerifyExecuteBody,
) -> PostTokenVerifyExecuteResponse
Call the Jupiter's POST Token Verify - Execute API endpoint for asynchronous logic.
All the API endpoint details are available on Jupiter._post_token_verify_execute.
Source code in src/cyhole/jupiter/client.py
260 261 262 263 264 265 | |
post_recurring_create_order
async
¶
post_recurring_create_order(
body: PostRecurringCreateOrderBody,
) -> PostRecurringCreateOrderResponse
Call the Jupiter's POST Recurring - Create Order API endpoint for asynchronous logic.
All the API endpoint details are available on Jupiter._post_recurring_create_order.
Source code in src/cyhole/jupiter/client.py
267 268 269 270 271 272 | |
get_recurring_orders
async
¶
get_recurring_orders(
user_public_key: str,
status: JupiterOrderStatus,
recurring_type: JupiterRecurringType,
include_failed: bool = False,
page: int = 1,
input_mint: str | None = None,
output_mint: str | None = None,
) -> GetRecurringOrdersResponse
Call the Jupiter's GET Recurring - Orders API endpoint for asynchronous logic.
All the API endpoint details are available on Jupiter._get_recurring_orders.
Source code in src/cyhole/jupiter/client.py
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 | |
post_recurring_cancel_order
async
¶
post_recurring_cancel_order(
order_id: str,
user_public_key: str,
recurring_type: JupiterRecurringType,
) -> PostRecurringCancelOrderResponse
Call the Jupiter's POST Recurring - Cancel Order API endpoint for asynchronous logic.
All the API endpoint details are available on Jupiter._post_recurring_cancel_order.
Source code in src/cyhole/jupiter/client.py
290 291 292 293 294 295 | |
post_recurring_execute
async
¶
post_recurring_execute(
signed_transaction_id: str, request_id: str
) -> PostRecurringExecuteResponse
Call the Jupiter's POST Recurring - Execute API endpoint for asynchronous logic.
All the API endpoint details are available on Jupiter._post_recurring_execute.
Source code in src/cyhole/jupiter/client.py
297 298 299 300 301 302 | |