Skip to main content

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

goat_sdk_plugin_jupiter-0.1.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

goat_sdk_plugin_jupiter-0.1.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

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

Hashes for goat_sdk_plugin_jupiter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f459728dc1ca875e49c02e01bd3bc0a29b0a2604bb81f8dbbc102b70997aa63e
MD5 a1c6ce82ce8f43a3541c9019ecf9aa4d
BLAKE2b-256 ee5c86346288247506fefc1a0fcf5c24bf0e16ed4adeb23308957bafd526c1f1

See more details on using hashes here.

File details

Details for the file goat_sdk_plugin_jupiter-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for goat_sdk_plugin_jupiter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 28403b562fb197c03179274b89cae8abbc1ba93917fcef398854ccac857db191
MD5 c7229759ace0c23028e72aa133d09359
BLAKE2b-256 590283b2e58f1c57c8d8c20acf6e5a74fad842d5db4a902ea6c64f374a55132a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page