coinbase-api 0.2.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 (without pagination)
  • Private API:
    • list accounts
    • get an account
    • get account history
    • list holds

Not implemented yet

  • pagination
  • Private API
  • Websocket Feed
  • FIX API