This endpointretrieves historical updates about a position's lifecycle across trading stages (e.g., RFQ, order placement, fills). The data it returns should be from the hedger's record of the quote within their system.
Request Parameters
URL Path:
start: Pagination offset (0-indexed, e.g., 0 for first page).
size: Number of records.
Body (JSON):
quote_id (required): Filter by specific quote ID (e.g., "99934").
Example Request
POST /position_state/0/10
Content-Type: application/json
App-Name: Cloverfield # Custom header for client identification
{ "quote_id": "99934" }
Response Fields
count: Total number of matching records (across all pages).
position_state[]: Array of updates, sorted by modify_time descending.
quote_id, create_time (from createTimestamp), modify_time (from statusModifyTimestamp) and counterparty_address (partyA of the quote). These should match the data in the database about this quote.
Hedger Databases:
All other fields (id, last_seen_action, action_status, state_type, etc.) from internal logs of order execution events. avg_price_open and avg_price_closed should reflect the prices at which the hedger filled the partyA.