Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bordalix/btcoracle
https://github.com/bordalix/btcoracle
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bordalix/btcoracle
- Owner: bordalix
- Created: 2024-01-01T19:39:20.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-29T12:56:56.000Z (11 months ago)
- Last Synced: 2024-02-29T13:26:35.105Z (11 months ago)
- Language: TypeScript
- Size: 34.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```