Uniswap Plugin for GOAT SDK
A plugin for the GOAT SDK that provides Uniswap DEX functionality for token swaps and liquidity operations.
Installation
# Install the plugin
poetry add goat-sdk-plugin-uniswap
# Install required dependencies
poetry add goat-sdk-wallet-evm
poetry add goat-sdk-plugin-erc20
Usage
from goat_plugins.uniswap import uniswap, UniswapPluginOptions
# Initialize the plugin
options = UniswapPluginOptions(
api_key="${UNISWAP_API_KEY}", # Optional: API key for higher rate limits
rpc_url="${RPC_PROVIDER_URL}" # Your EVM RPC provider URL
)
plugin = uniswap(options)
# Get token price
price = await plugin.get_token_price(
token_address="0x6B175474E89094C44Da98b954EedeAC495271d0F", # DAI
chain_id=1 # Ethereum mainnet
)
# Get swap quote
quote = await plugin.get_swap_quote(
chain_id=1,
token_in="0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", # WETH
token_out="0x6B175474E89094C44Da98b954EedeAC495271d0F", # DAI
amount="1000000000000000000", # 1 WETH in wei
slippage=50 # 0.5% slippage tolerance
)
Features
- Token price discovery
- Swap quote generation
- Token swap execution
- Liquidity pool information
- Position management
- Supported chains:
- Ethereum
- Polygon
- Arbitrum
- Optimism
- Base
- All Uniswap v3 supported networks
License
This project is licensed under the terms of the MIT license.
Metadata
Release files for goat-sdk-plugin-uniswap 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| goat_sdk_plugin_uniswap-0.1.2.tar.gz | 5.2 kB | Without provenance | Details for goat_sdk_plugin_uniswap-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| goat_sdk_plugin_uniswap-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for goat_sdk_plugin_uniswap-0.1.2-py3-none-any.whl |
Total release size: 11.3 kB
Release files / goat_sdk_plugin_uniswap-0.1.2.tar.gz
| Download URL | goat_sdk_plugin_uniswap-0.1.2.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1476d296d7f29be640cfda06cd10760c93c337411b54d39f39e395361b4d1f90
|
|
BLAKE2b-256 checksum How to use checksums |
aef908c71a76f17e6fefacfdd341850db082b6c0c9e103c402098b888843e67d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.16 Linux/6.8.0-1021-azure
|
Release files / goat_sdk_plugin_uniswap-0.1.2-py3-none-any.whl
| Download URL | goat_sdk_plugin_uniswap-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
480887453d313e6d12c20b1ff38ea0fe7ca3ccb29042c79b4e5244e2058c7682
|
|
BLAKE2b-256 checksum How to use checksums |
7551f574ca05e922c78020049f58bd78e22c9ce8598a40d2288387dc987db8e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.16 Linux/6.8.0-1021-azure
|
Security for goat-sdk-plugin-uniswap 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.