Create a trading account with broker credential
Creates a trading account and stores its broker credential as an encrypted WorkOS Vault object. Only organization admins can create credentials. Paper credentials are allowed for admins; live credentials additionally require the Trading Live entitlement. The organization’s billing tier caps the number of broker connections; the request is rejected once that limit is reached. The response returns the created trading-account id and broker-credential id.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Broker-specific credential payload. Lightspeed and Alpaca credentials are currently supported.