i came across a website today called UTXO.live with its pythop program UTXOracle.py
through this website it is possible to get the price of bitcoin without exchanges or third parties.
every user who runs this gets the same price independently. its open source, 100% on-chain data, no external libraries, no cookies and works offline.
to run this tool you have to make sure that on your node:
- python3 and bitcoin-cli is installed
- that "server = 1" is in bitcoin.conf
if the two points are given the whole must then be executed as 'python3 UTXOracle.py'
i personally haven't tried it yet, but i'll definitely do it in a free minute...
# This python program estimates the daily USD price of bitcoin using only
# your bitcoin Core full node. It will work even while you are disconnected
# from the internet because it only reads blocks from your machine. It does not
# save files, write cookies, or access any wallet information. It only reads
# blocks, analyzes output patterns, and estimates a daily average a USD
# price of bitcoin. The call to your node is the standard "bitcoin-cli". The
# date and price ranges expected to work for this version are from 2020-7-26
# and from $10,000 to $100,000
https://utxo.live/oracle/UTXOracle.pyhttps://utxo.live/