@angular-fintech/snapshotsubject
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

SnapshotSubject

Collection of RXJS Utilities

SnapshotReplaySubject

RX JS Subject keep tracks of objects based on keys New Subscriber will get snapshot of accumulated messages and then updates

In Financial Market data applications e.g. we want to display market data based on some key

const sub = new SnapShotReplaySubject<any>((value) => {return value.key});

sub.next({key:'IBM', bid:100, ask:101});

sub.next({key:'IBM', bid:102, ask:104});

sub.subscribe((val) => { console.log(value); } ); }

will display only

{key:'IBM', bid:102, ask:104}

Package Sidebar

Install

npm i @angular-fintech/snapshotsubject

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

10.4 kB

Total Files

16

Last publish

Collaborators

  • mrudang