HFT Elite

委託類型

在 Polymarket 的 CLOB 之上疊加每一種自營選擇權交易員所期望的訂單型別。Stop、Bracket、OCO、Trailing-stop、跨市場條件觸發、TWAP 與 iceberg——配齊 TIF 旗標(GTC、GTD、IOC、FOK)。

Polymarket 為何需要合成訂單型別

Polymarket 的 CLOB 僅暴露兩種原語:market 與 limit。原生既無 Stop、亦無 Bracket、OCO 或 Trailing-stop。對於跟單交易或任何積極部位管理而言,這一缺口迫使您要麼盯盤,要麼接受某個部位可能跌至零。Pro Workstation 透過伺服器側條件訂單填補這一缺口:一旦觸發器觸發,便透過與手動單據相同的執行路徑提交底層 CLOB 訂單。

每張 workstation 訂單均使用官方 polymarket_client_sdk_v2 在客戶端簽名,並附帶 V2 builder code 進行歸因後提交。PolyZig 從不託管您的資金、從不持有您的私鑰、亦從不為您的訂單重新簽名——條件訂單監聽器只是一個複用您已認證工作階段的自動化觸發器。

Stop 與 Stop-limit

Stop 在價格穿越您的觸發價時送出市價單。Stop-limit 則按您設定的限價送出 limit 訂單,在快速行情下以可能不成交為代價獲得滑價控制。兩者在任一方向均適用:sell stop 在價格跌破觸發價時觸發;buy stop 在價格漲破觸發價時觸發。

side=sell, trigger_price=0.45  →  fires when price ≤ 0.45
side=buy,  trigger_price=0.55  →  fires when price ≥ 0.55

Trailing-stop

Trailing-stop 將其觸發價重新錨定在已觀察價格的執行峰值(賣方)或谷值(買方)。trail offset 定義了價格從該峰值回撤多少後觸發。在讓贏利部位繼續執行的同時仍封頂往返回撤——workstation 在每個訂單監控任務內的記憶體中追蹤峰值。

sell trailing-stop, trail_offset=0.05
  → peak rises to 0.70, trigger sits at 0.65
  → if price drops to 0.65, stop fires

OCO 與 Bracket——原子化、互為參照的連結

OCO 單據是兩條腿,於成交時互相取消:通常一條 stop loss 與一條 take profit。Bracket 是包覆既有部位的 OCO 模式。Workstation 在單一資料庫交易中建立兩條腿,並寫入互為參照的 linked_order_id,因此先觸發的那一腿會取消其手足——絕不會出現半取消的 Bracket 場景。

取消的範圍依使用者隔離:即便惡意連結被以某種方式注入,監聽器也只會取消與觸發訂單同屬一個使用者的手足訂單。

跨市場條件觸發

條件訂單監視一個市場,對另一個市場採取行動。例如:「若 Trump-2024 YES 跌破 $0.40,則在與 Trump-loss 相關的腿上送出 buy。」Workstation 與 Stop 同樣持久化此類訂單;跨市場評估器與多腿單據構建器一併接入。

TWAP 與 iceberg(藍圖)

在流動性較薄的 Polymarket 配對上,即便數千美元也可能撼動盤口。計畫:TWAP 將大單切分為 N 筆子單於可設定視窗內執行;iceberg 僅向盘口展示可見切片,並在可見部分成交後補單,隱藏總規模。兩者均在流動性不足的市場上降低市場衝擊滑價。本版本均未實作——它們屬於 Phase 4 執行策略切片,待條件訂單監聽器暴露真正的 CLOB executor 之後。

Time-in-force 旗標

當前每張 limit 單據均以 GTC(good-till-cancelled)提交,因為 polymarket_client_sdk_v2 在訂單構建器中暴露的就是該項。GTD、IOC 與 FOK 屬於 Phase 1b 的 TIF 切片——一旦 SDK 上游分支落實該旗標(或 workstation 貢獻),單據 UI 將暴露 TIF 下拉選單,並由訂單 API 在 PlaceOrderRequest 中擴充 time_in_force + expires_at。在此之前,可透過提交一張緊湊 limit 並在下次 poller 輪詢中取消來近似 IOC 行為。

風險定義化下單規模

訂單單據包含「max loss」助手。輸入您願意承擔的美元金額以及進場價 + stop 價,單據將自動計算把您的損失精確封頂在該數字的下單規模。這與選擇權交易員對 vertical 進行下單規模設定時使用的原語相同:定位您的下行而非名目價值。

size = max_loss / |entry_price − stop_price|
i

Live today: Market & Limit orders. Coming soon: Stop / Stop-limit / Trailing stop / OCO / Bracket / Conditional / TWAP / Iceberg — the production CLOB executor adapter is the remaining piece. The status column on the matrix below reflects the real deployment state; HFT subscribers get the rest on launch without re-upgrading.

Reference matrix

Every order type at a glance

TypeStatusTrigger conditionFills atBest for
MarketLiveImmediateBest available depthSpeed > slippage
LimitLiveImmediateYour limit price or restsSlippage control
StopComing soonSell: price ≤ trigger · Buy: price ≥ triggerMarket once triggeredCap downside on a position
Stop-limitComing soonSame as StopLimit once triggeredStops with slippage control
Trailing stopComing soonAnchored to running peak/troughMarket once trail offset crossedLet winners run with capped giveback
OCOComing soonEither leg fires → cancels siblingPer leg type (stop/limit)Bracket a position with both ends
BracketComing soonOCO of take-profit + stopPer leg typeWrap an open position
Conditional (cross-market)Coming soonWatches a different marketMarket or limit on the targetPair / hedge automation
TWAPComing soonContinuous over a windowSliced child ordersReduce market impact on thin pairs
IcebergComing soonShow visible slice; refill on fillPer visible sliceHide total size from the book

Time-in-force

TIF flags — when each one wins

TIFMeaningWhen to use
GTCGood-til-cancelDefault for limits you intend to leave on the book
GTDGood-til-dateAuto-expire near a known event window
IOCImmediate-or-cancelTake whatever fills now, drop the rest
FOKFill-or-killAll-or-none atomic execution

Worked example

Bracket on a long YES at $0.42

Open 100 shares YES at $0.42. Cap downside at the cost of 6¢ per share, ride upside to a 12¢ take-profit. Created in one ticket with reciprocal links — whichever leg fires cancels the sibling.

POSITION  long 100 YES @ 0.42
BRACKET   take-profit  → sell @ 0.54   (bracket_target)
          stop loss   → sell @ 0.36   (bracket_stop)
RESULT    max gain 12¢ × 100  =  +$12.00
          max loss  6¢ × 100  =  − $6.00
          R:R 2.0

相關 Workstation 頁面

FAQ

常見問題

Polymarket 是否原生支援 stop-loss 訂單?

不支援。Polymarket 的 CLOB 僅暴露 market 與 limit。PolyZig Pro Workstation 透過在伺服器側持久化合成訂單(Stop、Stop-limit、Trailing-stop、OCO、Bracket、跨市場條件觸發)填補這一缺口,並在觸發器評估為真後透過與手動單據相同的執行路徑提交底層 CLOB 訂單。監聽器、schema、檢核與 OCO 手足取消邏輯今日即可發布;將觸發動作轉化為已下達訂單的生產級 CLOB executor 是剩餘的對接項。

OCO 在 Polymarket 上如何實作?

PolyZig 在單一資料庫交易中建立 OCO 的兩條腿,並寫入互為參照的 linked_order_id,使每條腿參照對方。任一腿觸發時,監聽器都會取消其手足。取消的作用域被限定在與觸發訂單同屬的 user_id 內,因此誤連結絕不會觸及其他帳戶。

執行就緒後 stop 觸發有多快?

條件訂單監聽器訂閱與價格圖表相同的 WebSocket 訂閱管理員。在價格穿越事件上,它將該列原子化地從 pending → triggered,並已對接為透過 OrderExecutor 在與手動單據相同的熱路徑上提交底層 CLOB 訂單。今日發布的占位符是 Noop executor;一旦生產級 OrderExecutor 轉接器上線,將在 workstation hub 上發布從價格穿越到 CLOB 提交的中位延遲。

我能為既有部位附加 stop 與 take-profit 嗎?

Bracket 原語正是為此而生:照常開倉,然後建立 Bracket——一條目標腿(位於 take-profit 的 limit)與一條 stop 腿(stop 或 stop-limit),原子化連結,先成交者取消另一條。Bracket 今日即可持久化;從觸發到 CLOB 的即時執行將隨上方狀態橫幅標記的生產級 OrderExecutor 對接到位。

若 PolyZig 重啟,我的條件訂單會怎樣?

它們持久化於 Postgres。啟動時 ConditionalOrderWatcher 會呼叫 restore() 並重新訂閱每個待觸發訂單的 token。不存在僅在記憶體中的狀態,因此重啟對您毫無成本。

在您的帳戶上啟用

Pro Workstation 介面——以及本頁所述的全部內容——於 HFT Elite 等級提供($149/月,每筆交易 0.10% 手續費)。

升級至 HFT Elite