ngx-crypto-compare
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

ngx-crypto-compare

An Angular service to get real time data from Crypto Compare API. I got this idea after watching this great video.

Usage

    import { CryptoCompareModule } from 'ngx-crypto-compare';
    ...

    import { CryptoCompareService, CcMarketSubscription, CcResponse } from 'crypto-compare';
    ...
    marketData$: Observable<CcResponse>;
    constructor(private cc: CryptoCompareService) {}

    ...
    
    this.marketData$ = this.cc.connect(new CcMarketSubscription({
      subscriptionType: 'Current', exchangeName: 'Coinbase',
      fromSymbol: 'BTC', toSymbol: 'USD'
    }));
    ...

In marketData$ you get Observable with the type CcResponse.

Feedback

Any feedback and stars appreciated 😄

Package Sidebar

Install

npm i ngx-crypto-compare

Weekly Downloads

0

Version

0.0.5

License

MIT

Last publish

Collaborators

  • groupp