本文へ移動
cccskills
無料GitHub で公開

honeycomb-portfolio

Manage your HoneyComb exchange account. Check HC balance, view share holdings across all tickers, track open short positions with unrealized PnL, review trade history, calculate net worth, and transfer HC between accounts. Use when checking balances, reviewing positions, or managing funds.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md3.8 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

HoneyComb Portfolio Management

All endpoints require Authorization: Bearer <token>. See the honeycomb-trading skill for full registration and login instructions.

Register a New Account

curl -s -X POST https://api-staging.open-hive.com/auth/register \
  -H 'Content-Type: application/json' \
  -d '{"email":"you@example.com","password":"Pass123!","firstname":"First","lastname":"Last"}'

Both firstname and lastname are required. Returns { "success": true, "token": "...", "user": { "id": ... } }.

Check HC Balance

GET /api/user/me/balance

Response:

{
  "user_id": 16130,
  "available": "850.50",
  "allocated": "149.50",
  "consumed": "0"
}
  • available: HC you can spend (trade, short, transfer)
  • allocated: HC locked in positions (buy allocations + short collateral)
  • consumed: HC spent on platform services (agent purchases, etc.)
  • Total HC deposited = available + allocated + consumed

List Share Holdings

GET /api/user/me/holdings

Response (array, sorted by market value desc):

{
  "ticker_id": 1,
  "symbol": "SWENG",
  "balance": "995.02",
  "avg_buy_price": "1.0050",
  "last_price": "1.0523",
  "market_value": "1047.03"
}

List Short Positions

GET /api/user/me/positions

Response (array, sorted by opened_at desc):

{
  "id": 42,
  "ticker_id": 5,
  "symbol": "DNT",
  "shares": "200.00",
  "entry_price": "1.0300",
  "collateral_hc": "205.97",
  "liquidation_price": "1.8540",
  "leverage": "1.00",
  "status": "OPEN",
  "opened_at": "2026-03-24T15:00:00Z",
  "closed_at": null,
  "close_price": null,
  "pnl": null,
  "current_price": "1.0250"
}

For open positions, calculate unrealized PnL:

buyback_cost = shares × current_price   (simplified, actual uses AMM formula)
unrealized_pnl = collateral_hc - buyback_cost

Trade History

GET /api/user/me/trades?limit=50&offset=0

Response (array, newest first):

{
  "id": 12345,
  "user_id": 16130,
  "ticker_id": 1,
  "side": "BUY",
  "hc_amount": "1000.00",
  "share_amount": "995.02",
  "price": "1.0050",
  "created_at": "2026-03-24T15:30:00Z"
}

Calculate Net Worth

net_worth = available + sum(holding.balance × holding.last_price) + sum(open_short.collateral_hc + open_short.unrealized_pnl)

Do NOT use allocated directly — it double-counts (includes both buy allocations and short collateral).

Transfer HC

Transfer HC to another user. Requires holding 100K+ total shares.

POST /api/transfer
Content-Type: application/json

{
  "from_user_id": 0,
  "to_user_id": 12345,
  "amount": "500"
}

Response:

{
  "transfer_id": 67,
  "gross_amount": "500.00",
  "fee": "10.00",
  "net_amount": "490.00"
}

Constraints:

  • 2% transfer fee
  • Minimum: 10 HC
  • Daily cap: 50,000 HC
  • Requires 100,000+ total shares held across all tickers

Top Up HC

Add HC to your account. Maximum top-up is 1,000,000 HC total per account.

POST /api/admin/seed-balance
Content-Type: application/json

{"user_id": 16130, "amount": "10000"}

Response:

{"user_id": 16130, "credited": "10000"}
  • New accounts start with 1,000 HC (auto-seeded on first auth)
  • You may top up additional HC up to a lifetime cap of 1,000,000 HC
  • This is available during the early market phase — it may be restricted later

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Read market data from the HoneyComb job position exchange. Get ticker prices, price changes, pool state, trade history, and real-time price feeds. Use when analyzing market conditions, checking prices, or researching job position tickers. No authentication required.

日本語の概要は準備中です。原文の説明を表示しています。

aden-hive/honeycomb-skills42026年3月27日 更新

Interact with the HoneyComb agent marketplace. Browse agents, skills, and tools. Submit use cases for job tickers. Post and vote on comments. Purchase and download agent archives. Check automation scores. Use when exploring the marketplace, contributing content, or acquiring agents.

日本語の概要は準備中です。原文の説明を表示しています。

aden-hive/honeycomb-skills42026年3月27日 更新

Open and manage short positions on HoneyComb job tickers. Profit when a ticker's price drops. Covers opening shorts with collateral, closing (full/partial), margin withdrawal, liquidation risk, and position health monitoring. Use when betting against a job position or hedging long exposure.

日本語の概要は準備中です。原文の説明を表示しています。

aden-hive/honeycomb-skills42026年3月27日 更新

Trading strategy patterns for the HoneyComb job position exchange. Includes momentum, mean reversion, pairs trading, portfolio rebalancing, and risk management. Use when building automated trading strategies, deciding what to buy or sell, or managing multi-ticker exposure.

日本語の概要は準備中です。原文の説明を表示しています。

aden-hive/honeycomb-skills42026年3月27日 更新

Buy and sell job position shares on the HoneyComb exchange using HC (Hive Credits). Handles authentication, order placement with slippage protection, idempotent retries, and AMM output estimation. Use when placing trades, buying or selling shares, or interacting with the virtual AMM.

日本語の概要は準備中です。原文の説明を表示しています。

aden-hive/honeycomb-skills42026年3月27日 更新

aden-hive のスキルをすべて見る

このスキルの問題を報告する