diff --git a/src/clob/types/response.rs b/src/clob/types/response.rs index 2dbd1785..6509994b 100644 --- a/src/clob/types/response.rs +++ b/src/clob/types/response.rs @@ -651,12 +651,14 @@ pub struct BuilderApiKeyResponse { pub struct BuilderTradeResponse { pub id: String, pub trade_type: String, - /// Hash of the taker order. - pub taker_order_hash: B256, - /// Address of the builder. - pub builder: Address, - /// The market condition ID. - pub market: B256, + /// Hash of the taker order (optional — may be empty for pending trades). + #[serde(default)] + pub taker_order_hash: Option, + /// Builder API key ID (UUID, not an Ethereum address). + pub builder: ApiKey, + /// The market condition ID (optional — may be empty in some API responses). + #[serde(default)] + pub market: Option, pub asset_id: U256, pub side: Side, pub size: Decimal, @@ -668,8 +670,9 @@ pub struct BuilderTradeResponse { pub owner: ApiKey, /// Address of the maker. pub maker: Address, - /// On-chain transaction hash. - pub transaction_hash: B256, + /// On-chain transaction hash (optional — empty for unfilled/pending trades). + #[serde(default)] + pub transaction_hash: Option, #[serde_as(as = "TimestampSeconds")] pub match_time: DateTime, pub bucket_index: u32,