Alpaca
Commission-free stocks and crypto: account, orders, positions, data
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- API Key IDRequired
- Secret KeySecretRequired
- AccountOptionalIdentifier2 choices
Where to find them
- In the Alpaca dashboard choose the account (Paper for testing or Live) and, under “API Keys”, click “Generate New Keys”.
- Copy the “API Key ID” and the “Secret Key” (shown only once).
- Choose the same account here: paper keys do not work on a live account.
OAuth 2.0
PKCEYour OAuth appBring your own OAuth app: register one with Alpaca, then create a custom auth config with its client ID and secret and our redirect URI. Setup guide
Registering the OAuth app
- In the Alpaca dashboard open “Apps” → “OAuth Apps” and click “Create OAuth App”; name it “Maua.Culturewire”.
- Under “Redirect URIs” paste the redirect URI shown below.
- Copy the “Client ID” and the “Client Secret”.
Default scopes
account:writetradingdata
Tools (1)
Alpaca API request
ALPACA_SEND_REQUESTAuthenticated call to the Alpaca API (https://{server}/v2). Any endpoint of the API is allowed. Examples: GET /account, GET /positions, GET /orders?status=open, POST /orders {"symbol": "AAPL", "qty": 1, "side": "buy", "type": "market", "time_in_force": "day"} (trades for real on the live account), GET /assets?status=active, GET https://data.alpaca.markets/v2/stocks/AAPL/bars?timeframe=1Day&limit=30.
Required scopes
No scopes required
Input
Alpaca API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically.

