Goat plugin for jupiter
Project description
Jupiter Plugin for GOAT SDK
A plugin for the GOAT SDK that provides Jupiter DEX aggregator functionality for token swaps on Solana.
Installation
# Install the plugin
poetry add goat-sdk-plugin-jupiter
# Install required wallet dependency
poetry add goat-sdk-wallet-solana
Usage
from goat_plugins.jupiter import jupiter, JupiterPluginOptions
# Initialize the plugin
options = JupiterPluginOptions(
rpc_url="${RPC_PROVIDER_URL}" # Your Solana RPC URL
)
plugin = jupiter(options)
# Get swap quote
quote = await plugin.get_swap_quote(
input_mint="EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", # USDC
output_mint="So11111111111111111111111111111111111111112", # SOL
amount=1000000, # 1 USDC (6 decimals)
slippage_bps=50 # 0.5% slippage tolerance
)
# Execute swap
result = await plugin.swap(
input_mint="EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", # USDC
output_mint="So11111111111111111111111111111111111111112", # SOL
amount=1000000, # 1 USDC (6 decimals)
slippage_bps=50, # 0.5% slippage tolerance
wallet_address="your_wallet_address"
)
Features
- Token price discovery
- Swap quote generation
- Token swap execution
- Best route finding
- Supported tokens:
- All SPL tokens
- Native SOL
- Wrapped SOL (WSOL)
- Features:
- Multi-route swaps
- Split trades
- Price impact protection
- MEV protection
License
This project is licensed under the terms of the MIT license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file goat_sdk_plugin_jupiter-0.1.1.tar.gz.
File metadata
- Download URL: goat_sdk_plugin_jupiter-0.1.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.16 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f459728dc1ca875e49c02e01bd3bc0a29b0a2604bb81f8dbbc102b70997aa63e
|
|
| MD5 |
a1c6ce82ce8f43a3541c9019ecf9aa4d
|
|
| BLAKE2b-256 |
ee5c86346288247506fefc1a0fcf5c24bf0e16ed4adeb23308957bafd526c1f1
|
File details
Details for the file goat_sdk_plugin_jupiter-0.1.1-py3-none-any.whl.
File metadata
- Download URL: goat_sdk_plugin_jupiter-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.16 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28403b562fb197c03179274b89cae8abbc1ba93917fcef398854ccac857db191
|
|
| MD5 |
c7229759ace0c23028e72aa133d09359
|
|
| BLAKE2b-256 |
590283b2e58f1c57c8d8c20acf6e5a74fad842d5db4a902ea6c64f374a55132a
|