> For the complete documentation index, see [llms.txt](https://ryan-44.gitbook.io/portrait/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ryan-44.gitbook.io/portrait/portrait-sdk/collective-portraits/read/getauctionendtime.md).

# getAuctionEndTime()

```typescript
 /**
   * Get the auction end time of the Collective Portrait.
   *
   * @remarks
   * The auction end time is the time at which the Collective Portrait will no longer be up for auction.
   * This means that the price of the Collective Portrait will no longer be the auction price, but the price of the Collective Portrait for 1 year.
   *
   * @param {CollectivePortraitName | number} identity - The name of the Collective Portrait that the user would like to get the auction end time for.
   * @returns {number} - The auction end time of the Collective Portrait.
   * @beta
   * @async
   */
  getAuctionEndTime(identity: CollectivePortraitName | number): number {
    const validUntil = this.getValidUntil(identity);
    return (
      validUntil +
      this.getGracePeriod() +
      1375 * this.getAuctionParameters().auctionEpoch
    );
  }

```
