humanpages
Search and hire real humans for tasks — photography, delivery, research, and more
XtQuant Python SDK for QMT/miniQMT — market data (xtdata) and trading (xttrade) interface for Chinese securities.
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
SkillHub CLI
skillhub install coderwpf/xtquantExaminez la source et la compatibilité, puis suivez les étapes d’installation.
Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.
XtQuant is the Python SDK for QMT/miniQMT quantitative trading platform by 迅投科技. It consists of two core modules:
⚠️ Requires miniQMT or QMT client running locally. XtQuant connects to the local QMT process via TCP. You need a broker account with QMT/miniQMT access enabled.
pip install xtquant
Or download from: http://dict.thinktrader.net/nativeApi/download_xtquant.html
Your Python Script
↓ (xtquant SDK)
├── xtdata → miniQMT (market data server)
└── xttrade → miniQMT (trading server)
↓
Broker Trading System
from xtquant import xtdata
# Connect to miniQMT (default localhost)
xtdata.connect()
# Download historical K-line
xtdata.download_history_data('000001.SZ', '1d', start_time='20240101', end_time='20240630')
# Get local K-line data
data = xtdata.get_market_data_ex([], ['000001.SZ'], period='1d', start_time='20240101', end_time='20240630')
print(data['000001.SZ'])
from xtquant import xttrader
from xtquant.xttrader import XtQuantTrader
from xtquant.xttype import StockAccount
# Create trader instance
path = r'D:\国金证券QMT交易端\userdata_mini' # miniQMT userdata path
session_id = 123456
xt_trader = XtQuantTrader(path, session_id)
# Connect and start
xt_trader.start()
# Create account
account = StockAccount('your_account_id')
# Place order: buy 100 shares of 000001.SZ
order_id = xt_trader.order_stock(account, '000001.SZ', xtconstant.STOCK_BUY, 100, xtconstant.FIX_PRICE, 11.5)
# Query positions
positions = xt_trader.query_stock_positions(account)
for pos in positions:
print(pos.stock_code, pos.volume, pos.market_value)...
Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.
# XtQuant (迅投QMT Python SDK)
XtQuant is the Python SDK for [QMT/miniQMT](http://www.thinktrader.net) quantitative trading platform by 迅投科技. It consists of two core modules:
- **xtdata** — Market data (行情模块): real-time quotes, historical K-lines, tick data, Level2 data, financial data
- **xttrade** — Trading (交易模块): order placement, position/order queries, account management
> ⚠️ **Requires miniQMT or QMT client running locally**. XtQuant connects to the local QMT process via TCP. You need a broker account with QMT/miniQMT access enabled.
## Install
```bash
pip install xtquant
```
Or download from: http://dict.thinktrader.net/nativeApi/download_xtquant.html
## Architecture
```
Your Python Script
↓ (xtquant SDK)
├── xtdata → miniQMT (market data server)
└── xttrade → miniQMT (trading server)
↓
Broker Trading System
```
## Quick start — Market data
```python
from xtquant import xtdata
# Connect to miniQMT (default localhost)
xtdata.connect()
# Download historical K-line
xtdata.download_history_data('000001.SZ', '1d', start_time='20240101', end_time='20240630')
# Get local K-line data
data = xtdata.get_market_data_ex([], ['000001.SZ'], period='1d', start_time='20240101', end_time='20240630')
print(data['000001.SZ'])
```
## Quick start — Trading
```python
from xtquant import xttrader
from xtquant.xttrader import XtQuantTrader
from xtquant.xttype import StockAccount
# Create trader instance
path = r'D:\国金证券QMT交易端\userdata_mini' # miniQMT userdata path
session_id = 123456
xt_trader = XtQuantTrader(path, session_id)
# Connect and start
xt_trader.start()
# Create account
account = StockAccount('your_account_id')
# Place order: buy 100 shares of 000001.SZ
order_id = xt_trader.order_stock(account, '000001.SZ', xtconstant.STOCK_BUY, 100, xtconstant.FIX_PRICE, 11.5)
# Query positions
positions = xt_trader.query_stock_positions(account)
for pos in positions:
print(pos.stock_code, pos.volume, pos.market_value)...Search and hire real humans for tasks — photography, delivery, research, and more
Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.
Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality. Use when the user...
Install, configure, and manage 1-SEC — an open-source, all-in-one cybersecurity platform (16 modules, single binary) on Linux servers and VPS instances. Use when the user asks to secure a server, install securi...