TradeStation · API Governance Rules
TradeStation API Rules
Spectral linting rules defining API design standards and conventions for TradeStation.
11 Rules
error 6
warn 5
Rule Categories
tradestation
Rules
warn
tradestation-operation-summary-title-case
Operation summaries must use Title Case.
$.paths[*][*].summary
error
tradestation-operation-ids-required
All operations must have an operationId.
$.paths[*][*]
warn
tradestation-operation-description-required
All operations must have a description.
$.paths[*][*]
error
tradestation-oauth2-required
API must use OAuth2 authorization code authentication.
$.components.securitySchemes.oauth2AuthCode
error
tradestation-versioned-paths
All API paths must use the /v3/ version prefix.
$.paths[*]~
warn
tradestation-tags-required
All operations must be tagged.
$.paths[*][*]
warn
tradestation-pascal-case-schema-properties
Schema property names must use PascalCase to match TradeStation API conventions.
$.components.schemas[*].properties[*]~
error
tradestation-response-200-defined
All operations must define a 200 success response.
$.paths[*][*].responses
warn
tradestation-response-401-defined
All operations must define a 401 unauthorized response.
$.paths[*][*].responses
error
tradestation-post-request-body
POST operations must define a requestBody.
$.paths[*][post]
error
tradestation-order-required-fields
OrderRequest must define AccountID, Symbol, Quantity, OrderType, TradeAction, TimeInForce as required.
$.components.schemas.OrderRequest.required