Sumero
  • Introducing Sumero
  • Welcome
    • Getting Started
  • Using Sumero
    • Synthetic Asset Positions Dashboard
    • Approved Synthetic Assets
      • NLHPI
      • VT
      • USCPI
    • Liquidity Provision
      • Liquidity Pools
      • LP Tokens
      • Providing Liquidity
      • Withdrawing Liquidity
      • Pool Fee Distribution
      • Risks
    • Staking
      • Liquidity Mining
      • Staking LP Tokens
      • Unstaking LP Tokens
      • Claiming Rewards
    • zClay Bonds
      • Lending Clay
      • Bond Maturation Schedule
      • Claim Bonds
  • Frequently Asked Questions
    • FAQ Sections
      • About Sumero Protocol & Global Access Labs
      • Trading
      • Fees
      • Collateral
      • Liquidity Provision
      • Oracles
      • Clay
      • zClay Bonds
      • cSynths (Synthetic Assets)
  • Tokenomics
    • Clay Token
      • Buying Clay
      • Selling Clay
      • Clay Issuance Schedule
  • Overview
    • The Sumero Ecosystem
    • Technical Overview
      • Expiring Multi Party
      • Priceless Position Manager
      • Liquidatable
      • Optimistic Oracle
      • Fees
  • Contracts
    • Addresses
  • Security
    • Audits
  • Resources
    • Network Information
    • Glossary of Terms
    • About The Team
    • Additional Links
  • dApp
  • Sumero Website
  • GitHub
Powered by GitBook
On this page
  • Synthetic Asset Description
  • Manual Price Calculation

Was this helpful?

  1. Using Sumero
  2. Approved Synthetic Assets

USCPI

U.S. Consumer Price Index

PreviousVTNextLiquidity Provision

Last updated 2 years ago

Was this helpful?

Synthetic Asset Description

A synthetic asset that tracks the latest price for the U.S. Consumer Price index for All Urban Consumers: All Items in U.S. City Average.

Display Name: U.S. Consumer Price Index for All Urban Consumers: All Items in U.S. City Average Symbol: USCPI EMP Price Identifier: Numerical Market: Published by Data Update Frequency: Monthly Price Feed Source: Data Providers:

  • Real-time or latest price: Use the chart provided by this link

  • Historical data: Configure the following URL by inputting values for 'api_key=' and 'observation_start=':

Manual Price Calculation

To determine the monthly price for USCPI for the given month of a request timestamp, voters must do the following:

  1. Get the request timestamp.

  2. Convert the timestamp to UTC time.

  3. Get the exact date/month/year.

  4. Go to

  5. Acquire an API key.

  6. Using the following URL, enter the required values for 'api_key=' and 'observation_start=':

  7. Paste the configured URL into your browser's search bar.

  8. Retrieve the CPI Price from the response JSON. The correct CPI price for a given date will be located beside the “value” keyword within the response JSON.

Example response object

{"realtime_start":"2023-03-06","realtime_end":"2023-03-06","observation_start":"2022-12-22","observation_end":"9999-12-31","units":"lin","output_type":1,"file_type":"json","order_by":"observation_date","sort_order":"asc","count":2,"offset":0,"limit":100000,"observations":[{"realtime_start":"2023-03-06","realtime_end":"2023-03-06","date":"2022-12-01","value":"298.990"},{"realtime_start":"2023-03-06","realtime_end":"2023-03-06","date":"2023-01-01","value":"300.536"}]}
https://www.bls.gov/
https://fred.stlouisfed.org/docs/api/fred/
https://fred.stlouisfed.org/series/CPIAUCSL
https://api.stlouisfed.org/fred/series/observations?series_id=CPIAUCSL&api_key=API-KEY-VALUE&file_type=json&observation_start=YYYY-MM-DD
https://fred.stlouisfed.org/docs/api/fred/series_observations.html
https://api.stlouisfed.org/fred/series/observations?series_id=CPIAUCSL&api_key=API-KEY-VALUE&file_type=json&observation_start=YYYY-MM-DD