Alpaca Trading API
The Alpaca Trading API enables commission-free trading of US-listed equities, options, and crypto. It exposes endpoints for orders, positions, account information, watchlists, calendar, clock, and assets. A paper trading sandbox is available at paper-api.alpaca.markets.
Alpaca Trading API is one of 23 APIs that Alpaca publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.
Tagged areas include Trading, Stocks, Options, Crypto, and Orders. The published artifact set on APIs.io includes API documentation, an OpenAPI specification, and an AsyncAPI specification.
This API exposes 11 operations across 5 paths, and defines 15 schemas. It is described by OpenAPI 3.0.0, at version 1.0.0.
Requests are made against 2 base URLs: https://broker-api.sandbox.alpaca.markets, https://broker-api.alpaca.markets.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 1
Alpaca Trading API declares
1 security scheme
for authenticating requests.
It accepts HTTP basic authentication (BasicAuth).
By default, every request must be authenticated.
Paths & Operations 11
Across 5 paths, the API surfaces 11 operations — 4 DELETE, 5 GET, 1 PATCH, 1 POST. Each is listed below with its method, path, parameters, and response codes.
Schemas 15
The contract defines 15 schemas that model the data the API accepts and returns. The most detailed are Order (33 properties), Position (17 properties), CreateOrderRequest (16 properties), TradeUpdateEvent (7 properties). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from Alpaca 12
Other APIs Alpaca publishes across the network.