coinbase-client

Crates.iocoinbase-client
lib.rscoinbase-client
version1.0.1-alpha
sourcesrc
created_at2021-05-15 23:46:57.546836
updated_at2021-06-23 14:43:18.139385
descriptionasynchronous library for the Coinbase's Pro API
homepage
repositoryhttps://github.com/ElijahWoelbing/coinbase_client
max_upload_size
id398029
size99,727
Elijah Woelbing (ElijahWoelbing)

documentation

README

Coinbase Client Latest Version

A Rust wraper for the Coinbase Pro API

Documentation

Usage

Requires Tokio runtime

use coinbase_client::private_client::*;

// placing a market order
#[tokio::main] 
async fn main() {
    let client = PrivateClient::new("YOUR_API_SECRET", "YOUR_API_PASSPHRASE", "YOUR_API_KEY")
    let order = OrderBuilder::market(OrderSide::Buy, "BTC-USD", SizeOrFunds::Size(0.02)).build();
    let order_id = client.place_order(order).await.expect("unable to place order");
}
Commit count: 71

cargo fmt