# Send Alpaca Markets CLI to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "alpaca-markets",
    "name": "Alpaca Markets CLI",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/oscraters/alpaca-markets",
    "canonicalUrl": "https://clawhub.ai/oscraters/alpaca-markets",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/alpaca-markets",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=alpaca-markets",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      ".github/workflows/validate-registry-metadata.yml",
      "README.md",
      "SKILL.md",
      "agents/openai.yaml",
      "references/api_reference.md",
      "registry-metadata.json"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/alpaca-markets"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/alpaca-markets",
    "downloadUrl": "https://openagent3.xyz/downloads/alpaca-markets",
    "agentUrl": "https://openagent3.xyz/skills/alpaca-markets/agent",
    "manifestUrl": "https://openagent3.xyz/skills/alpaca-markets/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/alpaca-markets/agent.md"
  }
}
```
## Documentation

### Overview

This skill enables programmatic access to Alpaca Markets for automated trading, portfolio management, and market data retrieval via their REST API. It supports both live and paper trading accounts for stocks, options, and crypto.

### Authentication

To use the Alpaca API, you need an API key and secret. Obtain these from your Alpaca account dashboard.

Paper trading: https://paper-api.alpaca.markets
Live trading: https://api.alpaca.markets

Set environment variables:

ALPACA_API_KEY
ALPACA_API_SECRET
ALPACA_BASE_URL (optional; defaults to paper trading URL)

### Security / Credential Use

Use paper trading credentials by default.
Do not use live trading credentials until you have audited the code path you plan to run.
Keep ALPACA_BASE_URL unset unless you intentionally need a non-default environment.
Consider running the helper scripts in an isolated container or VM during evaluation.

### Example Usage

Place a stock or crypto order: POST /v2/orders
Fetch account balance: GET /v2/account
Get positions (stocks/options/crypto): GET /v2/positions
List orders: GET /v2/orders

### Trading API

Get Account: GET /v2/account
Place Order: POST /v2/orders (stocks, options, crypto)
List Orders: GET /v2/orders
Get Order: GET /v2/orders/{order_id}
Replace Order: PATCH /v2/orders/{order_id}
Cancel Order: DELETE /v2/orders/{order_id}
Cancel All Orders: DELETE /v2/orders
Get Positions: GET /v2/positions
Close Position: DELETE /v2/positions/{symbol}
Close All Positions: DELETE /v2/positions
Get Assets: GET /v2/assets

### Market Data

Use Alpaca Market Data API endpoints for crypto quotes and bars (see references/api_reference.md).

### Included Files

scripts/alpaca_api.py: command-line helper for calling Alpaca endpoints with robust error handling and exit codes.
scripts/example.py: sample script showing account and order calls.
agents/openai.yaml: Clawhub/OpenClaw interface manifest for display name and default prompt metadata.
references/api_reference.md: concise endpoint reference and payload examples.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: oscraters
- Version: 1.0.1
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-23T16:43:11.935Z
- Expires at: 2026-04-30T16:43:11.935Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/alpaca-markets)
- [Send to Agent page](https://openagent3.xyz/skills/alpaca-markets/agent)
- [JSON manifest](https://openagent3.xyz/skills/alpaca-markets/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/alpaca-markets/agent.md)
- [Download page](https://openagent3.xyz/downloads/alpaca-markets)