ProductsClient class

A Client that helps manage products and returns coinbase_exchange objects

Inheritance

Constructors

ProductsClient({bool sandbox = false, required String apiKey, required String secretKey, required String passphrase})

Properties

apiKey String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
passphrase String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sandbox bool
getter/setter pair
secretKey String
getter/setter pair

Methods

getAllTradingPairs() Future<List<Product>>
Get all known trading pairs
getProduct({required String productId}) Future<Product>
Get single product
getProductBook({required String productId, LevelEnum? level}) Future<OrderBook>
Get product book
getProductCandles({required String productId, GranularityEnum? granularity, DateTime? start, DateTime? end}) Future<List<Candle>>
Get product candles
getProductsStats() Future<List<ProductStats>>
Undocumented endpoint which gives the last price for trading pairs
getProductStats({required String productId}) Future<Map<String, Stats>>
Get product stats
getProductTicker({required String productId}) Future<Ticker>
Get product ticker
getProductTrades({required String productId, int? limit, int? before, int? after}) Future<Paginator<Trade, DateTime>>
Get product trades
listDecode(String body) List<Map<String, dynamic>>
A helper function to decode lists from coinbase
inherited
mapDecode(String body) Map<String, dynamic>
A helper function to decode maps from coinbase
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited