Skip to content

Z-Dux/Frenzy

Repository files navigation

Frenzy

Warning

This project includes automation around Discord account activity. Automating Discord accounts can violate Discord Terms of Service. We do not promote, encourage, or endorse violating Discord ToS.

What's this?

Frenzy is a completely automated trading agent capable of ingesting general chat messages from social media, analysing them through LLMs, syncing with market data and performing trades.

Frenzy flow

Current workflow given above is inclusive of only existing features in production!

Installation

Note

Bun is suggested to run this!

OCR Server

pip install -r requirements.txt

Frenzy Dependencies

bun install

.env Configuration

DISCORD_TOKEN= # Discord User account token
DISCORD_BOT_TOKEN= # Discord bot token
GROQ_API_KEY= # Groq api key
OPENROUTER_API_KEY= # openrouter api key
MONGODB_URI= # mongo db url

config.ts Configuration

export const config = {
  token: process.env.DISCORD_TOKEN || "",
  GROQ_API_KEY: process.env.GROQ_API_KEY || "",
  discordServers: [ ], // <=========================== ID of Discord Servers to scan ===========
  OPENROUTER_API_KEY: process.env.OPENROUTER_API_KEY || "",
  DISCORD_BOT_TOKEN: process.env.DISCORD_BOT_TOKEN || "",
  tradeLog: "1496571283930878092", // <============= Main Channel to log ===========
  liveTrade: "1496575116027498677", // <============ Channel where live portfolio will be presented ====
  portfolioLog: { // <=========================== Trade status logs ===========
    create: "1496571337295266102",
    open: "1496571303002374215",
    close: "1496571314369073154",
  },
  MONGODB_URI: process.env.MONGODB_URI || "",
};

export const tradeConfig = {
  leverage: 10, // <=========================== Maximum leverage ===========
  riskPerTrade: 0.05, // <===================== Maximum portfolio % risk ===========
};

Run

Start the PaddleOCR server first:

uvicorn paddleOCR:app --host 127.0.0.1 --port 8000

Then, in a separate terminal, start the app with:

bun run src/index.ts

TODO / Feature List

  • Discord Users trade/market sentiment analyser
  • Technical Indicator analyser (AI model)
  • ForexFactory/Bloomberg/FinHub News Listener
  • Youtube Live Stream analyser
  • Multi-agent conversational trade decision picker
  • Reddit/Telegram
  • Hyperdash data scraper & aggregator

Environment Notes

The OCR service is expected at http://127.0.0.1:8000/parse-chart. Discord server and channel IDs, along with runtime constants, are configured in config.ts.

About

Frenzy is an automated trading agent which aggregates and analyses data feed from different sources into a data relevant for trading. Frenzy is capable of collecting data from Discord, ForexFactory, Reddit....

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors