# README
Jupiter client library for Go
Jupiter is the key liquidity aggregator for Solana, offering the widest range of tokens and best route discovery between any token pair. Read more about Jupiter.
Jupiter web API documentation you can found here.
Features
- Get the best route between any token pair
- Get the price of any token pair
- Swap tokens
# Functions
NewClient returns a new Jupiter client.
WithAPIURL returns a ClientOption that configures the API URL used by the Jupiter client.
WithEndpointPrice returns a ClientOption that configures the price endpoint used by the Jupiter client.
WithEndpointQuote returns a ClientOption that configures the quote endpoint used by the Jupiter client.
WithEndpointRoutesMap returns a ClientOption that configures the routes map endpoint used by the Jupiter client.
WithEndpointSwap returns a ClientOption that configures the swap endpoint used by the Jupiter client.
WithHTTPClient returns a ClientOption that configures the HTTP client used by the Jupiter client.
# Constants
ContentTypeJSON is the content type for JSON.
Predefined swap modes.
Predefined swap modes.
# Variables
No description provided by the author
# Structs
BestSwapParams contains the parameters for the best swap route.
No description provided by the author
ExchangeRateParams contains the parameters for the exchange rate request.
Fee is a fee object structure.
IndexedRoutesMap is a map of routes indexed by the route ID.
MarketInfo is a market info object structure.
Price is a price object structure.
PriceParams are the parameters for a price request.
QuoteParams are the parameters for a quote request.
ExchangeRate returns the exchange rate for a given input mint, output mint and amount.
No description provided by the author
Route is a route object structure.
SwapParams are the parameters for a swap request.
SwapResponse is the response from a swap request.
# Type aliases
No description provided by the author
PriceMap is a price map objects structure.
QuoteResponse is the response from a quote request.