Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BtcService

Hierarchy

  • BtcService

Index

Constructors

constructor

Properties

Private coindeskService

coindeskService: CoindeskService

Private currenciesService

currenciesService: CurrenciesService

Methods

Private createLocalBpi

  • createLocalBpi(currency: string, rate: number): BPI

Private generateLocalBPIs

  • generateLocalBPIs(BTCInDollar: number): Promise<AllBPI>

Private getBTCRateForCurrency

  • getBTCRateForCurrency(BTCInDolar: number, dollarExchange: number): number

getCurrentPriceBTC

updateCurrency

  • updateCurrency(currency: Currencies, value: number): Promise<boolean>

Generated using TypeDoc