| Crates.io | m0-liquidity-sdk |
| lib.rs | m0-liquidity-sdk |
| version | 0.0.5 |
| created_at | 2025-10-08 01:33:20.505912+00 |
| updated_at | 2026-01-19 20:42:51.589623+00 |
| description | Rust SDK for the M0 Liquidity API |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1873176 |
| size | 79,854 |
A Rust client library for interacting with the M0 Liquidity API.
Add this to your Cargo.toml:
[dependencies]
m0-liquidity-sdk = "0.0.1"
Retrieve all assets:
use m0_liquidity_sdk::Client;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Create a new client
let client = Client::new("https://api-mainnet-b325.up.railway.app");
// Get all supported assets
let response = client.quote_get_supported_assets().await?;
let assets = response.into_inner();
// Print each asset
for asset in assets {
println!("Asset: {} ({}) on chain {:?}",
asset.name,
asset.symbol,
asset.chain);
}
Ok(())
}