Skip to content

Historical Data API issues on Polygon V2 #1176

@drewcook

Description

@drewcook

Describe the bug
A clear and concise description of what the bug is, including the exact market(e.g. polygon v3) on which it was observed.

There is a bug happening for the rates history API for graphs for Polygon V2 markets - and an issue where there is no data available to query since around June 4th 2022. The data from the subgraph is up to date. This is actually an issue on the deployed app because it's only querying the last 45 days.

Here's USDC as an example:

This API call doesn't return data, using the from block number param: https://aave-api-v2.aave.com/data/rates-history?reserveId=0x2791bca1f2de4661ed88a30c99a7a9449aa841740xd05e3e715d945b59290df0ae8ef85c1bdb684744&from=1661338017

This API call doesn't use any block number, and pulls all data. Notice the date from the last object in the array: https://aave-api-v2.aave.com/data/rates-history?reserveId=0x2791bca1f2de4661ed88a30c99a7a9449aa841740xd05e3e715d945b59290df0ae8ef85c1bdb684744

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://app.aave.com/reserve-overview/?underlyingAsset=0x2058a9d7613eee744279e3856ef0eada5fcbaa7e&marketName=proto_mumbai
  2. Notice the graphs don't load due to bad data
  3. View the API request links above
  4. Notice the latest data point not being up to date

Expected behavior
A clear and concise description of what you expected to happen.

There should be data coming back that is up to date.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

See this comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnew issueThis issue has not been triaged by the core team yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions