OrdersRestClient class

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

Inheritance

Constructors

OrdersRestClient({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

cancelAllOrders({String? profileId, String? productId}) Future<Response>
Cancel all orders
cancelOrder({required String orderId, String? profileId}) Future<Response>
Cancel an order
createNewOrder({String? profileId, OrderEnum? type, required SideEnum side, required String productId, StpEnum? stp, StopEnum? stop, double? stopPrice, double? price, double? size, double? funds, TimeInForceEnum? timeInForce, CancelAfterEnum? cancelAfter, bool? postOnly, String? clientOid}) Future<Response>
Create a new order
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
getAllFills({String? orderId, String? productId, String? profileId, int? limit, int? before, int? after}) Future<Response>
Get all fills
getAllOrders({String? profileId, String? productId, SortedByEnum? sortedBy, SortingEnum? sorting, DateTime? startDate, DateTime? endDate, String? before, String? after, required int limit, required List<StatusEnum> status}) Future<Response>
Get all orders
getBeforeHeader(Response response) int?
inherited
getSingleOrder({String? orderId}) Future<Response>
Get single order
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