Skip to content

conditional-team/NEXUS-2026

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– NEXUS AI β€” Autonomous Trading Engine

Python Solidity DeepSeek Binance License

AI-driven crypto trading system with LLM market analysis, multi-source data aggregation, and on-chain token-gated access tiers.


Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                        NEXUS ECOSYSTEM                              β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                                     β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚   WEBSITE    β”‚    β”‚   $NEXUS     β”‚    β”‚   AI TRADING BOT      β”‚  β”‚
β”‚  β”‚   Landing    │───▢│   ERC-20     │───▢│   DeepSeek Engine     β”‚  β”‚
β”‚  β”‚   + Docs     β”‚    β”‚   Token      β”‚    β”‚   Binance Futures     β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚                            β”‚                       β”‚                β”‚
β”‚                            β–Ό                       β–Ό                β”‚
β”‚                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”‚
β”‚                    β”‚   Staking    β”‚    β”‚   Multi-Source Data    β”‚    β”‚
β”‚                    β”‚   Rewards    β”‚    β”‚   Price Β· OI Β· Funding β”‚    β”‚
β”‚                    β”‚   + Tiers    β”‚    β”‚   Sentiment Β· News     β”‚    β”‚
β”‚                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚
β”‚                                                                     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Components

AI Trading Bot β€” bot/

The core engine. Runs autonomous analysis cycles using DeepSeek as the decision layer.

Module Purpose
main.py Entry point β€” scheduler, lifecycle, signal handling
ai_engine.py DeepSeek integration β€” structured JSON decisions (LONG/SHORT/WAIT)
trader.py Execution logic β€” position sizing, SL/TP, max position limits
data_fetcher.py Multi-source aggregation β€” exchange, CoinGlass, CryptoPanic, Fear & Greed
exchange.py CCXT wrapper β€” Binance Futures (testnet + mainnet), order management
telegram_bot.py Real-time alerts β€” trade signals, P&L updates, error notifications
token_verifier.py On-chain tier verification β€” reads $NEXUS balance for access gating
config.py Environment-based configuration β€” all params via .env

Data Pipeline:

Exchange (OHLCV, Ticker, Orderbook)
    + CoinGlass (Funding Rate, Open Interest, Liquidations)
    + CryptoPanic (News Sentiment)
    + Alternative.me (Fear & Greed Index)
    + Technical Indicators (RSI, MACD, Bollinger, ATR via `ta`)
          β”‚
          β–Ό
    DeepSeek Analysis β†’ JSON { decision, confidence, SL/TP, risk_level }
          β”‚
          β–Ό
    Execution (confidence β‰₯ 70%) β†’ Binance Futures Order
          β”‚
          β–Ό
    Telegram Alert β†’ Position Monitoring β†’ Auto SL/TP

Risk Controls:

  • Confidence threshold (skip if < 70%)
  • Max concurrent positions
  • Per-trade position sizing (% of balance)
  • Automatic stop-loss & take-profit
  • Dry run mode for paper trading
  • Sell cooldown enforcement

Smart Contracts β€” contracts/

NexusToken.sol β€” ERC-20 with built-in economic mechanics:

Feature Detail
Supply 1,000,000,000 $NEXUS
Buy Tax 2% β†’ Liquidity + Staking
Sell Tax 3% β†’ Liquidity + Staking + Burn
Max Wallet 2% of supply (anti-whale)
Max TX 1% of supply
Sell Cooldown 1 hour between sells
Anti-Bot First 3 blocks blacklisted
Burn Deflationary on every sell

NexusStaking.sol β€” Stake-to-earn with tier integration:

Feature Detail
Base APY 10%
Compound Manual claim + restake
Early Withdraw 10% penalty if < 7 days
Tier Boost Higher stake β†’ higher bot tier
Security ReentrancyGuard + SafeERC20

Both contracts use OpenZeppelin 5.x (ERC20, Ownable, ReentrancyGuard, SafeERC20).


Token-Gated Access Tiers

Tier $NEXUS Required Bot Features
Free 0 Telegram signals (15 min delay)
Bronze 10,000 Real-time signals + 1 trading pair
Silver 50,000 + 5 pairs + auto-trade testnet
Gold 200,000 + Unlimited pairs + auto-trade live
Diamond 1,000,000 + Private API + priority execution + VIP support

Verification is on-chain: token_verifier.py reads wallet balance via RPC and maps it to tier.


Tech Stack

Layer Technology
AI Engine DeepSeek Chat API (structured JSON output)
Exchange CCXT β†’ Binance Futures (testnet / mainnet)
Data CoinGlass API, CryptoPanic, Alternative.me
Indicators ta library (RSI, MACD, Bollinger, ATR, OBV)
Scheduling APScheduler (configurable interval)
Logging Loguru (console + daily rotating file)
Alerts Telegram Bot API
Contracts Solidity 0.8.20 + OpenZeppelin 5.x
Deployment Hardhat (Base, BSC, Arbitrum, Polygon, Avalanche)
Frontend Vanilla HTML/CSS/JS

Quick Start

# Clone
git clone https://github.com/conditional-team/NEXUS-2026.git
cd NEXUS-2026

# Bot
cd bot
pip install -r requirements.txt
cp .env.example .env        # Add DeepSeek + Binance keys
python main.py               # Starts in dry-run mode

# Contracts
cd ../contracts
npm install
npx hardhat compile
npx hardhat run scripts/deploy.js --network base

Project Structure

NEXUS-2026/
β”œβ”€β”€ bot/                        # AI Trading Bot (Python)
β”‚   β”œβ”€β”€ main.py                 # Entry point + scheduler
β”‚   β”œβ”€β”€ ai_engine.py            # DeepSeek LLM integration
β”‚   β”œβ”€β”€ trader.py               # Trade execution + risk management
β”‚   β”œβ”€β”€ data_fetcher.py         # Multi-source data aggregation
β”‚   β”œβ”€β”€ exchange.py             # CCXT Binance Futures wrapper
β”‚   β”œβ”€β”€ telegram_bot.py         # Telegram alert system
β”‚   β”œβ”€β”€ token_verifier.py       # On-chain tier verification
β”‚   β”œβ”€β”€ config.py               # Environment configuration
β”‚   └── requirements.txt        # Python dependencies
β”‚
β”œβ”€β”€ contracts/                  # Smart Contracts (Solidity)
β”‚   β”œβ”€β”€ NexusToken.sol          # ERC-20 β€” taxes, anti-whale, burn
β”‚   β”œβ”€β”€ NexusStaking.sol        # Staking β€” rewards, penalties, tiers
β”‚   β”œβ”€β”€ hardhat.config.js       # Multi-chain deployment config
β”‚   └── scripts/deploy.js       # Deployment script
β”‚
β”œβ”€β”€ website/                    # Landing Page
β”‚   β”œβ”€β”€ index.html
β”‚   β”œβ”€β”€ style.css
β”‚   └── script.js
β”‚
β”œβ”€β”€ NEXUS_MASTERPLAN.md         # Internal roadmap & tokenomics
└── LICENSE                     # Proprietary

License

Proprietary β€” All Rights Reserved. See LICENSE.


NEXUS AI β€” Autonomous Intelligence for Digital Markets

Releases

No releases published

Packages

 
 
 

Contributors