Trading based on sentiment analysis. The system fetches news for analysis, retrieves data from provided links (web pages only), extracts annotations for the news (for more focused analysis). It enables Web3 subscription signals for monetization and self-sustainability of the service (addressing liquidity concerns).
Installation and Setup: Provide detailed instructions for installing and running the frontend, agents, describe the structure, and the web3 smart contract.
- Installation
cd blockchain
npm install
- compile smartcontract
npx hardhat compile
- start local blockchain
npx hardhat node
The frontend is located in the news-trade folder. It consists of a React application connected to the database via REST and provides real-time mechanisms (from the database to the frontend). It is recommended to use Node.js version > 15.
- Installation:
cd web
npm install
- Running:
npm start
Also you need specify contractAddress
in WalletCard.js
- Database We utilize a cloud-based service for providing database fulfillment. The database management system is Postgresql. Interaction with the database is facilitated through PostgREST. It serves as the primary data repository and a cloud-based vector database.
Additional Notes:
- TimeScaleDb (for storing time series) - currently disabled.
- Vector storages are disabled (with plans for future development).
Agents are provided in the "agents" folder and are small Python programs that run autonomously and provide some utility.
- agents.news - news parsing and updating the list of news in the database.
- agents.prices - prices of cryptocurrencies used in the news (or to be more precise, all possible pairs).
- agents.sentiment - sentiment analysis of news as positive, negative, or neutral - updating in the database (under development).
- agents.trade - proxy agent for creating trades on cryptocurrency exchanges (under development).
- Python3.9+, Multiprocessing
- Node.js 15+, JavaScript, React
- Supabase
- Docker (plan)
- Cubernates (plan)
- Web3 Etherium
- OpenAI ChatGPT
- YandexGPT2.0 (preview)
- FinGPT, FinRL
- Cryptopanic
- ⚙️ Langchain 🦜
Current versions as of today. If you have any questions or uncertainties, please write them in the Issues section.
The files are located in a single subfolder, with the remaining parts grouped inside.
.
├── agents
│ ├── langchain
│ ├── news
│ │ ├── ... .py
│ ├── prices
│ │ └── agent.py
│ ├── requirements.txt
│ ├── sentiment
│ │ └── agent.py
│ └── trade
│ └── agent.py
├── contracts
│ └── contract.sol
├── docs
│ ├── imgs
│ │ └── schema.svg
│ └── schema.drawio
├── news-trade
│ ├── src
│ ├── ...
└── readme.md
Registered, paid for the subscription, connected the exchange, and the agent executes buy and sell orders with stop-loss and take-profit option. Turning off the signals doesn't stop active deductions. When turned back on, signals resume.
- Fill in the .env file.
- Parameters required for the service are intuitively understandable.
Welcome!
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Developers: