coinbase-api

Crates.iocoinbase-api
lib.rscoinbase-api
version0.2.1
sourcesrc
created_at2018-07-31 16:17:13.145473
updated_at2018-08-03 11:32:57.217833
descriptionClient library for the Coinbase Pro API.
homepage
repositoryhttps://github.com/thomas-huet/coinbase-api-rust
max_upload_size
id76827
size52,700
Thomas HUET (thomas-huet)

documentation

README

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:
    • GET requests without pagination

Not implemented yet

  • pagination
  • Private API:
    • POST requests
    • DELETE requests
    • Payment methods
    • Coinbase accounts
    • Reports
  • Websocket Feed
  • FIX API
Commit count: 19

cargo fmt