First request with Rust¶
List your own copiers to check connectivity and identity without creating a terminal or placing a trade.
1. Install¶
Requires Stable Rust, Cargo and protoc on PATH. These instructions build from source; they do not assume a registry release exists.
2. Set your owner key¶
Use the real owner API key, not a broker password, terminal ID or TRIAL. Read authentication if access is refused.
3. Run¶
Source: examples/list.rs.
use rustcopier::client::CopierService;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let key = std::env::var("MRPC_API_KEY")?;
let service = CopierService::connect("https://copy.mrpc.pro", &key).await?;
let result = service.list().await?;
if !result.ok { return Err(result.error.into()); }
for copier in result.copiers { println!("{}: paused={}", copier.id, copier.paused); }
Ok(())
}
A successful empty list means this owner has no copiers. Treat failed requests as errors, not empty accounts.
4. Prepare a demo workflow¶
Read the lifecycle guide, then choose sizing. Existing replication examples under examples/ are advanced integration examples: they may provision accounts and trade. Inspect them and their cleanup before running with disposable demos. List is the default starting point.