Skip to content

aldrin-labs/rinbot-sui-sdk

Repository files navigation

SUI Trading Bot SDK

The SUI Trading Bot SDK is a TypeScript trading SDK designed to facilitate token trading on the Sui blockchain across different AMMs/DEXes. It includes integrations with various liquidity providers. Here's a quick overview of the supported providers:

Providers

Turbos Finance

Cetus

Aftermath Finance

FlowX Finance

SDK Overview

The SUI Trading Bot SDK is composed of two major parts:

  1. Providers: Handles integrations with different liquidity providers.
  2. Managers: Helper classes for building integrations, including CoinManager, RouteManager, and WalletManager.

Requirements

To run the SUI Trading Bot SDK, ensure the following:

  • Create a .env file with variables specified in .env.example.
  • Use Node.js version 20 and higher, as specified in .nvmrc (tested with v20.11.0).

Usage

Check the examples directory in the root of the SUI Trading Bot SDK for usage examples of each provider and manager.

Running example with printing logs (including errors) to the log file

yarn ts-node examples/cetus/cetus-dca.ts > cetus-dca.txt 2>&1