Crate coinbase_api[−][src]
Rust client library for Coinbase.
Example
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()); }
Modules
| book_level |
Structs
| Account |
Description of a trading account. |
| Activity | |
| ActivityDetails | |
| AggregatedBook |
Aggregated book of orders. |
| Candle |
|
| Currency |
Currency description. |
| Decimal |
A decimal number with full precision. |
| Fill | |
| FullBook |
Non aggregated book of orders. |
| Hold | |
| MarketDataClient |
HTTP client for the unauthenticated market data API. |
| Order | |
| PrivateClient |
HTTP client for the authenticated private API. |
| Product |
Description of a currency pair. |
| ServerTime |
Time of the API server. |
| Stats |
Trading stats for a product.
|
| Ticker |
Information about the last trade (tick), best bid/ask and 24h volume. |
| Trade |
Description of a trade. |
| TrailingVolume |
Enums
| ActivityType | |
| Error |
Errors that can happen during a request to the API. |
| HoldType | |
| OrderType | |
| Side |
Constants
| LIVE |
URL for the live API. Be sure to test your code on the sandbox API before trying the live one. |
| SANDBOX |
URL for the sandbox API. |