OrdersRestClient class
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> -
cancelOrder(
{required String orderId, String? profileId}) → Future< Response> -
createNewOrder(
{String? profileId, String? type, required String? side, required String? productId, String? stp, String? stop, double? stopPrice, double? price, double? size, double? funds, String? timeInForce, String? cancelAfter, bool? postOnly, String? clientOid}) → Future< Response> -
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> -
inherited
-
get(
{required String path, Map< String, String> ? headers, Map<String, dynamic> ? queryParameters}) → Future<Response> -
inherited
-
getAfterHeader(
Response response) → int? -
inherited
-
getAllFills(
{String? orderId, String? productId, String? profileId, int? limit, int? before, int? after}) → Future< Response> -
getAllOrders(
{String? profileId, String? productId, String? sortedBy, String? sorting, DateTime? startDate, DateTime? endDate, String? before, String? after, required int limit, required List< String> status}) → Future<Response> -
getBeforeHeader(
Response response) → int? -
inherited
-
getSingleOrder(
{String? orderId}) → Future< Response> -
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> -
inherited
-
put(
{required String path, Map< String, String> ? headers, Map<String, dynamic> ? body}) → Future<Response> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited