diff --git a/README.md b/README.md index 6de5db9..1ff01a9 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,28 @@ namespace dotnet } } +``` +```rust +//rust +use mexc_rust_sdk::MexcClient; + +fn main() { + let api_key = "apiKey".to_string(); + let api_secret = "apiSecret".to_string(); + let client = MexcClient::new(api_key, api_secret); + + // Example usage: + match client.ping() { + Ok(response) => println!("Ping successful: {}", response), + Err(err) => println!("Error pinging: {}", err), + } + + match client.avg_price("BTCUSDT") { + Ok(price) => println!("Average price: {}", price), + Err(err) => println!("Error fetching average price: {}", err), + } +} +``` ``` ## Market diff --git a/dist/rust/mexc_rust_sdk.zip b/dist/rust/mexc_rust_sdk.zip new file mode 100644 index 0000000..95ec00c Binary files /dev/null and b/dist/rust/mexc_rust_sdk.zip differ