alpaca-broker-journals

Move cash and securities between Alpaca Broker API accounts via journals.

4|Updated Aug 28, 2026
One-click install
npx skills add https://github.com/alan-d-smith/synthetix-alpha --skill alpaca-broker-journals-alan-d-smith
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: alpaca-broker-journals
Source: https://github.com/alan-d-smith/synthetix-alpha/tree/main/.agents/skills/alpaca-broker-journals
Command: npx skills add https://github.com/alan-d-smith/synthetix-alpha --skill alpaca-broker-journals-alan-d-smith

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Moving money or shares between accounts inside an Alpaca omnibus requires correct use of the Broker API journals endpoints, and mistakes like blind retries or mishandled corrections can double-fund users or break reconciliation. ## Core Features & Use Cases - Cash and Share Journals: Create JNLC cash journals and JNLS securities journals between firm and user accounts, including batch and reverse-batch operations. - Retry-Safe Money Movement: Use the Idempotency-Key header correctly so network timeouts never cause duplicate transfers. - Status Lifecycle Handling: Interpret journal statuses including the non-final nature of executed and the correction flow that issues new journal IDs. - Use Case: Build an instant-funding feature where a pre-funded firm sweep account journals cash to user accounts the moment a deposit is initiated, with SSE events driving your ledger. ## Quick Start Use the alpaca-broker-journals skill to create an idempotent JNLC journal moving 100 USD from my firm account to a user account and explain how to track its status.

Frequently Asked Questions about alpaca-broker-journals

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I transfer cash between Alpaca Broker API accounts?▼

Create a JNLC journal with POST /v1/journals, passing from_account, to_account, and amount as a decimal string. Cash journals work in both directions between firm and user accounts but not customer-to-customer.

How do I make Alpaca journal requests idempotent?▼

Send an Idempotency-Key header, ideally a UUID derived from your own transaction ID, on every journal create. The same key with an identical body returns the original journal, while the same key with a different body returns a 422 error.

What is the difference between JNLC and JNLS journals?▼

JNLC moves cash between firm and user accounts in either direction and requires an amount field. JNLS moves whole or fractional shares from firm to user accounts only and requires symbol and qty fields.

Why is an executed Alpaca journal not final?▼

The executed status means balances updated, but Alpaca cashiering can still reverse the journal. A correction cancels the original and creates a new journal with a different ID, so reconciliation must be event-driven and keyed by journal ID.

Can I cancel or reverse an Alpaca journal after it executes?▼

DELETE /v1/journals/{id} only works while the journal is pending and returns 422 after execution. To reverse an executed journal, create a mirror journal in the opposite direction instead of deleting.

When should I use journals instead of ACH or wire transfers on Alpaca?▼

Journals only move value between accounts inside your own Alpaca omnibus and never touch external banks. For deposits or withdrawals to external bank accounts, use the funding-transfers endpoints instead.