OrdersClient class

A Client that helps manage orders and returns coinbase_exchange objects.

Inheritance

Constructors

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

cancelAllOrders({String? profileId, String? productId}) Future<List>
Cancel all orders
cancelOrder({required String orderId, String? profileId}) Future<String>
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<Order>
Create a new order
getAllFills({String? orderId, String? productId, String? profileId, int? limit, int? before, int? after}) Future<Paginator<Fill, int>>
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<Paginator<Order, DateTime>>
Get all orders
getSingleOrder({String? orderId}) Future<Order>
Get single order
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