跳到內容

交易

持倉

持倉是您在單個結果上持有的淨份額。本頁介紹持倉的樣貌、如何平倉,以及清算如何將份額轉換為 USDC。

持倉追蹤方式

持倉為淨值——在同一結果上買入 100 份並賣出 30 份後,持倉為 70 份。

  • 每位使用者每個結果一個持倉——沒有獨立的多空會計。
  • 使用所有成交的加權平均值追蹤平均買入價格。
  • P&L is computed client-side from cost_basis and the current mid — the positions endpoint exposes avg_buy_price (cents, 0–100) and cost_basis (USDC dollars), not pre-computed P&L fields.

持倉欄位

Every position response carries these fields. cost_basis is in USDC dollars at the API boundary. avg_buy_price is in cents on a 0–100 scale (e.g. 50 = $0.50). shares is an integer count.

欄位含義
market_id 此持倉所屬的市場。
outcome_id 您持有份額的市場結果。
shares 淨份額數——買入減去賣出。
avg_buy_price Weighted average buy price across all open shares, in cents (0–100; e.g. 50 = $0.50). Server converts micro-dollars → cents at the API boundary.
cost_basis Total cost basis in USDC dollars. P&L must be computed client-side from cost_basis and the current market mid — no micro-dollar conversion needed at the API boundary.

裁決前平倉

在市場為裁決而暫停之前,您可以隨時賣回委託簿。

  1. 讀取當前市場價格和深度。
  2. 在最佳買價或以下下賣出委託以立即成交,或在買價以上靜止限價委託。
  3. Verify the fill in the next /me/positions response — compute realised P&L from cost_basis and the fill proceeds (the endpoint does not return realised_pnl).

清算

市場裁決時,獲勝份額每份支付 1 USDC 至您的餘額;落敗份額支付零。入帳是原子性的——您在市場關閉的瞬間看到它。

注意爭議視窗

即使裁決已獲批准,在有未決異議期間清算仍處於暫停狀態。在 2 小時爭議視窗期間,持倉值可能看起來異常;請信任視窗結束後的數字。