lightninglabs / lightninglabs/faraday

fiat: Expand fiat backends

Open
#37 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

fiat
Dominant language
Go
Stars
130
Forks
35
Avg merge
7h 54m
Merged PRs (30d)
5

Description

As is, the fiat package only uses CoinCap's API for price information. The package is designed to allow different price sources without affecting our price calculation logic.

Steps to completion
  1. Identify different sources of price data and propose in this issue (perhaps coindesk)
  2. Add code to obtain price data over a range and update fiat/GetPrices to allow users to choose a backend
  3. Update rpc to allow choice of backends

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the fiat/GetPrices entry point and the existing CoinCap price-data path, then inspect the rpc surface that exposes fiat data. Compare suitable price sources, define how a backend is selected and queried over a range, and update both fiat and rpc so users can choose it; done means an alternate backend works without changing price calculation logic.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.