The node setup instructions are available in our Wiki page!
This repository hosts a self-contained containerized application for running a data feeder in the Lumina oracle network. It comprises of a scraper that collects data from various sources including Real-World Asset data (TwelveData for Stocks, Forex, Commodities, ETFs), and verifiable random numbers (Randamu).
-
Docker or Docker Compose installed
-
Container has minimal resource requirements, making it suitable for most machines, including Windows, macOS, Linux, and Raspberry Pi, as long as Docker is installed.
-
A private key from MetaMask or any other EVM wallet. Alternatively to generate a private key effortlesly, eth-keys tool can be used for this.
-
DIA tokens in your wallet. For running a node in testnet, you can request tokens from the faucet.
NOTE: This guide is using docker compose for running a feeder node. You can explore alternative deployment methods here.
- Locate the
docker-composefolder in this repository. - Inside, you will find a file named
docker-compose.yaml.
- Create a
.envfile in the same directory asdocker-compose.yaml. This file should contain the following variables:
SOURCE=TwelveData
# Node operator configuration (MUST be filled by node operators)
PRIVATE_KEY=
NODE_OPERATOR_NAME=""
DEPLOYED_CONTRACT=""
BLOCKCHAIN_NODE=""
BACKUP_NODE=""
IMAGE_TAG=""
# Monitoring
PUSHGATEWAY_USER=
PUSHGATEWAY_PASSWORD=
PUSHGATEWAY_URL=
# Chain configuration
# https://github.com/diadata-org/decentral-data-feeder/wiki/Chain-Info
CHAIN_ID=
UPDATE_SECONDS=80
# Asset symbols to track
STOCK_SYMBOLS=
FX_TICKERS=
COMMODITIES=
ETF=
Please refer to the .env.example file for the exact environment variables to set.
- Open a terminal in the
docker-composefolder and start the deployment by running:docker-compose up
-
Once the container is deployed with
DEPLOYED_CONTRACTenv variable empty the logs will display the deployed contract address in the following format:│ time="2024-11-25T11:30:08Z" level=info msg="Contract pending deploy: 0xxxxxxxxxxxxxxxxxxxxxxxxxx." -
Copy the displayed contract address (e.g.,
0xxxxxxxxxxxxxxxxxxxxxxxxxx) and stop the container withdocker rm -f <container_name>. -
Update your
.envfile withDEPLOYED_CONTRACTvariable mentioned above. Redeployed the container withdocker-compose up -dDEPLOYED_CONTRACT=0xxxxxxxxxxxxxxxxxxxxxxxxxx -
Check if the container is running correctly by viewing the logs. Run the following command:
docker-compose logs -f
-
Expected Logs: Look for logs similar to the example below, which indicate a successful startup:
app-1 | time="2025-08-19T05:59:23Z" level=info msg="Executing ETF data update for 19 symbols"
app-1 | time="2025-08-19T05:59:24Z" level=info msg="got rwa data: {URTH iShares MSCI World ETF 175.6 2025-08-18 19:59:00 +0000 UTC false false ETF TwelveData}"
app-1 | time="2025-08-19T05:59:24Z" level=info msg="got rwa data: {EEM iShares MSCI Emerging Markets ETF 50.235 2025-08-18 19:59:00 +0000 UTC false false ETF TwelveData}"
app-1 | time="2025-08-19T05:59:24Z" level=info msg="got rwa data: {VOO Vanguard S&P 500 ETF 591.44 2025-08-18 19:59:00 +0000 UTC false false ETF TwelveData}"
app-1 | time="2025-08-19T05:59:25Z" level=info msg="got rwa data: {SPY SPDR S&P 500 ETF Trust 643.2901 2025-08-18 19:59:00 +0000 UTC false false ETF TwelveData}"
app-1 | time="2025-08-19T05:59:25Z" level=info msg="got rwa data: {VTI Vanguard Total Stock Market ETF 316.54001 2025-08-18 19:59:00 +0000 UTC false false ETF TwelveData}"
app-1 | time="2025-08-19T05:59:25Z" level=info msg="got rwa data: {QQQ Invesco QQQ Trust 577.099976 2025-08-18 19:59:00 +0000 UTC false false ETF TwelveData}"
.
.
-
You can optionally cleanup the deployment once you're done by running:
docker rm -f <container_name> -
Verify the container has been removed:
docker ps -a
NOTE: This guide is specific to docker compose. You can check how to handle errors based on your deployment method here.
If any issues arise during deployment, follow these steps:
- Run
docker-compose logs -f
- Ensure all required variables (
PRIVATE_KEY,DEPLOYED_CONTRACT,...etc) are correctly set by checking the.envfile.
-
docker-compose down && docker-compose up -d
- Ensure you're using the correct image version:
docker pull diadata/decentralized-data-feeder:<VERSION>
- Apply fixes and redeploy.
For the full node deployment instructions, you can visit our Wiki page.
To learn about DIA's oracle stacks, you can visit our documentation here.
To report bugs or suggest enhancements, you can create a Github Issue in the repository.
Coming soon...
You can find our team on the following channels:
