Skip to content

Add TSLA/USD pricefeed#1

Open
diofinance wants to merge 1 commit into
mainfrom
develop
Open

Add TSLA/USD pricefeed#1
diofinance wants to merge 1 commit into
mainfrom
develop

Conversation

@diofinance

Copy link
Copy Markdown

DO NOT MERGE

We'll need a different aggregator contract + oracle node for each pricefeed.

Deployment steps:

  1. Deploy aggregator contract to Aurora from https://github.com/kreskohq/flux-price-feeds (see README) and save deployed contract address. Sample deployed contract available here.
  2. Get deployer's Aurora private key from step 1 using helper command available in flux-price-feeds repo
  3. In this repo run cp .env.example .env and populate private key into field AURORA_PRIVATE_KEY
  4. In appconfig.json replace TSLA/USD pair's contract address with the aggregator contract address from step 1
  5. In appconfig.json plug YahooFinance API key into field http_headers.x-api-key. Can update the ticker by changing the symbol at the end of the sources.end_point field.
  6. Run with npm run start

Interval is set to run every minute. Can monitor the YahooFinance API request limit from their dashboard.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant