SDK Comparison Guide

Choose the right Saros SDK for your project based on your specific needs, technical requirements, and development expertise.

Side-by-Side Comparison
Detailed comparison of features, performance, and use cases
Feature
🔷@saros-finance/sdkTypeScript
@saros-finance/dlmm-sdkTypeScript
🦀saros-dlmm-sdk-rsRust
PerformanceGoodExcellentExceptional
Ease of UseHighMediumLow
EcosystemBroadSpecializedSpecialized
Best For
  • General DeFi applications
  • Token swaps
  • Liquidity provision
  • Staking and farming
  • Advanced trading applications
  • Concentrated liquidity
  • Reduced slippage
  • Capital efficiency
  • High-frequency trading
  • Server-side applications
  • Performance-critical systems
  • Native Solana integration
Key Features
  • Simple API for common operations
  • Built-in error handling
  • Comprehensive documentation
  • Active community support
  • Dynamic liquidity bins
  • Advanced position management
  • Optimized price discovery
  • Real-time market data
  • Zero-cost abstractions
  • Memory safety
  • High-performance trading
  • Native Solana integration
Quick StartGet StartedGet StartedGet Started
🔷@saros-finance/sdk
TypeScript
Good Performance

Complete SDK for AMM, Staking, and Farming operations on Saros

Best For:

  • General DeFi applications
  • Token swaps
  • Liquidity provision
  • Staking and farming

Key Features:

  • Simple API for common operations
  • Built-in error handling
  • Comprehensive documentation
  • Active community support
@saros-finance/dlmm-sdk
TypeScript
Excellent Performance

Dynamic Liquidity Market Maker for advanced trading strategies

Best For:

  • Advanced trading applications
  • Concentrated liquidity
  • Reduced slippage
  • Capital efficiency

Key Features:

  • Dynamic liquidity bins
  • Advanced position management
  • Optimized price discovery
  • Real-time market data
🦀saros-dlmm-sdk-rs
Rust
Exceptional Performance

High-performance Rust SDK for DLMM operations

Best For:

  • High-frequency trading
  • Server-side applications
  • Performance-critical systems
  • Native Solana integration

Key Features:

  • Zero-cost abstractions
  • Memory safety
  • High-performance trading
  • Native Solana integration
How to Choose the Right SDK

1. Consider Your Project Requirements

If you're building a general DeFi application with standard swap and liquidity features, the @saros-finance/sdk is the best choice. For advanced trading strategies that require concentrated liquidity and reduced slippage, consider the @saros-finance/dlmm-sdk. For high-performance, server-side applications, the Rust SDK is optimal.

2. Evaluate Your Team's Expertise

The TypeScript SDKs are easier to use and have extensive documentation, making them suitable for teams with JavaScript/TypeScript experience. The Rust SDK requires knowledge of Rust and Solana's low-level concepts but offers superior performance.

3. Think About Performance Needs

For most applications, the performance of the TypeScript SDKs is sufficient. However, if you're building high-frequency trading systems or applications that require maximum throughput, the Rust SDK's zero-cost abstractions and memory safety provide significant advantages.

Pro Tip

You can combine SDKs in a single project. For example, use the TypeScript SDK for frontend interactions and the Rust SDK for backend services that require high performance.