Skip to content

agroupp/ngx-crypto-compare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 😄

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published