Improved

Documented value sets are now declared as enums

Broker API

Value lists that the Broker API already documented in prose are now declared as enums, so generated clients treat them as exhaustive. Fields that can carry values outside the documented list remain unconstrained strings with the known values named in the description.

Now declared as enums:

  • AccountCashInterestProgram: ACTIVE, INACTIVE, PENDING_CHANGE.
  • AccountFPSLItem: ACTIVE, INACTIVE.
  • CIPResult: clear, consider; CIPStatus: complete, withdrawn.
  • CustodialAccountType: UTMA, UGMA (the description now shows the wire values instead of the internal names).
  • KYCResults: pass, fail.
  • FeePaymentMethod on the transfer request: user, invoice.
  • Document mime_type on the owner document upload request: application/json, application/pdf, image/png, image/jpeg.

Clarified but left as strings:

  • TradeAccount.multiplier, AdminConfigurations.max_margin_multiplier, and AccountConfigurations.max_margin_multiplier are decimal strings; public configuration values are "1", "2", and "4", and other decimal values set by Alpaca may be returned.
  • CIPProvider remains an open string; the provider names are examples.

Affected Endpoints

  • POST /v1/accounts
  • GET /v1/accounts
  • GET /v1/accounts/{account_id}
  • PATCH /v1/accounts/{account_id}
  • GET /v1/trading/accounts/{account_id}/account
  • GET /v1/accounts/{account_id}/cip
  • POST /v1/accounts/{account_id}/cip
  • POST /v1/accounts/{account_id}/transfers
  • POST /v1/accounts/{account_id}/documents/upload
  • GET /v1/events/accounts/status