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.3.tar.gz (4.2 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.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file goat_sdk_plugin_jupiter-0.1.3.tar.gz.

File metadata

  • Download URL: goat_sdk_plugin_jupiter-0.1.3.tar.gz
  • Upload date:
  • Size: 4.2 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.3.tar.gz
Algorithm Hash digest
SHA256 6fa4dfe107ba49eb1233d65f0d3475569179c5cd22f3c5d211506516ff0f8ada
MD5 787d488555fefe558fcdfa798e1ec92a
BLAKE2b-256 9e33a52d897b8e94030baf2478e359646b6f71b1ab079b6a5c10225359edd439

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for goat_sdk_plugin_jupiter-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 35cf209b25a23864a112914fa21d989c078e4fbec949f97016ac064166caca65
MD5 5b121d0b5b3b0e47e7ca7ef5d5ec4df5
BLAKE2b-256 e94e74513eb599da65f24ea058fa62b78b9e430a9bdb2aa075439b5e3efe3b4e

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