ProductsRestClient class

A RestClient that helps manage products and returns http.Response objects

Inheritance

Constructors

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

Properties

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

Methods

createPaginationQueryParameters({int? before, int? after, int? limit}) Map<String, dynamic>
inherited
delete({required String path, Map<String, String>? headers, Map<String, dynamic>? queryParameters}) Future<Response>
A DELETE method for coinbase exchange which automatically manages signing for authorization.
inherited
get({required String path, Map<String, String>? headers, Map<String, dynamic>? queryParameters}) Future<Response>
A GET method for coinbase exchange which automatically manages signing for authorization.
inherited
getAfterHeader(Response response) int?
inherited
getAllTradingPairs() Future<Response>
Get all known trading pairs
getBeforeHeader(Response response) int?
inherited
getProduct({required String productId}) Future<Response>
Get single product
getProductBook({required String productId, LevelEnum? level}) Future<Response>
Get product book
getProductCandles({required String productId, GranularityEnum? granularity, DateTime? start, DateTime? end}) Future<Response>
Get product candles
getProductsStats() Future<Response>
Not a documented endpoint but returns pricing data for all trading pairs at that point in time
getProductStats({required String productId}) Future<Response>
Get product stats
getProductTicker({required String productId}) Future<Response>
Get product ticker
getProductTrades({required String productId, int? limit, int? before, int? after}) Future<Response>
Get product trades
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post({required String path, Map<String, String>? headers, Map<String, dynamic>? body}) Future<Response>
A POST method for coinbase exchange which automatically manages signing for authorization.
inherited
put({required String path, Map<String, String>? headers, Map<String, dynamic>? body}) Future<Response>
A PUT method for coinbase exchange which automatically manages signing for authorization.
inherited
toString() String
A string representation of this object.
inherited

Operators

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