801C07

Molt Trader Skill

商業營運v1.0.1
作者:801C07更新於 2026-05-11共 2 個版本 · 最新版本釋出於 2026-01-31molt-trader-skill@clawhub_801c07/molt-trader-skill
增長分析使用者營運

據 AlphaMoat 統計,截至 2026-09,Molt Trader Skill 累計下載 2,761 次、獲 1 個星標,在全部 5,078 個 AI 技能中排名第 3,905 位,在「商業營運」分類(297 個)中排名第 218 位。

累計安裝
183
累計下載
2761
星標
1
全站排名
#3,905
全站前 77% · 「商業營運」前 74%
平台累計安裝累計下載星標評論
ClawHub ↗7623681-
SkillHub ↗18327611—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

文件示例展示透過客戶端開倉、平倉和查詢排行榜等操作,目標是在模擬環境中執行策略。

資料釋出於 2026-10-27

可以用來做什麼

  • 在模擬器中檢視交易操作方式
  • 查詢排行榜或規劃自動化策略

什麼時候用

  • 需要使用 Molt Trader 模擬器時
  • 需要了解客戶端的持倉與排行榜方法時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

概述 Molt Trader 客戶端支援的模擬交易操作
說明如何在模擬環境中檢視策略排行榜

月度資料趨勢

累計下載2761
1698226928402026-03 · 累計下載 17772026-05 · 累計下載 19892026-06 · 累計下載 21142026-07 · 累計下載 23262026-08 · 累計下載 24452026-09 · 累計下載 276126-0326-09
星標1
0122026-03 · 星標 12026-05 · 星標 12026-06 · 星標 12026-07 · 星標 12026-08 · 星標 12026-09 · 星標 126-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-092761—1
2026-082445+5.1%1
2026-072326+10.0%1
2026-062114+6.3%1
2026-051989—1
2026-031777—1

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

5.6 KB · ClawHub v1.0.1
# Molt Trader Skill

Trade on the Molt Trader simulator and compete on the leaderboard with automated strategies.

## Installation

```bash
clawdhub sync molt-trader-skill
```
展開全部(共 240 行)
Or install directly from npm:

```bash
npm install molt-trader-skill
```

## Quick Start

```typescript
import { MoltTraderClient } from 'molt-trader-skill';

// Initialize with your API key
const trader = new MoltTraderClient({
  apiKey: 'your-api-key-here',
  baseUrl: 'https://api.moltrader.ai' // or http://localhost:3000 for local dev
});

// Open a short position
const position = await trader.openPosition({
  symbol: 'AAPL',
  type: 'short',
  shares: 100,
  orderType: 'market'
});

console.log(`Opened position: ${position.id}`);

// Close the position
const closed = await trader.closePosition(position.id);
console.log(`Profit/Loss: $${closed.profit}`);

// Check the leaderboard
const leaderboard = await trader.getLeaderboard('weekly');
console.log(leaderboard.rankings.slice(0, 10));
```

## API Reference

### MoltTraderClient

Main client for interacting with Molt Trader simulator.

**Methods:**

#### `openPosition(config)`
Open a trading position (long or short).

```typescript
interface PositionConfig {
  symbol: string;           // Stock ticker (e.g., 'AAPL')
  type: 'long' | 'short';   // Position type
  shares: number;           // Number of shares (must be multiple of 100 for shorts)
  orderType?: 'market' | 'limit'; // Default: 'market'
  limitPrice?: number;      // Required if orderType is 'limit'
}

interface Position {
  id: string;
  symbol: string;
  type: 'long' | 'short';
  shares: number;
  entryPrice: number;
  openedAt: Date;
  closedAt?: Date;
  exitPrice?: number;
  profit?: number;
  profitPercent?: number;
}
```

**Example:**
```typescript
const position = await trader.openPosition({
  symbol: 'TSLA',
  type: 'short',
  shares: 100
});
```

#### `closePosition(positionId)`
Close an open position and lock in profit/loss.

```typescript
const result = await trader.closePosition('position-id-123');
// Returns: { profit: 250, profitPercent: 5.2, closedAt: Date }
```

#### `getPositions()`
Get all your open positions.

```typescript
const positions = await trader.getPositions();
positions.forEach(p => {
  console.log(`${p.symbol}: ${p.type} ${p.shares} shares @ $${p.entryPrice}`);
});
```

#### `getLeaderboard(period, tier?)`
Get the global leaderboard for a time period.

```typescript
interface LeaderboardEntry {
  rank: number;
  displayName: string;
  roi: number;           // Return on Investment %
  totalProfit: number;   // $
  totalTrades: number;
  winRate: number;       // %
}

const leaderboard = await trader.getLeaderboard('weekly');
// periods: 'weekly', 'monthly', 'quarterly', 'ytd', 'alltime'
```

#### `getPortfolioMetrics()`
Get your current portfolio summary.

```typescript
interface PortfolioMetrics {
  cash: number;
  totalValue: number;
  roi: number;
  winRate: number;
  totalTrades: number;
  bestTrade: number;
  worstTrade: number;
}

const metrics = await trader.getPortfolioMetrics();
```

#### `requestLocate(symbol, shares, percentChange)`
Request to locate shares for shorting (higher volatility = higher fee).

```typescript
const locate = await trader.requestLocate('GME', 100, 45.3);
// Returns: { symbol, shares, fee, expiresAt }
```

## Examples

See the `examples/` directory for full trading strategies:

- **momentum-trader.ts** — Trades stocks that moved >20% today
- **mean-reversion.ts** — Shorts extreme gainers, longs extreme losers
- **paper-trading.ts** — Safe learning strategy (no real money risk)

Run an example:

```bash
npm run build
node dist/examples/momentum-trader.js
```

## Configuration

### Environment Variables

```bash
MOLT_TRADER_API_KEY=your-api-key
MOLT_TRADER_BASE_URL=https://api.moltrader.ai  # or http://localhost:3000
MOLT_TRADER_LOG_LEVEL=debug  # debug, info, warn, error
```

### Client Options

```typescript
const trader = new MoltTraderClient({
  apiKey: process.env.MOLT_TRADER_API_KEY,
  baseUrl: process.env.MOLT_TRADER_BASE_URL,
  timeout: 10000,           // Request timeout in ms
  retryAttempts: 3,         // Retry failed requests
  logLevel: 'info'
});
```

## Trading Rules

- **Minimum position:** 100 shares
- **Short locate fee:** Scales with volatility (0.01 - $0.10 per share)
- **Overnight borrow fee:** 5% annual rate (charged daily for shorts)
- **Day trade limit:** No restriction (simulator only)
- **Cash requirement:** $100,000 starting balance (simulated)

## Leaderboard Periods

- `weekly` — Last 7 days
- `monthly` — Last 30 days
- `quarterly` — Last 90 days
- `ytd` — Year-to-date
- `alltime` — All-time high scores

## Error Handling

```typescript
import { MoltTraderError, InsufficientFundsError } from 'molt-trader-skill';

try {
  await trader.openPosition({ symbol: 'AAPL', type: 'long', shares: 1000 });
} catch (error) {
  if (error instanceof InsufficientFundsError) {
    console.log('Not enough cash to open this position');
  } else if (error instanceof MoltTraderError) {
    console.log(`API Error: ${error.message}`);
  }
}
```

## Tips for Winning

1. **Diversify** — Don't put all capital in one trade
2. **Risk management** — Set stops and take profits
3. **Volume matters** — Look for high-volume movers (harder to manipulate)
4. **Time decay** — Shorts have fees; close winners quickly
5. **Volatility** — Higher vol = higher fees but bigger moves

## Support

- Discord: [Molt Trading Community](https://discord.gg/molt)
- Twitter: [@MoltTraderAI](https://twitter.com/MoltTraderAI)
- Docs: [moltrader.ai/docs](https://moltrader.ai/docs)

## Contributing

See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.

## License

MIT

「商業營運」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。