跳到内容

交易

仓位

仓位是您在单个结果上持有的净份额。本页介绍仓位的构成、如何平仓,以及结算如何将份额转化为 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 小时争议窗口期内仓位价值可能显示异常;请以窗口期结束后的数值为准。