본문으로 건너뛰기
cccskills
무료GitHub에 공개

honeycomb-short-selling

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

실행 점수 미검증

설치 방법 보기

포함된 파일(2)

  • SKILL.md4.4 KB
  • references/SHORT_MECHANICS.md2.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

HoneyComb Short Selling

Short a job position ticker to profit when its price drops. The exchange uses virtual shorting — no borrowing from other users. You lock HC as collateral, the system creates synthetic shares and sells them into the AMM.

All endpoints require Authorization: Bearer <token>.

Open a Short Position

Lock HC as collateral to open a short position.

POST /api/short/open
Content-Type: application/json

{
  "user_id": 0,
  "ticker_id": 1,
  "collateral": "500",
  "expected_price": "1.0100"
}
  • collateral: HC to lock (minimum 10 HC)
  • Leverage is fixed at 1x: shares = collateral / spot_price
  • expected_price: Slippage protection (same as buy/sell)

Response:

{
  "position_id": 42,
  "shares": "495.05",
  "entry_price": "1.0100",
  "collateral_hc": "499.97",
  "liquidation_price": "1.8000"
}
  • collateral_hc: The actual collateral stored (equals HC extracted from the virtual sell, not your input — they differ by slippage)
  • liquidation_price: If the ticker reaches this price, your position is auto-liquidated

Example:

PRICE=$(curl -s https://api-staging.open-hive.com/api/ticker/1 | jq -r '.last_price')
curl -s -X POST https://api-staging.open-hive.com/api/short/open \
  -H "Authorization: Bearer $TOKEN" \
  -H 'Content-Type: application/json' \
  -d "{\"user_id\":0,\"ticker_id\":1,\"collateral\":\"500\",\"expected_price\":\"$PRICE\"}"

Close a Short Position (Full)

Close the entire position. The system buys back shares from the AMM and returns your collateral ± PnL.

POST /api/short/close
Content-Type: application/json

{
  "user_id": 0,
  "position_id": 42
}

Response:

{
  "position_id": 42,
  "pnl": "12.50",
  "returned_hc": "512.47"
}
  • pnl: Positive = profit (price dropped), negative = loss (price rose)
  • returned_hc: HC returned to your available balance. Clamped to 0 (max loss = collateral)

Partial Close

Close part of a position, keeping the rest open.

POST /api/short/partial-close
Content-Type: application/json

{
  "user_id": 0,
  "position_id": 42,
  "shares_to_close": "200"
}

If shares_to_close >= total_shares, it becomes a full close.

Withdraw Excess Margin

If your short is profitable, withdraw some of the excess margin without closing.

POST /api/short/withdraw-margin
Content-Type: application/json

{
  "user_id": 0,
  "position_id": 42,
  "amount": "50"
}

Fails if the withdrawal would push your position below the maintenance margin (20%).

PnL Calculation

See references/SHORT_MECHANICS.md for the full math.

Quick summary:

  • PnL = collateral_hc - buyback_cost
  • buyback_cost = HC needed to remove your shares from the AMM
  • If price dropped: buyback is cheap → positive PnL
  • If price rose: buyback is expensive → negative PnL
  • Max loss: your entire collateral

Liquidation

A background engine checks all open shorts every 5 seconds. If the current price reaches your liquidation_price, the position is force-closed with a 1% liquidation fee.

Maintenance margin: 20%. Liquidation triggers when your position equity falls below 20% of collateral.

Liquidation price formula (1x leverage):

liq_price = entry_price × 1.8

Check Open Positions

curl -s https://api-staging.open-hive.com/api/user/me/positions \
  -H "Authorization: Bearer $TOKEN" | jq '.[] | select(.status == "OPEN")'

Trading Pattern: Short

  1. Identify a ticker you believe will decline (check negative news, high automation score)
  2. Get current price: GET /api/ticker/{id}
  3. Open short with desired collateral
  4. Monitor: check current_price vs entry_price in positions endpoint
  5. Close when target PnL reached, or before liquidation price

Buy-Closes-Short Rule

If you have an open short on ticker X and you place a buy on the same ticker, the buy auto-closes your short (partially or fully) instead of creating a conflicting long position. The engine handles this transparently.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

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일 업데이트

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

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의 스킬 모두 보기

이 스킬의 문제 신고