zhu1090093659/dsh-trading--packages-connector-binance15

@dsh-trading/connector-binance

用于 dsh-trading 的币安(Binance)市场连接器插件:通过 REST 和 WebSocket 提供公共市场数据,实现 @dsh-trading/api 契约

AI 分析

提供币安交易所的公共市场数据接入服务。适合需要获取加密货币实时行情与 K 线数据的量化交易用户,支持 REST 和 WebSocket 协议。

包名
@dsh-trading/connector-binance
版本
0.1.0
许可证
NOASSERTION
最近更新
2026年9月3日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

dsh-trading

dsh-trading — Your next trading terminal, and your AI Agent

Your next trading terminal can also be your AI agent. No chumps for the slaughter, just everyday traders.

DSH Baseline Markets Connectors License

dsh-trading is an agent-native trading terminal built on DeepSeek Harness (DSH). It pairs the three-column workflow of professional trading software — watchlist, interactive chart, order book — with an AI agent that sees what you see, works from institutional-grade playbooks, and can route real orders through explicit, human-gated controls.

Crypto, US equities, China A-shares, and Hong Kong stocks. One terminal. One agent. Nineteen connectors. Zero vendor lock-in: every key stays on your machine.

dsh-trading terminal — watchlist, chart stage with indicators, order book and derivatives panel


Why agent-native?

Most "AI trading" tools bolt a chat box onto a chart. dsh-trading inverts the relationship: the agent is a first-class citizen of the terminal, and the terminal is the agent's body.

  • The agent sees your screen. One click on Send to Agent packages the symbol you're watching — live quote, current candle, active indicators, and a screenshot of the chart itself — straight into the conversation. No copy-pasting numbers into a chatbot.

Send to Agent — chart snapshot and quote context injected into the composer

  • The agent has hands — gated ones. Market data, order books, derivatives positioning, news, and order placement are native tools. Orders default to dry-run simulation; live routing requires an explicit liveTrading: true opt-in and an interactive approval for every order. In headless environments it fails closed. Nothing executes behind your back.

  • The agent went to school. Domain knowledge ships as bundled skills, not vibes: pre-trade risk checklists for every market (crypto · US · CN · HK), a five-step crypto instrument analysis framework, a full company analysis playbook, and a trading journal discipline that dual-tracks what the agent did versus what you did, append-only and auditable.

  • One process, four trading desks. Session-level presets (crypto-trader, us-trader, cn-trader, hk-trader) give each market its own tools, persona, and memory — isolated per session, coexisting in a single DSH process.

A terminal that trades like software, not a toy

  • Center-stage charting. Lightweight Charts v5 with multi-timeframe switching (5m to weekly), MA / EMA / BOLL / MACD / RSI / KDJ / SuperTrend with visual parameter editing, strategy signal markers, knowledge-event pins, and drag-to-measure range statistics.
  • Real market depth. Live order book with buy/sell pressure bars, tick-by-tick trades, and a derivatives cockpit covering open interest, funding rates with settlement countdown, long/short ratios, and taker flow, with one-click fund-flow analysis handed to the agent.
  • Cross-market watchlist. Crypto perps next to AAPL next to 牧原股份, with sparklines and real-time quotes. Your whole risk universe in one dock.

One terminal, every market

MarketConnectors
CryptoBinance, OKX (Paper/Live), Bybit, CCXT (100+ exchanges)
US EquitiesYahoo Finance, Alpaca (Paper/Live), FMP, Finnhub, Polygon.io, Interactive Brokers
China A-SharesTencent Finance, Eastmoney, Tushare Pro, AkShare, MiniQMT broker gateway
Hong KongTencent HK, Longbridge OpenAPI, Futu OpenD, Tiger OpenAPI

Hot-swappable data planes. Settings → Trading routes each market to any installed provider; the quote panel re-routes on save, agent sessions pick it up on the next conversation — no restarts, no config archaeology.

Provider routing — per-market exchange selection with BYOK credential slots

Safety and privacy, by construction

  1. Dry-run by default. Every order/cancel tool simulates unless you explicitly flip liveTrading: true.
  2. Human gate on every live order. DSH's approval layer intercepts live routing; headless mode fails closed.
  3. BYOK. API keys live in your environment variables or local config. Nothing is bundled, relayed, or uploaded.
  4. No data re-distribution. Market data is fetched for you, under each provider's ToS; nothing is cached for resale or sharing.

Quick start

# Install into a dedicated DSH profile (pick your markets)
dsh plugin --profile trading-web add @dsh-trading/base @dsh-trading/crypto @dsh-trading/us
# …or all four markets
dsh plugin --profile trading-web add @dsh-trading/base @dsh-trading/crypto @dsh-trading/us @dsh-trading/cn @dsh-trading/hk

# Launch the terminal
dsh --profile trading-web

Then open the printed URL: watchlist on the left, charts in the middle, your agent on the right. New conversation → pick a market preset → ask it what it sees.

How it's built

A Cordis microkernel ecosystem, layered so markets compose instead of collide:

@dsh-trading/base          ← core: account/order/quote contracts, approval gate, 3-column GUI shell
├── @dsh-trading/crypto    ← Binance / OKX / Bybit / CCXT + skills + preset
├── @dsh-trading/us        ← Yahoo / Alpaca / FMP / Finnhub / Polygon / IBKR + skills + preset
├── @dsh-trading/cn        ← Tencent / Eastmoney / Tushare / AkShare / MiniQMT + skills + preset
└── @dsh-trading/hk        ← Tencent HK / Longbridge / Futu / Tiger + skills + preset

Six invariants keep the ecosystem honest: insert-only bundle patches · knowledge lives in skills, not code · dual-track order gates · shared code earns its place in base (≥2 markets) · zero data re-distribution · the GUI shell is replaceable, the data contracts are not.

Data sources & terms

MarketDefault sourceBoundary
USYahoo Finance / AlpacaYahoo public endpoint (individual use); Alpaca official Paper/Live APIs
CNTencent Finance / Eastmoney / HiThink (Fuyao)Public endpoints; HiThink REST API for fundamentals & auction data; live execution via local MiniQMT gateway
HKTencent HK / LongbridgePublic endpoint; licensed broker OpenAPI/Gateway for execution
CryptoBinance / OKXOfficial APIs; OKX paper trading with your own keys
Crypto fundamentalsCoinCapPublic REST, individual use only — no redistribution, no bulk scraping

Documentation

Friendly Links

License

PolyForm Noncommercial 1.0.0 — free for personal study, research, and noncommercial use. Commercial use requires prior written authorization: open a GitHub issue or contact .

本项目采用 PolyForm Noncommercial 1.0.0 许可:非商业用途免费;商业用途须事先取得书面授权(chunlinzhu666@gmail.com 或 GitHub Issue)。