| Crates.io | mx-rs |
| lib.rs | mx-rs |
| version | 0.1.0 |
| created_at | 2025-11-25 21:19:57.663077+00 |
| updated_at | 2025-11-25 21:19:57.663077+00 |
| description | A Rust SDK for interacting with the mx.com API |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1950459 |
| size | 1,064,464 |
A Rust SDK for interacting with the MX API. This client library is automatically generated from the MX OpenAPI specification using progenitor.
MX is a financial data platform that provides APIs for account aggregation, transaction data, financial insights, and more. This SDK provides a type-safe Rust interface to interact with all MX API endpoints.
Add this to your Cargo.toml:
[dependencies]
mx-rs = "0.1.0"
use mx_rs::Client;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Create a new client with your API credentials
let client = Client::new("https://api.mx.com")?;
// Use the client to make API calls
// Example: List accounts
let accounts = client.accounts_list().await?;
Ok(())
}
The MX API typically requires authentication via API keys or OAuth tokens. Configure your client with the appropriate credentials:
use mx_rs::Client;
use reqwest::header::{HeaderMap, HeaderValue, AUTHORIZATION};
let mut headers = HeaderMap::new();
headers.insert(
AUTHORIZATION,
HeaderValue::from_str(&format!("Bearer {}", api_key))?,
);
let client = Client::new_with_client(
"https://api.mx.com",
reqwest::Client::builder()
.default_headers(headers)
.build()?,
);
This SDK provides access to all MX API endpoints, including:
progenitor-client - Core client functionalityreqwest - HTTP clientserde / serde_json - Serializationbytes / futures-core - Async streaming supportcargo build
cargo test
For detailed API documentation, refer to the official MX API documentation.
To generate documentation of this repo: cargo doc --open.
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
This is an unofficial SDK. For official MX SDKs and support, please visit MX Developer Portal.