0.0.5 • Published 7 years ago

ngx-crypto-compare v0.0.5

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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 :smile: