Client¶
cyhole.jupiter.client
¶
JupiterClient
¶
JupiterClient(
interaction: Jupiter, headers: Any | None = None
)
Bases: APIClient
Client used for synchronous API calls for Jupiter interaction.
Source code in src/cyhole/jupiter/client.py
35 36 37 | |
get_price
¶
get_price(
address: list[str],
extra_info: bool = False,
vs_address: str | None = None,
) -> GetPriceResponse
Call the Jupiter's GET Price API endpoint for synchronous logic.
All the API endopint details are available on Jupiter._get_price.
Source code in src/cyhole/jupiter/client.py
39 40 41 42 43 44 | |
get_quote
¶
get_quote(input: GetQuoteInput) -> GetQuoteResponse
Call the Jupiter's GET Quote API endpoint for synchronous logic.
All the API endopint details are available on Jupiter._get_quote.
Source code in src/cyhole/jupiter/client.py
46 47 48 49 50 51 | |
get_quote_tokens
¶
get_quote_tokens() -> GetQuoteTokensResponse
Call the Jupiter's GET Quote Tokens API endpoint for synchronous logic.
All the API endopint details are available on Jupiter._get_quote_tokens.
Source code in src/cyhole/jupiter/client.py
53 54 55 56 57 58 | |
get_quote_program_id_label
¶
get_quote_program_id_label() -> (
GetQuoteProgramIdLabelResponse
)
Call the Jupiter's GET Quote Program ID to Label API endpoint for synchronous logic.
All the API endopint details are available on Jupiter._get_quote_program_id_label.
Source code in src/cyhole/jupiter/client.py
60 61 62 63 64 65 | |
post_swap
¶
post_swap(body: PostSwapBody) -> PostSwapResponse
Call the Jupiter's POST Swap API endpoint for synchronous logic.
All the API endopint details are available on Jupiter._post_swap.
Source code in src/cyhole/jupiter/client.py
67 68 69 70 71 72 | |
get_token_info
¶
get_token_info(address: str) -> GetTokenInfoResponse
Call the Jupiter's GET Token API endpoint for synchronous logic.
All the API endopint details are available on Jupiter._get_token_info.
Source code in src/cyhole/jupiter/client.py
74 75 76 77 78 79 | |
get_token_market_mints
¶
get_token_market_mints(
address: str,
) -> GetTokenMarketMintsResponse
Call the Jupiter's GET Token Market Mints API for synchronous logic.
All the API endopint details are available on Jupiter._get_token_market_mints.
Source code in src/cyhole/jupiter/client.py
81 82 83 84 85 86 | |
get_token_new
¶
get_token_new(
limit: int = 10, offset: int | None = None
) -> GetTokenNewResponse
Call the Jupiter's GET New Token API endpoint for synchronous logic.
All the API endopint details are available on Jupiter._get_token_new.
Source code in src/cyhole/jupiter/client.py
88 89 90 91 92 93 | |
get_token_tagged
¶
get_token_tagged(
tag: str | JupiterTokenTagType,
) -> GetTokenTaggedResponse
Call the Jupiter's GET [Tagged Token]https://station.jup.ag/docs/api/tagged) API endpoint for synchronous logic.
All the API endopint details are available on Jupiter._get_token_tagged.
Source code in src/cyhole/jupiter/client.py
95 96 97 98 99 100 | |
post_limit_order_create
¶
post_limit_order_create(
body: PostLimitOrderCreateBody,
) -> PostLimitOrderCreateResponse
Call the Jupiter's POST Limit Order - Create API endpoint for synchronous logic.
All the API endopint details are available on Jupiter._post_limit_order_create.
Source code in src/cyhole/jupiter/client.py
102 103 104 105 106 107 | |
post_limit_order_cancel
¶
post_limit_order_cancel(
body: PostLimitOrderCancelBody,
) -> PostLimitOrderCancelResponse
Call the Jupiter's POST Limit Order - Cancel API endpoint for synchronous logic.
All the API endopint details are available on Jupiter._post_limit_order_cancel.
Source code in src/cyhole/jupiter/client.py
109 110 111 112 113 114 | |
get_limit_order_open
¶
get_limit_order_open(
wallet: str | None = None,
input_token: str | None = None,
output_token: str | None = None,
) -> GetLimitOrderOpenResponse
Call the Jupiter's GET Limit Order - Open API endpoint for synchronous logic.
All the API endopint details are available on Jupiter._get_limit_order_open.
Source code in src/cyhole/jupiter/client.py
116 117 118 119 120 121 122 123 124 125 126 | |
get_limit_order_history
¶
get_limit_order_history(
wallet: str,
cursor: int | None = None,
skip: int | None = None,
take: int | None = None,
) -> GetLimitOrderHistoryResponse
Call the Jupiter's GET Limit Order - History API endpoint for synchronous logic.
All the API endopint details are available on Jupiter._get_limit_order_history.
Source code in src/cyhole/jupiter/client.py
128 129 130 131 132 133 134 135 136 137 138 139 | |
get_limit_order_trade_history
¶
get_limit_order_trade_history(
wallet: str | None = None,
input_token: str | None = None,
output_token: str | None = None,
cursor: int | None = None,
skip: int | None = None,
take: int | None = None,
) -> GetLimitOrderTradeHistoryResponse
Call the Jupiter's GET Limit Order - Trade History API endpoint for synchronous logic.
All the API endopint details are available on Jupiter._get_limit_order_trade_history.
Source code in src/cyhole/jupiter/client.py
141 142 143 144 145 146 147 148 149 150 151 152 153 154 | |
JupiterAsyncClient
¶
JupiterAsyncClient(
interaction: Jupiter, headers: Any | None = None
)
Bases: AsyncAPIClient
Client used for asynchronous API calls for Jupiter interaction.
Source code in src/cyhole/jupiter/client.py
161 162 163 | |
get_price
async
¶
get_price(
address: list[str],
extra_info: bool = False,
vs_address: str | None = None,
) -> GetPriceResponse
Call the Jupiter's GET Price API endpoint for asynchronous logic.
All the API endopint details are available on Jupiter._get_price.
Source code in src/cyhole/jupiter/client.py
165 166 167 168 169 170 | |
get_quote
async
¶
get_quote(input: GetQuoteInput) -> GetQuoteResponse
Call the Jupiter's GET Quote API endpoint for asynchronous logic.
All the API endopint details are available on Jupiter._get_quote.
Source code in src/cyhole/jupiter/client.py
172 173 174 175 176 177 | |
get_quote_tokens
async
¶
get_quote_tokens() -> GetQuoteTokensResponse
Call the Jupiter's GET Quote Tokens API endpoint for asynchronous logic.
All the API endopint details are available on Jupiter._get_quote_tokens.
Source code in src/cyhole/jupiter/client.py
179 180 181 182 183 184 | |
get_quote_program_id_label
async
¶
get_quote_program_id_label() -> (
GetQuoteProgramIdLabelResponse
)
Call the Jupiter's GET Quote Program ID to Label API endpoint for synchronous logic.
All the API endopint details are available on Jupiter._get_quote_program_id_label.
Source code in src/cyhole/jupiter/client.py
186 187 188 189 190 191 | |
post_swap
async
¶
post_swap(body: PostSwapBody) -> PostSwapResponse
Call the Jupiter's POST Swap API endpoint for asynchronous logic.
All the API endopint details are available on Jupiter._get_quote_program_id_label.
Source code in src/cyhole/jupiter/client.py
193 194 195 196 197 198 | |
get_token_info
async
¶
get_token_info(address: str) -> GetTokenInfoResponse
Call the Jupiter's GET Token API endpoint for asynchronous logic.
All the API endopint details are available on Jupiter._get_token_info.
Source code in src/cyhole/jupiter/client.py
200 201 202 203 204 205 | |
get_token_market_mints
async
¶
get_token_market_mints(
address: str,
) -> GetTokenMarketMintsResponse
Call the Jupiter's GET Token Market Mints API for asynchronous logic.
All the API endopint details are available on Jupiter._get_token_market_mints.
Source code in src/cyhole/jupiter/client.py
207 208 209 210 211 212 | |
get_token_tagged
async
¶
get_token_tagged(
tag: str | JupiterTokenTagType,
) -> GetTokenTaggedResponse
Call the Jupiter's GET [Tagged Token]https://station.jup.ag/docs/api/tagged) API endpoint for asynchronous logic.
All the API endopint details are available on Jupiter._get_token_tagged.
Source code in src/cyhole/jupiter/client.py
214 215 216 217 218 219 | |
get_token_new
async
¶
get_token_new(
limit: int = 10, offset: int | None = None
) -> GetTokenNewResponse
Call the Jupiter's GET New Token API endpoint for asynchronous logic.
All the API endopint details are available on Jupiter._get_token_new.
Source code in src/cyhole/jupiter/client.py
221 222 223 224 225 226 | |
post_limit_order_create
async
¶
post_limit_order_create(
body: PostLimitOrderCreateBody,
) -> PostLimitOrderCreateResponse
Call the Jupiter's POST Limit Order - Create API endpoint for asynchronous logic.
All the API endopint details are available on Jupiter._post_limit_order_create.
Source code in src/cyhole/jupiter/client.py
228 229 230 231 232 233 | |
post_limit_order_cancel
async
¶
post_limit_order_cancel(
body: PostLimitOrderCancelBody,
) -> PostLimitOrderCancelResponse
Call the Jupiter's POST Limit Order - Cancel API endpoint for asynchronous logic.
All the API endopint details are available on Jupiter._post_limit_order_cancel.
Source code in src/cyhole/jupiter/client.py
235 236 237 238 239 240 | |
get_limit_order_open
async
¶
get_limit_order_open(
wallet: str | None = None,
input_token: str | None = None,
output_token: str | None = None,
) -> GetLimitOrderOpenResponse
Call the Jupiter's GET Limit Order - Open API endpoint for asynchronous logic.
All the API endopint details are available on Jupiter._get_limit_order_open.
Source code in src/cyhole/jupiter/client.py
242 243 244 245 246 247 248 249 250 251 252 | |
get_limit_order_history
async
¶
get_limit_order_history(
wallet: str,
cursor: int | None = None,
skip: int | None = None,
take: int | None = None,
) -> GetLimitOrderHistoryResponse
Call the Jupiter's GET Limit Order - History API endpoint for asynchronous logic.
All the API endopint details are available on Jupiter._get_limit_order_history.
Source code in src/cyhole/jupiter/client.py
254 255 256 257 258 259 260 261 262 263 264 265 | |
get_limit_order_trade_history
async
¶
get_limit_order_trade_history(
wallet: str | None = None,
input_token: str | None = None,
output_token: str | None = None,
cursor: int | None = None,
skip: int | None = None,
take: int | None = None,
) -> GetLimitOrderTradeHistoryResponse
Call the Jupiter's GET Limit Order - Trade History API endpoint for asynchronous logic.
All the API endopint details are available on Jupiter._get_limit_order_trade_history.
Source code in src/cyhole/jupiter/client.py
267 268 269 270 271 272 273 274 275 276 277 278 279 280 | |