Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bordalix/btcoracle


https://github.com/bordalix/btcoracle

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# BTC Oracle

Cloudflare worker that queries about a dozen BTC price sources and returns the median price in USD and EUR.

Check [sources.ts](./src/sources.ts) for the list of price sources.

Returned JSON:

```JSON
{
"pricefeed": {
"eur": 58031.63,
"usd": 62977.6
},
"publickey": "publickey",
"signature": "signature",
"timestamp": 1709207259
}
```

### Dev

```
$ yarn dev
$ yarn deploy
```