Skip to content

Commit

Permalink
docs(example): add API ref link, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jul 15, 2018
1 parent a8487ed commit c95a370
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/crypto-chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[Live demo](http://demo.thi.ng/umbrella/crypto-chart/)

![chart](../../assets/crypto-chart.png)

This example demonstrates how to use
[@thi.ng/rstream](https://github.com/thi-ng/umbrella/tree/master/packages/rstream)
&
Expand Down
1 change: 1 addition & 0 deletions examples/crypto-chart/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const TIME_TICKS = {
};

// constructs request URL from given inputs
// API docs: https://min-api.cryptocompare.com/
const API_URL = (market, symbol, period) =>
`https://min-api.cryptocompare.com/data/histo${TIMEFRAMES[period].toLowerCase()}?fsym=${symbol.substr(0, 3)}&tsym=${symbol.substr(3)}&limit=168&aggregate=1&e=${market}`;

Expand Down

0 comments on commit c95a370

Please sign in to comment.