You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: regenerate ws-exec async models for postOnly/GTT (specs 3.0.1)
The ws-exec createOrder frame $refs CreateOrderRequest, so the AsyncAPI-generated
models also carry postOnly + GTT now. Keeps the committed generated code in sync
with a fresh generate-ws.sh run (CI enforces this).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
time_in_force: Optional[TimeInForce] =Field(description='''Order time in force (IOC = Immediate or Cancel, GTC = Good Till Cancel)''', default=None, alias='''timeInForce''')
20
+
time_in_force: Optional[TimeInForce] =Field(description='''Order time in force (IOC = Immediate or Cancel, GTC = Good Till Cancel, GTT = Good Till Time)''', default=None, alias='''timeInForce''')
21
21
reduce_only: Optional[bool] =Field(description='''Whether this is a reduce-only order, exclusively used for LIMIT IOC orders.''', default=None, alias='''reduceOnly''')
Copy file name to clipboardExpand all lines: sdk/async_exec_api/create_order_request.py
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,10 @@ class CreateOrderRequest(BaseModel):
11
11
limit_px: str=Field(alias='''limitPx''')
12
12
qty: Optional[str] =Field(default=None)
13
13
order_type: OrderType=Field(description='''Order type aligned with the on-chain `OrderDetails.orderType` enum: LIMIT = limit order, STOP_LOSS = stop-loss trigger order, TAKE_PROFIT = take-profit trigger order.''', alias='''orderType''')
14
-
time_in_force: Optional[TimeInForce] =Field(description='''Order time in force (IOC = Immediate or Cancel, GTC = Good Till Cancel)''', default=None, alias='''timeInForce''')
14
+
time_in_force: Optional[TimeInForce] =Field(description='''Order time in force (IOC = Immediate or Cancel, GTC = Good Till Cancel, GTT = Good Till Time)''', default=None, alias='''timeInForce''')
reduce_only: Optional[bool] =Field(description='''Reduce-only intent. Perp only; spot markets must set this to false. Maps to on-chain `OrderDetails.reduceOnly`.''', default=None, alias='''reduceOnly''')
17
+
post_only: Optional[bool] =Field(description='''Post-only (maker-only) intent: the order must rest and never cross as a taker. Valid on GTC/GTT; rejected on IOC. Maps to on-chain `OrderDetails.postOnly`.''', default=None, alias='''postOnly''')
17
18
signature: str=Field(description='''EIP-712 signature over the `Order(uint256 verifyingChainId, uint256 deadline, OrderDetails order)` envelope. See `docs/eip712.md` for the exact typehash string and signing algorithm.''')
18
19
nonce: str=Field(description='''Monotonically increasing per-signer nonce. Maps to on-chain `OrderDetails.nonce`.''')
0 commit comments