Improved

Documented value sets declared as enums on Broker schemas

Broker API

Value lists that the Broker API already documented in prose are now declared as enums, so generated clients and validators treat them as exhaustive.

  • AccountCashInterestProgram and AccountFPSLItem status: ACTIVE, INACTIVE, plus PENDING_CHANGE for cash interest.
  • CIPResult (clear, consider) and CIPStatus (complete, withdrawn).
  • KYCResults (pass, fail) and OnfidoSDKOutcome (USER_EXITED, SDK_ERROR, USER_COMPLETED, NOT_STARTED).
  • CustodialAccountType now uses the wire values UTMA and UGMA, and its description was corrected to match.
  • OwnerDocumentUploadRequest MIME type: application/json, application/pdf, image/png, image/jpeg.
  • FeePaymentMethod on the transfer request: user, invoice.
  • RebalancingConditions type and sub-type values, and SkippedOrder.side (buy, sell, sell_short).
  • Instant funding report type (summary, detail) and the EOD cash interest sort direction (asc, desc).

Fields that can carry values outside the documented list stay unconstrained strings: CIPProvider keeps its provider names as examples, and the multiplier fields on TradeAccount, AdminConfigurations.max_margin_multiplier, and AccountConfigurations.max_margin_multiplier remain decimal strings with clarified descriptions (public values 1, 2, 4; other values set by Alpaca may also be returned).

Affected Endpoints

  • POST /v1/accounts
  • GET /v1/accounts
  • GET /v1/accounts/{account_id}
  • PATCH /v1/accounts/{account_id}
  • GET /v1/accounts/{account_id}/cip
  • POST /v1/accounts/{account_id}/cip
  • PATCH /v1/accounts/{account_id}/onfido/sdk
  • POST /v1/accounts/{account_id}/documents/upload
  • POST /v1/accounts/{account_id}/transfers
  • GET /v1/trading/accounts/{account_id}/account
  • PATCH /v1/trading/accounts/{account_id}/account/configurations
  • GET /v1/events/accounts/status
  • GET /v1/instant_funding/reports
  • GET /v1/reporting/eod/cash_interest
  • POST /v1/rebalancing/portfolios
  • PATCH /v1/rebalancing/portfolios/{portfolio_id}
  • GET /v1/rebalancing/runs
  • GET /v1/rebalancing/runs/{run_id}