Skip to content
Start Trading

Get Executions

client.V1.Orders.GetExecutions(ctx, accountID, query) (*V1OrderGetExecutionsResponse, error)
GET/v1/accounts/{account_id}/executions

Retrieves filled and partially-filled execution reports for the specified trading account, ordered by transaction time (nanosecond precision) descending.

ParametersExpand Collapse
accountID int64
query V1OrderGetExecutionsParams
From param.Field[Time]Optional

The start date and time for the query range, inclusive (ISO 8601 format)

formatdate-time
InstrumentIDs param.Field[[]string]Optional

Comma-separated instrument identifiers (UUIDs) or symbols (e.g. AAPL) to filter by. When provided, only executions for any of the listed instruments are returned.

OrderIDs param.Field[[]string]Optional

Comma-separated order IDs to filter by. When provided, only executions belonging to an order in this set are returned.

PageSize param.Field[int64]Optional

The number of items to return per page. Only used when page_token is not provided.

formatint64
maximum1000
minimum1
PageToken param.Field[string]Optional

Token for retrieving the next or previous page of results. Contains encoded pagination state; when provided, page_size is ignored.

formatbyte
To param.Field[Time]Optional

The end date and time for the query range, inclusive (ISO 8601 format)

formatdate-time
UnderlyingInstrumentIDs param.Field[[]string]Optional

Comma-separated instrument IDs (UUID) or symbols (equity tickers or OSI option symbols). Matches option fills whose resolved underlier is any of the given instruments.

ReturnsExpand Collapse
type V1OrderGetExecutionsResponse struct{…}
ID string

Unique identifier for this execution report.

formatuuid
OrderID string

Identifier of the order this execution belongs to.

formatuuid
Quantity string

Filled quantity.

Side Side

Side of the fill.

One of the following:
const SideBuy Side = "BUY"
const SideSell Side = "SELL"
TransactionTime Time

Transaction timestamp in nanosecond precision (UTC).

formatdate-time
InstrumentID stringOptional

Unique instrument identifier. null when this fill has no single resolvable instrument. When a null/undefined value is observed, it indicates it does not apply.

formatuuid
Price stringOptional

Fill price. null for multileg fills, whose price lives only at the leg level. When a null/undefined value is observed, it indicates it does not apply.

Symbol stringOptional

Trading symbol. null when this fill has no single resolvable instrument. When a null/undefined value is observed, it indicates it does not apply.

UnderlyingInstrumentID stringOptional

Underlying instrument identifier for an option fill. Omitted for a non-derivative fill, when the underlier could not be resolved, or for a multileg fill (per-leg underliers live in legs[]). When a null/undefined value is observed, it indicates it does not apply.

formatuuid
UnderlyingInstrumentType SecurityTypeOptional

Type of the underlying instrument, alongside underlying_instrument_id. When a null/undefined value is observed, it indicates it does not apply.

One of the following:
const SecurityTypeCommonStock SecurityType = "COMMON_STOCK"
const SecurityTypeIndex SecurityType = "INDEX"
const SecurityTypeOption SecurityType = "OPTION"
const SecurityTypeCash SecurityType = "CASH"
Venue stringOptional

Venue where this fill occurred, as reported by that venue. Distinct from an order’s venue, which is the routing destination. Codes are not normalized, so the format varies by venue. When a null/undefined value is observed, it indicates that there is no available data.

Get Executions

package main

import (
  "context"
  "fmt"

  "github.com/clear-street/clear-street-go"
  "github.com/clear-street/clear-street-go/option"
)

func main() {
  client := clearstreet.NewClient(
    option.WithAPIKey("My API Key"),
  )
  response, err := client.V1.Orders.GetExecutions(
    context.TODO(),
    0,
    clearstreet.V1OrderGetExecutionsParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response)
}
{
  "data": [
    {
      "id": "019d216d-9857-7e23-ae01-edc07126c9e4",
      "instrument_id": "528ec5c3-cdbf-447c-b995-ec6c83cfbc02",
      "order_id": "01928b4d-c000-7000-8000-000000000001",
      "price": "150.25",
      "quantity": "100",
      "side": "BUY",
      "symbol": "AAPL",
      "transaction_time": "2026-03-24T19:58:43.798000Z"
    }
  ],
  "error": null,
  "metadata": {
    "request_id": "7c8d9e0f-1a2b-3c4d-5e6f-7a8b9c0d1e2f"
  }
}
Returns Examples
{
  "data": [
    {
      "id": "019d216d-9857-7e23-ae01-edc07126c9e4",
      "instrument_id": "528ec5c3-cdbf-447c-b995-ec6c83cfbc02",
      "order_id": "01928b4d-c000-7000-8000-000000000001",
      "price": "150.25",
      "quantity": "100",
      "side": "BUY",
      "symbol": "AAPL",
      "transaction_time": "2026-03-24T19:58:43.798000Z"
    }
  ],
  "error": null,
  "metadata": {
    "request_id": "7c8d9e0f-1a2b-3c4d-5e6f-7a8b9c0d1e2f"
  }
}