> For the complete documentation index, see [llms.txt](https://satangdev.gitbook.io/satang-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://satangdev.gitbook.io/satang-api/apis-v3/public/aggregate-trade.md).

# Aggregate trade

## Get Aggregate trade list

<mark style="color:blue;">`GET`</mark> `https://satangcorp.com/api/v3/aggTrades`

#### Query Parameters

| Name      | Type   | Description                                       |
| --------- | ------ | ------------------------------------------------- |
| symbol    | string | A pair symbol, such as 'btc\_thb', 'eth\_thb'     |
| fromId    | number | ID to get aggregate trades from.                  |
| startTime | number | Timestamp in ms to get aggregate trades from.     |
| endTime   | number | Timestamp in ms to get aggregate trades until.    |
| limit     | number | Maximum number of results (default 500, max 1000) |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```
[
    {
        "a": 1355465,            // Aggregate tradeId
        "p": "303175.34365608",  // Price
        "q": "0.00076406",       // Quantity
        "f": 1355465,            // First tradeId
        "l": 1355465,            // Last tradeId
        "T": 1591781497199,      // Timestamp
        "m": true,               // Was the buyer the maker?
        "M": true                // Was the trade the best price match?
    }
]
```

{% endtab %}
{% endtabs %}
