Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DXT — POC

A minimal clone of Liquid Co-Invest: an MCP server that turns Claude (or ChatGPT) into a trading co-pilot. It gives the model live market data and a paper-trading engine, all through public APIs that need no keys.

The model does the analysis and idea generation. This server only does two things: supply data and execute (paper) fills — exactly the split Liquid uses.

What's wired up

Layer Source Auth needed
Crypto perps Hyperliquid info API none
US stocks Yahoo Finance chart API none
Execution Local paper engine (JSON file) none
Interface MCP server (stdio)

State persists to ~/.dxt/portfolio.json. Starts at $100,000 paper cash.

Tools the model can call

  • get_crypto_quote(symbol) — mark price, 24h change, funding rate, open interest
  • get_crypto_movers(limit) — top perps by 24h volume
  • get_stock_quote(symbol) — price, day range, % change, volume
  • place_trade(symbol, asset_type, side, qty, confirm) — two-step confirm flow
  • get_portfolio() — cash, positions valued at live prices, unrealized PnL, equity
  • get_trade_history(limit)
  • reset_portfolio()

Setup

npm install
npm run build

Connect to Claude Desktop

Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Linux: ~/.config/Claude/):

{
  "mcpServers": {
    "dxt": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/DXT/dist/index.js"]
    }
  }
}

Restart Claude Desktop. Then try:

"What's BTC doing right now, and how does its funding compare to ETH?" "Buy me 0.25 BTC and 10 shares of NVDA in paper trading." "Show my portfolio."

Inspect locally (no Claude needed)

npm run inspect    # opens the MCP Inspector UI

How this maps to the real Liquid

Liquid routes real orders to DEXs (Hyperliquid for crypto perps, Ostium for stocks/commodities/FX, Lighter for more crypto) via a non-custodial wallet. This POC swaps that execution layer for a local paper engine. To go live you'd replace src/portfolio.ts with the Hyperliquid / Ostium SDKs and add wallet signing — the data layer and MCP interface stay the same.

Files

src/
  index.ts        MCP server + tool definitions
  datasources.ts  Hyperliquid + Yahoo Finance fetchers
  portfolio.ts    paper-trading engine (positions, PnL, persistence)

About

Trading co-pilot: MCP server + dashboard for portfolio tracking

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages