coinbase-api 0.1.0

Client library for the Coinbase Pro API.
Documentation

Coinbase-api

Client library for the Coinbase Pro API. Requests are asynchronous and return futures.

Coinbase API reference

Example

Basic example to list all currency pairs trading on the exchange:

extern crate coinbase_api;
extern crate hyper;

use coinbase_api::*;
use hyper::rt::Future;

fn make_future() -> impl Future<Item=(), Error=()> {
  let client = MarketDataClient::new(SANDBOX).unwrap();
  client.products()
  .map(|products| {
    println!("Pairs available for trading:");
    for p in products {
      println!("{}", p.id);
    }
  })
  .map_err(|err| println!("Error: {:?}", err))
}

fn main() {
  hyper::rt::run(make_future());
}

Progress

Implemented

  • Market Data API:
    • get products
    • get product order book
    • get product ticker
    • get trades (not paginated)
    • 24h stats
    • currencies
    • time

Not implemented yet

  • Market Data API:
    • historic rates
    • pagination
  • Private API
  • Websocket Feed
  • FIX API