ProductsClient class
A Client
that helps manage products and returns coinbase_exchange
objects
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, CoinbaseLevel? level}) → Future< OrderBook> - Get product book
-
getProductCandles(
{required String productId, CoinbaseGranularity? granularity, DateTime? start, DateTime? end}) → Future< List< Candle> > - Get product candles
-
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> > -
inherited
-
mapDecode(
String body) → Map< String, dynamic> -
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