# Orders API

## Orders

### get\_grouped\_limit\_orders

Get grouped limit orders in given market.

```cpp
vector<limit_order_group> graphene::app::orders_api::get_grouped_limit_orders(
    std::string base_asset, 
    std::string quote_asset, 
    uint16_t group, 
    optional<price> start, 
    uint32_t limit)const
```

{% tabs %}
{% tab title="Parameters" %}

* **`base_asset`**: ID or symbol of asset being sold
* **`quote_asset`**: ID or symbol of asset being purchased
* **`group`**: Maximum price diff within each order group, have to be one of configured values
* **`start`**: Optional price to indicate the first order group to retrieve
* **`limit`**: Maximum number of order groups to retrieve (must not exceed 101)
  {% endtab %}

{% tab title="Return" %}
The grouped limit orders, ordered from best offered price to the worst.
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://community.peerplays.com/api/peerplays-core-api/orders-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
