Skip to content

l1h3r/coinbase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coinbase

Client library for the Coinbase Wallet API.

API Reference

Usage:

Example using the API to fetch BTC-USD buy/sell prices

extern crate coinbase;

use coinbase::prelude::*;

fn main() {
  let client = Client::new();

  let buy = client
    .buy_price("BTC", "USD")
    .expect("Failed to fetch BTC-USD buy price");

  let sell = client
    .sell_price("BTC", "USD")
    .expect("Failed to fetch BTC-USD sell price");

  println!("BTC-USD Buy Price:  {:#?}", buy);
  println!("BTC-USD Sell Price: {:#?}", sell);
}

TODO:

Releases

No releases published

Packages

No packages published

Languages