Skip to main content

Angstrom SDK

This official, SDK provides Rust developers with the tools to interact directly with the Angstrom protocol, including sending orders, querying on-chain and off-chain data, managing liquidity, and subscribing to real-time events via WebSockets.

Key Features:

  • Comprehensive API Coverage: Interact with Angstrom's Node RPC, Data, and User-specific functionalities.
  • Order Building & Management: Construct various Angstrom order types (TopOfBlock, Flash, Standing) using a convenient builder pattern.
  • Automated Order Preparation: Built-in "Fillers" automatically handle order signing, nonce management, and balance checks.
  • Data Querying: Access rich data about pools, tokens, historical orders, and user positions.
  • Real-time Subscriptions: Subscribe to order events and empty block attestations via WebSockets.
  • Typed and Asynchronous: Leverages Rust's type system and async capabilities for robust and efficient development.

Usage

Add angstrom-sdk-rs and its necessary dependencies (primarily from the Alloy ecosystem) to your project's Cargo.toml file.

  • Note this library DOES use Angstrom as a direct dependecy, and usage will result in an increased binary size
[dependencies]
angstrom-sdk-rs = { git = "https://github.com/SorellaLabs/angstrom-sdk-rs.git" }