Skip to content

Aperture-Finance/uniswap-v3-automation-sdk

Repository files navigation

Uniswap V3 Automation SDK

This repository contains the Uniswap V3 Automation SDK developed by Aperture Finance.

Lint Test npm version

Overview

The Uniswap V3 Automation SDK is a comprehensive software development kit designed to automate various workflows related to Uniswap V3. It provides a set of tools, libraries, and utilities that simplify the process of interacting with the Uniswap V3 protocol.

Features

  • Automate Liquidity Provision: The SDK enables you to automate the process of providing liquidity to Uniswap V3 pools. It offers functionalities for calculating optimal positions, managing liquidity ranges, and handling position updates.

  • Trade Execution Automation: With the SDK, you can automate the execution of trades on Uniswap V3. It provides tools for generating trade paths, estimating gas costs, and executing trades with customizable parameters.

  • Position Management: The SDK simplifies the management of your Uniswap V3 positions. It includes features for tracking position details, monitoring performance metrics, and adjusting positions based on market conditions.

  • Analytics and Reporting: Utilize the SDK's analytics and reporting capabilities to gain insights into your Uniswap V3 activities. It offers tools for generating reports, visualizing data, and analyzing historical performance.

Documentation

For detailed information on how to use the Uniswap V3 Automation SDK, please refer to the official documentation: Documentation Link.

Getting Started

To get started with the Uniswap V3 Automation SDK, follow these steps:

  1. Clone the repository:
git clone https://github.com/Aperture-Finance/uniswap-v3-automation-sdk.git
  1. Install the required dependencies:
npm i -g yarn
yarn
  1. Explore the examples and code samples provided in the repository to understand the SDK's functionalities and usage patterns.

Use yarn link for debugging

When debugging with frontend / backend environment, you don't have to release a new version for every change. Instead, use yarn link can easily replace current module under node_modules with your local code.

Here's the step:

  1. Build sdk
yarn build
  1. Run yarn link in current repo root
❯ yarn link
yarn link v1.22.22
success Registered "@aperture_finance/uniswap-v3-automation-sdk".
info You can now run `yarn link "@aperture_finance/uniswap-v3-automation-sdk"` in the projects where you want to use this package and it will be used instead.
  1. Run yarn link @aperture_finance/uniswap-v3-automation-sdk in target project, it will create a soft link to sdk code.
❯ yarn link @aperture_finance/uniswap-v3-automation-sdk
yarn link v1.22.22
success Using linked package for "@aperture_finance/uniswap-v3-automation-sdk".
  1. After make changes on current repo, you will need to run build again
yarn
yarn build
  1. Use unlink to clean up the soft link
❯ yarn unlink @aperture_finance/uniswap-v3-automation-sdk
yarn unlink v1.22.22
success Removed linked package "@aperture_finance/uniswap-v3-automation-sdk".

Version Naming Conventions

  • V2: Custom Solver
  • V3: Migrate from feeBips to feeAmount

Contributing

We welcome contributions from the community!

Licensing

The license for Aperture Automation SDK is the Business Source License 1.1 (BUSL-1.1), see LICENSE.

Contact

If you have any questions, suggestions, or feedback, please feel free to reach out to us at [email protected]