API Version: v0.2.5 Not using latest version (v0.3.1)

ReportVersions v0.2.5 API Reference

ReportVersions

Data Streams report schemas.

ReportVersions

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 and https://docs.chain.link/data-streams/reference/report-schema

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 and https://docs.chain.link/data-streams/reference/report-schema

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 and https://docs.chain.link/data-streams/reference/report-schema-v4

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

Get the latest Chainlink content straight to your inbox.