# Auction metrics

The `AuctionMetrics` entity represents calculated metrics for the era retrieved from [auction info](https://docs.casper.network/developers/json-rpc/json-rpc-pos/#state-get-auction-info)

## Properties

The `AuctionMetrics` entity has the following properties:

| Property                  | Type     | Description                                                               |
| ------------------------- | -------- | ------------------------------------------------------------------------- |
| `current_era_id`          | `uint32` | Current era identifier                                                    |
| `active_validator_number` | `uint32` | Current number of active validators                                       |
| `total_bids_number`       | `uint32` | Total number of [bidders](https://docs.cspr.cloud/1.5.x/rest-api/bidder)  |
| `active_bids_number`      | `uint32` | Number of active [bidders](https://docs.cspr.cloud/1.5.x/rest-api/bidder) |
| `total_active_era_stake`  | `uint64` | Total sum of all validator stakes from current and next era               |

**Example**

```json
{
  "data": {
    "current_era_id": 12137,
    "active_validator_number": 100,
    "total_bids_number": 256,
    "active_bids_number": 110,
    "total_active_era_stake": "17143148308665709822"
  }
}
```

## Optional properties

None

## Relations

| Entity                                                          | Mapping property                       | Description                                                  |
| --------------------------------------------------------------- | -------------------------------------- | ------------------------------------------------------------ |
| [`Bidder`](https://docs.cspr.cloud/1.5.x/rest-api/bidder)       | `total_bids_number,active_bids_number` | Validators with active bids are bidders in the auction era   |
| [`Validator`](https://docs.cspr.cloud/1.5.x/rest-api/validator) | `total_active_era_stake`               | Validators of the current and next era hold active era stake |

## Endpoints

The `AuctionMetrics` entity has the following endpoints:

* [Get auction metrics](https://docs.cspr.cloud/1.5.x/rest-api/auction-metrics/get-auction-metrics)

## Relation endpoints

None
