Quote Overview

The 'karrotcapital.spiderswap' package provides functions for retrieving quotes related to token swaps on the Solana blockchain. These functions allow developers to easily obtain and process quote data from the SpiderSwap API. Here is an overview of the two main functions related to quotes:

Functions

1. 'get_quote_raw'

Fetches raw quote data from the SpiderSwap API. This function is essential for retrieving detailed quote information required for understanding potential swap outcomes.

Learn more about 'get_quote_raw'

2. 'get_quote'

Simplifies the process of fetching quote data by converting the amount to lamports and slippage to basis points before making the API call. This function provides an easy-to-use interface for obtaining quote data.

Learn more about 'get_quote'

3. 'bulk_quote'

Retrieves multiple quotes from different liquidity providers, allowing you to compare rates and choose the best option for your token swap.

Learn more about 'bulk_quote'

These functions provide a robust toolkit for developers to interact with the SpiderSwap API and manage token swap quotes efficiently. For detailed documentation and examples, refer to the respective function pages linked above.

Last updated