Coinbase pro client with sync and async support
There are two main structures to work with: Private
and Public
, which provide interfaces to
work with https://docs.pro.coinbase.com .
The structures should be parametrised with: Sync
or ASync
adapter-type, which blocks
future and returns result of its execution for Sync adapter or returns Future for ASync
adapter.
extern crate coinbase_pro_rs;
use coinbase_pro_rs::{Public, Sync, SANDBOX_URL};
fn main() {
let client: Public<Sync> = Public::new(SANDBOX_URL);
let time = client.get_time().unwrap();
println!("Coinbase.time: {}", time.iso);
}