List Position Instructions
client.V1.Positions.GetPositionInstructions(ctx, accountID, query) (*V1PositionGetPositionInstructionsResponse, error)
GET/v1/accounts/{account_id}/positions/instructions
Returns the current lifecycle state of the account’s position instructions. Optionally filter by a specific contract.
List Position Instructions
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.Positions.GetPositionInstructions(
context.TODO(),
0,
clearstreet.V1PositionGetPositionInstructionsParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response)
}
{
"metadata": {
"request_id": "request_id",
"next_page_token": "U3RhaW5sZXNzIHJvY2tz",
"page_number": 0,
"previous_page_token": "U3RhaW5sZXNzIHJvY2tz",
"total_items": 0,
"total_pages": 0
},
"error": {
"code": 400,
"message": "Order quantity must be greater than zero",
"details": [
{
"foo": "bar"
}
]
},
"data": [
{
"id": "0195f6d0-a1b2-7c3d-8e4f-5a6b7c8d9e02",
"account_id": 122503,
"instruction_id": "ui-20260424-001",
"instruction_type": "EXERCISE",
"instrument_id": "0195f6d0-a1b2-7c3d-8e4f-5a6b7c8d9e02",
"quantity": "1",
"status": "SENT",
"symbol": "AAPL 280121C00195000",
"accepted_quantity": null,
"created_at": "2026-04-24T14:30:00Z",
"rejection_reason": null,
"updated_at": "2026-04-24T14:30:00Z"
}
]
}Returns Examples
{
"metadata": {
"request_id": "request_id",
"next_page_token": "U3RhaW5sZXNzIHJvY2tz",
"page_number": 0,
"previous_page_token": "U3RhaW5sZXNzIHJvY2tz",
"total_items": 0,
"total_pages": 0
},
"error": {
"code": 400,
"message": "Order quantity must be greater than zero",
"details": [
{
"foo": "bar"
}
]
},
"data": [
{
"id": "0195f6d0-a1b2-7c3d-8e4f-5a6b7c8d9e02",
"account_id": 122503,
"instruction_id": "ui-20260424-001",
"instruction_type": "EXERCISE",
"instrument_id": "0195f6d0-a1b2-7c3d-8e4f-5a6b7c8d9e02",
"quantity": "1",
"status": "SENT",
"symbol": "AAPL 280121C00195000",
"accepted_quantity": null,
"created_at": "2026-04-24T14:30:00Z",
"rejection_reason": null,
"updated_at": "2026-04-24T14:30:00Z"
}
]
}