# ReportVersions v0.2.4 API Reference
Source: https://docs.chain.link/chainlink-local/api-reference/v0.2.4/report-versions

> For the complete documentation index, see [llms.txt](/llms.txt).

> **NOTE: Integrate Chainlink Local into your project**
>
> ### npm
>
> If you use [NPM](https://www.npmjs.com/), install the [@chainlink/local NPM
> package](https://www.npmjs.com/package/@chainlink/local):
>
> ```shell
> npm install @chainlink/local@0.2.4
> ```
>
> ### yarn
>
> If you use [Yarn](https://yarnpkg.com/), install the [@chainlink/local NPM
> package](https://www.npmjs.com/package/@chainlink/local):
>
> ```shell
> yarn add @chainlink/local@0.2.4
> ```
>
> ### foundry
>
> If you use [Foundry](https://book.getfoundry.sh/):
>
> ```shell
> forge install smartcontractkit/chainlink-local@v0.2.4
> ```
>
> and then set remappings to: `@chainlink/local/=lib/chainlink-local/` in either `remappings.txt` or `foundry.toml` file
>
> ### RemixIDE
>
> Import the `CCIPLocalSimulator` contract from the `@chainlink/local` package:
>
> ```solidity
> import {CCIPLocalSimulator} from "@chainlink/local@0.2.4/src/ccip/CCIPLocalSimulator.sol";
> ```

## ReportVersions

Data Streams report schemas.

[ReportVersions](https://github.com/smartcontractkit/chainlink-local/blob/v0.2.4/src/data-streams/ReportVersions.sol)

## Structs

### ReportV2

*Represents a data report from a Data Streams stream for v2 schema (crypto
streams). The `price` value is carried to either 8 or 18 decimal places,
depending on the stream. For more information, see
[https://docs.chain.link/data-streams/crypto-streams](https://docs.chain.link/data-streams/crypto-streams) and
[https://docs.chain.link/data-streams/reference/report-schema](https://docs.chain.link/data-streams/reference/report-schema)*

```solidity
struct ReportV2 {
  bytes32 feedId;
  uint32 validFromTimestamp;
  uint32 observationsTimestamp;
  uint192 nativeFee;
  uint192 linkFee;
  uint32 expiresAt;
  int192 benchmarkPrice;
}
```

### ReportV3

*Represents a data report from a Data Streams stream for v3 schema (crypto
streams). The `price`, `bid`, and `ask` values are carried to either 8 or 18
decimal places, depending on the stream. For more information, see
[https://docs.chain.link/data-streams/crypto-streams](https://docs.chain.link/data-streams/crypto-streams) and
[https://docs.chain.link/data-streams/reference/report-schema](https://docs.chain.link/data-streams/reference/report-schema)*

```solidity
struct ReportV3 {
  bytes32 feedId;
  uint32 validFromTimestamp;
  uint32 observationsTimestamp;
  uint192 nativeFee;
  uint192 linkFee;
  uint32 expiresAt;
  int192 price;
  int192 bid;
  int192 ask;
}
```

### ReportV4

*Represents a data report from a Data Streams stream for v4 schema (RWA stream).
The `price` value is carried to either 8 or 18 decimal places, depending on the
stream. The `marketStatus` indicates whether the market is currently open.
Possible values: `0` (`Unknown`), `1` (`Closed`), `2` (`Open`). For more
information, see [https://docs.chain.link/data-streams/rwa-streams](https://docs.chain.link/data-streams/rwa-streams) and
[https://docs.chain.link/data-streams/reference/report-schema-v4](https://docs.chain.link/data-streams/reference/report-schema-v4)*

```solidity
struct ReportV4 {
  bytes32 feedId;
  uint32 validFromTimestamp;
  uint32 observationsTimestamp;
  uint192 nativeFee;
  uint192 linkFee;
  uint32 expiresAt;
  int192 price;
  uint32 marketStatus;
}
```