PantherSwarm
  • Introduction
    • What is Pantherswarm?
  • Development Road Map
  • Community Road Map
  • Swarm
    • Cub
  • Truffle Hog (scanner)
  • Panther AI
  • Wild Cat (Wallet Manager)
  • Tokenomics
    • $Panther
    • NFT Investor Pass / Liquidity Raise
  • System Architecture
    • Overview
    • Technology Stack
    • Data Flow
    • Ingestion
  • Ai Agents
  • Delivery
  • Contracts overview
  • Contracts Staking
  • Developers
    • Getting Started
    • Api
    • Security Audits
  • Dictionary
    • Dictionary: Key Terms
Powered by GitBook
On this page

Panther AI

PreviousTruffle Hog (scanner)NextWild Cat (Wallet Manager)

Last updated 2 months ago

What it is:

This script is a more complex Discord bot compared to the Truffle Hog scanner. Its core function is to act as an interface between cryptocurrency market data and a Large Language Model (LLM) hosted on Hugging Face.

Here's the flow:

  1. A user in Discord sends a command like !analyze BTC or !prompt ETH Summarize the key risks.

  2. The bot fetches current snapshot data for the requested asset (like price, funding rate, open interest, 24h volume) from the Hyperliquid exchange's API.

  3. It also fetches recent historical price data (candles) from the OKX exchange.

  4. If available, it calculates basic technical indicators (RSI and OBV) on the historical data.

  5. It bundles the snapshot data and the calculated indicators into a text summary.

  6. It takes this data summary and combines it with either a default instruction ("summarize bullish/bearish factors, give a bias") or the user's custom instruction from the !prompt command.

  7. It sends this combined text as a prompt to a specific LLM (Mistral-7B-Instruct-v0.2) via the Hugging Face Inference API.

  8. It receives the text generated by the LLM in response.

  9. It formats this LLM response, along with the data it used, into a Discord message (an embed) and sends it back to the channel where the command was issued.

Essentially, it's a tool to quickly get an AI's textual interpretation of a specific crypto asset's current market state, based on predefined data points. It doesn't trade or make predictions itself; it queries an external AI for analysis based on the data it gathers.

Think of PantherAI as a quick way to get a second opinion. It grabs data, feeds it to an LLM based on your request, and shows you the AI's take, directly in chat