Skip to content
Maua.Culturewire

Alpaca

Commission-free stocks and crypto: account, orders, positions, data

Finance and accountingCatalog1 tool · 0 triggers

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

    1. In the Alpaca dashboard choose the account (Paper for testing or Live) and, under “API Keys”, click “Generate New Keys”.
    2. Copy the “API Key ID” and the “Secret Key” (shown only once).
    3. Choose the same account here: paper keys do not work on a live account.
  • OAuth 2.0

    PKCEYour OAuth app

    Bring 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

    1. In the Alpaca dashboard open “Apps” → “OAuth Apps” and click “Create OAuth App”; name it “Maua.Culturewire”.
    2. Under “Redirect URIs” paste the redirect URI shown below.
    3. Copy the “Client ID” and the “Client Secret”.

    Default scopes

    • account:write
    • trading
    • data

Tools (1)

  • Alpaca API requestALPACA_SEND_REQUEST

    Authenticated 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
    NameTypeDescription
    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.