# IPriceAggregator

## Functions

### latestAnswer

Returns the last round price.

### latestTimestamp

Returns the time of the last round price.

### latestRound

Returns the count of rounds registered.

### getAnswer

Returns the price at round `roundId`

**Parameters**

| Parameter | Type    | Description     |
| --------- | ------- | --------------- |
| roundId   | uint256 | Id of the round |

### getTimestamp

Returns the time of the  round`roundId`

**Parameters**

| Parameter | Type    | Description     |
| --------- | ------- | --------------- |
| roundId   | uint256 | Id of the round |

## Events

### AnswerUpdated

Emmited when the answer was updated.

**Parameters**

| Parameter | Type    | Description  |
| --------- | ------- | ------------ |
| current   | uint256 | New price    |
| roundId   | uint256 | New round id |
| timestamp | uint256 | New time     |

### NewRound

Emmited when a new round starts.

**Parameters**

| Parameter | Type    | Description            |
| --------- | ------- | ---------------------- |
| roundId   | uint256 | New round id           |
| startedBy | address | Address of the starter |
| startedAt | uint256 | New time               |

##


---

# 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://blitslabs.gitbook.io/filecoin-loans/reference-guide/filecoin-loans-contracts/interfaces/ipriceaggregator.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.
