getGeOrdersMyGrandexchangeOrdersGetWithHttpInfo method
Future<Response>
getGeOrdersMyGrandexchangeOrdersGetWithHttpInfo({
- String? code,
- GEOrderType? type,
- int? page,
- int? size,
Get Ge Orders
Fetch your orders details (sell and buy orders).
Note: This method returns the HTTP Response.
Parameters:
-
String code: The code of the item.
-
GEOrderType type: Filter by order type (sell or buy).
-
int page: Page number
-
int size: Page size
Implementation
Future<Response> getGeOrdersMyGrandexchangeOrdersGetWithHttpInfo({
String? code,
GEOrderType? type,
int? page,
int? size,
}) async {
// ignore: prefer_const_declarations
final path = r'/my/grandexchange/orders';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (code != null) {
queryParams.addAll(_queryParams('', 'code', code));
}
if (type != null) {
queryParams.addAll(_queryParams('', 'type', type));
}
if (page != null) {
queryParams.addAll(_queryParams('', 'page', page));
}
if (size != null) {
queryParams.addAll(_queryParams('', 'size', size));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}