Skip to content

my_secondary_market_orders

List the signed-in user’s own buy and sell orders on the Aktionariat secondary market for a given issuing company. Orders are sorted most-recent first and include a derived status so the agent can reason about open / cancelled / filled / expired without re-deriving it from raw fields.

Requires sign-in. Call sign_in first if the session is anonymous.

FieldTypeRequiredDescription
companyintegerYesIssuer company id whose order book to query. Resolve from a ticker via list_tokens.

A summary envelope with the company id, a count, and the list of orders:

FieldTypeDescription
companyIdintegerThe company id the orders belong to.
countintegerNumber of orders returned.
itemsarrayOrders, sorted most-recently-created first.

Each row in items contains:

FieldTypeDescription
idstringOrder id, as assigned by the backend.
sidestringbuy or sell.
statusstringopen · cancelled · filled · expired.
pricenumberPrice per share in the share class’s quote currency (typically ZCHF).
totalSharesintegerOriginal order size in shares.
remainingSharesintegerShares still open.
filledSharesintegerShares already filled.
filledPercentnumberFill ratio as a percentage.
totalnumberRemaining order value (= price * remainingShares) in the quote currency.
whenCreatedstringISO timestamp.
whenExpiresstringISO timestamp.
whenCancelledstringISO timestamp, set only when status is cancelled.

Wallet allowance and funds-balance fields used by the web UI’s “missing allowance” / “missing funds” affordances are intentionally excluded — they are not useful for an agent.

  • “Show me my open orders for the Aktionariat AG token.”
  • “How much of my DAKS sell order is still unfilled?”
  • “List my cancelled orders on DAKS this year.”
  • “What is the total value of my open buy orders for company 42?”
  • The company parameter is required — secondary-market orders are scoped per issuer. If the user refers to a company by ticker or name, call list_tokens first to find the matching issuerId and pass that as company.
  • A 401 from the backend means the session expired — fall back to sign_in and retry.
  • A 404 for a given company means it does not exist; do not retry with variants.