MCPcopy Index your code
hub / github.com/NoFxAiOS/nofx

github.com/NoFxAiOS/nofx @main sqlite

repository ↗ · DeepWiki ↗
3,427 symbols 11,952 edges 417 files 1,836 documented · 54%
README

Backed by vergex.trade

NOFX

AI trading terminal for global markets.

Research, strategy generation, execution, and monitoring for US stocks, commodities, forex, and crypto.

Stars Release License Telegram

Go React

English · 中文 · 日本語 · 한국어 · Русский · Українська · Tiếng Việt


NOFX is an open-source AI trading terminal for active traders who want one workspace for market research, strategy development, execution, and portfolio monitoring.

The product is built around global liquid markets: US equities, commodity contracts, FX pairs, and digital assets. The AI layer helps translate market intent into watchlists, signals, strategy logic, risk controls, and execution workflows.

curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash

Open http://127.0.0.1:3000.


Register exchanges

Use the links below to open trading accounts for crypto and supported US stock, FX, and commodity derivative markets. These routes are part of NOFX partner programs and may include fee discounts or referral benefits.

Exchange Status Register with fee discount
Binance Register
Bybit Register
OKX Register
Hyperliquid Register
Bitget Register
KuCoin Register
Gate Register
Aster Register
Lighter Register

Quick demo

https://github.com/user-attachments/assets/3310f495-14c5-4586-a1cc-3d32e44aa505


Markets

US Stocks · Commodities · Forex · Crypto

NOFX organizes research, strategy construction, execution, and monitoring around multi-asset workflows instead of single-venue screens.


AI model access

NOFX routes AI inference through Claw402 automatically. Users do not need to configure model providers, manage API keys, or maintain separate AI accounts. The terminal accesses supported models on demand through Claw402's pay-as-you-go infrastructure, with traffic routed through the official discounted channel.

Provider Access
Claw402 Access pay-as-you-go AI models with official discount

Capabilities

Capability Description
AI trading terminal Unified workspace for US stocks, commodities, forex, and crypto workflows
AI model access Unified model access through Claw402-supported providers
Exchange connectivity Binance, Bybit, OKX, Hyperliquid, Bitget, KuCoin, Gate, Aster, and Lighter
Strategy Studio Market universes, indicators, risk controls, and strategy logic
Model competition Compare model-driven traders with live performance and leaderboard tracking
Telegram agent Control and monitor the trading assistant through chat
Portfolio dashboard Positions, P/L, execution history, and model decision logs

Screenshots

Config Page

Configuration Traders List

Dashboard

Overview Market Chart
Trading Stats Position History
Positions Trader Details

Strategy Studio

Strategy Editor Indicators Config

Competition

Competition Mode

Install

Linux / macOS

curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash

Railway (Cloud)

Deploy on Railway

Docker

curl -O https://raw.githubusercontent.com/NoFxAiOS/nofx/main/docker-compose.prod.yml
docker compose -f docker-compose.prod.yml up -d

Windows

Install Docker Desktop, then:

curl -o docker-compose.prod.yml https://raw.githubusercontent.com/NoFxAiOS/nofx/main/docker-compose.prod.yml
docker compose -f docker-compose.prod.yml up -d

From Source

# Prerequisites: Go 1.21+, Node.js 18+, TA-Lib
# macOS: brew install ta-lib
# Ubuntu: sudo apt-get install libta-lib0-dev

git clone https://github.com/NoFxAiOS/nofx.git && cd nofx
go build -o nofx && ./nofx          # backend
cd web && npm install && npm run dev  # frontend (new terminal)

Update

curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash

Setup

Beginner mode: Guided onboarding walks new users through model selection, exchange connection, strategy setup, and first deployment.

Advanced mode:

  1. Configure AI model access
  2. Connect exchange credentials
  3. Build or import a strategy
  4. Create an AI trader profile
  5. Launch, monitor, and iterate from the dashboard

All configuration is available from the web UI at http://127.0.0.1:3000.


Deploy to server

HTTP deployment:

curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash
# Access via http://YOUR_IP:3000

HTTPS via Cloudflare:

  1. Add domain to Cloudflare (free plan)
  2. A record → your server IP (Proxied)
  3. SSL/TLS → Flexible
  4. Set TRANSPORT_ENCRYPTION=true in .env

Architecture

                              NOFX
    ┌─────────────────────────────────────────────────┐
    │                 Trading Terminal                 │
    │        React + TypeScript + TradingView          │
    │      US Stocks · Commodities · Forex · Crypto    │
    ├─────────────────────────────────────────────────┤
    │                  API Server (Go)                  │
    ├──────────────┬──────────────┬───────────────────┤
    │   Strategy    │   Telegram   │   Trader Runtime  │
    │    Engine     │    Agent     │   Risk Controls   │
    ├──────────────┴──────────────┴───────────────────┤
    │                 AI Model Layer                    │
    │    Unified provider access through Claw402        │
    │    Model routing · payment · execution support    │
    ├─────────────────────────────────────────────────┤
    │              Exchange Connectivity                │
    │ Binance · Bybit · OKX · Hyperliquid · Bitget     │
    │ KuCoin · Gate · Aster · Lighter                  │
    └─────────────────────────────────────────────────┘

Docs

Architecture System design and module index
Strategy Module Coin selection, AI prompts, execution
FAQ Common questions
Getting Started Deployment guide

Contributing

See Contributing Guide, Code of Conduct, and Security Policy.

Contributor Airdrop Program

NOFX tracks meaningful contributions and intends to reward contributors as the ecosystem grows. Priority issues carry higher reward weight.

Contribution Weight
Pinned Issue PRs ★★★★★★
Code (Merged PRs) ★★★★★
Bug Fixes ★★★★
Feature Ideas ★★★
Bug Reports ★★
Documentation ★★

Links

Website vergex.trade
Dashboard vergex.trade/explore
Telegram nofx_dev_community
Twitter @vergex_ai

Risk warning: Automated trading involves substantial risk. Use appropriate position sizing, understand each exchange venue, and do not trade funds you cannot afford to lose.


Sponsors

<img src="https://github.com/pjl914335852-ux.png" width="50" height="

Extension points exported contracts — how you extend this code

Trader (Interface)
Trader Unified trader interface Supports multiple trading platforms (Binance, Hyperliquid, etc.) [10 implementers]
trader/types/interface.go
ClientEmbedder (Interface)
ClientEmbedder is implemented by provider types that embed *Client, allowing generic extraction of the underlying base c [10 …
mcp/interface.go
Logger (Interface)
Logger interface (abstract dependency) Uses Printf-style method names for easy integration with mainstream logging libra [4 …
mcp/logger.go
ClientHooks (Interface)
ClientHooks is the dispatch interface used to implement per-provider polymorphism without Go's lack of virtual methods. [2 …
mcp/hooks.go
TelegramConfigStore (Interface)
TelegramConfigStore defines the interface for Telegram bot binding operations [1 implementers]
store/telegram_config.go
ClientOption (FuncType)
ClientOption client option function (Functional Options pattern)
mcp/options.go
X402SignFunc (FuncType)
X402SignFunc is a callback that signs an x402 payment header and returns the base64-encoded payment signature.
mcp/payment/x402.go
HookFunc (FuncType)
(no doc)
hook/hooks.go

Core symbols most depended-on inside this repo

Errorf
called by 1359
mcp/logger.go
Infof
called by 890
logger/logger.go
t
called by 589
web/src/i18n/translations.ts
Set
called by 151
api/exchange_account_state.go
Error
called by 141
hook/ip_hook.go
Warnf
called by 105
logger/logger.go
Error
called by 100
mcp/payment/claw402.go
Close
called by 93
store/store.go

Shape

Function 1,641
Method 1,205
Struct 365
Interface 190
TypeAlias 17
Class 6
FuncType 3

Languages

Go77%
TypeScript23%

Modules by API surface

provider/vergex/client.go61 symbols
web/src/pages/StrategyStudioPage.tsx59 symbols
kernel/engine.go57 symbols
store/strategy.go55 symbols
web/src/lib/api/data.ts39 symbols
trader/lighter/integration_test.go36 symbols
store/grid.go35 symbols
trader/types/interface.go34 symbols
mcp/mock_test.go34 symbols
web/src/components/common/HyperliquidWalletConnect.tsx32 symbols
web/src/components/trader/AITradersPage.tsx30 symbols
mcp/client.go30 symbols

Dependencies from manifests, versioned

github.com/ProjectZKM/Ziren/crates/go-runtime/zkvm_runtimev0.0.0-2025100102160 · 1×
github.com/adshao/go-binance/v2v2.8.9 · 1×
github.com/antihax/optionalv1.0.0 · 1×
github.com/armon/go-radixv1.0.0 · 1×
github.com/bits-and-blooms/bitsetv1.24.0 · 1×
github.com/bybit-exchange/bybit.go.apiv0.0.0-2025072721401 · 1×
github.com/cloudwego/base64xv0.1.6 · 1×
github.com/consensys/gnark-cryptov0.19.2 · 1×

For agents

$ claude mcp add nofx \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact