Skip to content

Historical price querys for special tokens #12646

Description

@LefterisJP

Abstract

For currrent pricing we query the prices of some tokens in a special way: https://github.com/rotki/rotki/blob/develop/rotkehlchen/inquirer.py#L723

That is actually asking various onchain contracts.

We need to replicate this query for historical items by using archive nodes.

  • Modify to use archive nodes for them by adding the block number
  • Understand the RPC error of the contract not having been deployed there so we return proper error if price before token existence has been asked

Task

Do it

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions