การเทรด
ตำแหน่ง
ตำแหน่งคือหุ้นสุทธิที่คุณถือในผลลัพธ์เดียว หน้านี้ครอบคลุมลักษณะของตำแหน่ง วิธีปิด และวิธีที่การชำระบัญชีเปลี่ยนหุ้นเป็น USDC
วิธีติดตามตำแหน่ง
ตำแหน่งเป็นสุทธิ — ซื้อ 100 และขาย 30 ในผลลัพธ์เดียวกันเหลือตำแหน่ง 70 หุ้น
- หนึ่งตำแหน่งต่อผลลัพธ์ต่อผู้ใช้ — ไม่มีการบัญชี long/short แยก
- ราคาซื้อเฉลี่ยติดตามโดยใช้ค่าเฉลี่ยถ่วงน้ำหนักข้าม fill
- 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. |
ปิดตำแหน่งก่อนการตัดสิน
คุณสามารถขายกลับเข้าสมุดคำสั่งซื้อขายได้ตลอดเวลาก่อนที่ตลาดจะหยุดเพื่อการตัดสิน
- อ่านราคาตลาดปัจจุบันและความลึก
- ส่งออร์เดอร์ขายที่หรือต่ำกว่า best bid สำหรับ fill ทันที หรือเหนือ bid เพื่อรอ limit
- 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 เข้ายอดเงินของคุณ หุ้นที่แพ้จ่ายศูนย์ การเครดิตเป็นแบบ atomic — คุณเห็นทันทีที่ตลาดปิด
ระวังช่วงเวลาโต้แย้ง
แม้หลังจากการตัดสินได้รับการอนุมัติ การชำระบัญชีหยุดชั่วคราวขณะมีการโต้แย้งที่เปิดอยู่ ค่าตำแหน่งอาจดูแปลกในช่วง 2 ชั่วโมงของการโต้แย้ง ให้ไว้ใจตัวเลขหลังช่วงนั้น