Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Move money between an Alpaca brokerage account and the EXTERNAL banking world via the Broker API — ACH relationships, wire recipient banks, classic transfers (deposits/withdrawals), the v1beta funding wallet (international/instant), transfer status lifecycles, and fees. Use when building deposit/withdrawal flows or connecting external bank accounts on Alpaca in any language. For moving cash/shares BETWEEN accounts inside your own omnibus, use journals instead.
.claude/skills/alpacahq-alpaca-broker-funding-transfers/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 49% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 57% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 45% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 75% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 299% | 0% |
Getting cash into and out of end-user accounts. There are three rails, and the model splits cleanly into bank links (persistent) and transfers (the actual money movement).
> Read alpaca-broker-integration first. Broker API + HTTP Basic auth. For moving cash between accounts in your omnibus (vs. to/from the outside world), see alpaca-broker-journals — that's a different mechanism.
https://docs.alpaca.markets/docs/funding-accountshttps://docs.alpaca.markets/reference/createtransferforaccountalpaca-docs MCP → get-endpoint title "Broker API" path /v1/accounts/{account_id}/transfersExternal bank ──(relationship: a persistent link)──┐
├──> Transfer (the money movement) ──> Account cash
ACH relationship (rail A: ACH, US domestic) │
Bank relationship (rail B: wire, domestic + intl) │
Funding wallet (rail C: v1beta, multi-currency) ┘APPROVED before a transfer can progress.| Rail | transfer_type | Directions | Relationship | Notes | |------|-----------------|-----------|--------------|-------| | ACH | ach | INCOMING + OUTGOING | ACH relationship (relationship_id) | US domestic; set up via Plaid processor_token (recommended) | | Wire | wire | OUTGOING only | Bank relationship (bank_id) | Domestic + international (SWIFT). Incoming wires are pushed by the sending bank and booked automatically | | Funding wallet | (separate /v1beta API) | incoming / outgoing (lowercase) | Funding-wallet recipient bank | Multi-currency, swift_wire/local_rails |
| Method | Path | Purpose | |--------|------|---------| | POST/GET/DELETE | /v1/accounts/{id}/ach_relationships[/{rel_id}] | Manage ACH bank links | | POST/GET/DELETE | /v1/accounts/{id}/recipient_banks[/{bank_id}] | Manage wire recipient banks | | POST | /v1/accounts/{id}/transfers | Create transfer (ACH deposit/withdraw, or wire withdraw) | | GET | /v1/accounts/{id}/transfers | List transfers | | DELETE | /v1/accounts/{id}/transfers/{transfer_id} | Request cancel | | POST/GET | /v1beta/accounts/{id}/funding_wallet | Create / get funding wallet | | POST/GET/DELETE | /v1beta/accounts/{id}/funding_wallet/recipient_bank | Funding-wallet recipient bank | | POST | /v1beta/accounts/{id}/funding_wallet/withdrawal | Funding-wallet withdrawal | | GET | /v1beta/accounts/{id}/funding_wallet/transfers[/{transfer_id}] | List / get wallet transfers | | GET | /v2/events/funding/status | SSE — unified funding status stream (see §6) |
> The current wire-bank endpoint is /recipient_banks (schema Bank/CreateBankRequest). The older /banks name is a legacy alias.
POST /v1/accounts/{id}/transfers)Required for all: transfer_type, amount (decimal string, > 0), direction.
json// ACH deposit { "transfer_type": "ach", "relationship_id": "<uuid>", "amount": "100.00", "direction": "INCOMING" } // Wire withdrawal { "transfer_type": "wire", "bank_id": "<uuid>", "amount": "500.00", "direction": "OUTGOING", "fee_payment_method": "user", "additional_information": "..." }
relationship_id required iff ach; bank_id required iff wire (and must be the other one's empty).fee_payment_method (wire): user (fee deducted from amount; warn the user in UI) or invoice (firm billed monthly). Only outgoing wire fees auto-process.additional_information is wire-only — sending it on a non-wire request returns 422.Transfer response adds id, status, fee, requested_amount (original ask), reason, timestamps.POST /v1/accounts/{id}/recipient_banks)Required: name, bank_code, bank_code_type, account_number.
bank_code_type: ABA (9-digit routing, domestic) or BIC (SWIFT, international).BIC: country, city, state_province, postal_code, street_address become required.extra_fields carries intermediary/correspondent BICs (intermediary_bank1_bic…). Omitting them on international wires can cause auto-selection, delays, or extra fees — gather them up front for cross-border.QUEUED; it must reach APPROVED before a wire transfer against it progresses.Classic transfers (TransferStatus): QUEUED → APPROVAL_PENDING → PENDING → SENT_TO_CLEARING → (APPROVED) → COMPLETE, with REJECTED / CANCELED / RETURNED as failure exits.
| Terminal | Meaning | |----------|---------| | COMPLETE | Settled | | REJECTED | Rejected | | CANCELED | Client-initiated cancel | | RETURNED | Bank issued an ACH return |
(The SSE Transfer entity also reports EXPIRED, which is effectively terminal.)
Funding-wallet transfers (FundingWalletTransferStatus): PENDING, EXECUTED, COMPLETE, CANCELED, FAILED (last three terminal). Note lowercase incoming/outgoing directions here — different casing from classic transfers.
Classic transfers HAVE an SSE stream: GET /v2/events/funding/status. It is unified across four entity_type values — Transfer, BankRelationship, WireBank, FundingWallet — and is replayable via since/until (timestamps) or since_id/until_id (ULIDs). Use it instead of polling for classic ACH/wire status.
Funding-wallet per-transfer status appears NOT to be pushed — only wallet-level status (active/pending) is in the stream. Individual wallet transfer status (PENDING→EXECUTED→COMPLETE) must be polled via GET /v1beta/.../funding_wallet/transfers/{id}.
Lesson (hard-won): rails differ in event coverage. Decide per rail whether you consume SSE or poll, and build a status-reconciliation poller for anything not covered by events (and as a safety net even for those that are — SSE can drop). Map each Alpaca status to your own internal status with an explicit lookup table, and only poll transfers still in a non-terminal state. See alpaca-broker-reconciliation-idempotency.
> Legacy caveat: the older us/sse-events "Transfer Events" payload uses an integer event_id and lowercase statuses; the modern /v2/events/funding/status uses ULIDs. Migrate to v2.
requested_amount vs amount+fee in your UI.processor_token. There's an instant flag on the relationship. Account types limited to CHECKING/SAVINGS.timing: immediate is deprecated and silently ignored (sunset 2026-08-26) — stop sending it.403 if the account's depositable_status/withdrawable_status isn't allowed; 422 for incoming-wire attempts, missing/mismatched relationship vs bank IDs, or amounts under the (undocumented) minimums.Many production brokers don't fund each user account by a separate external transfer. Instead:
JNLC) — no external ACH/wire per user. See alpaca-broker-journals.This decouples your funding UX from Alpaca's transfer rails and enables "instant" deposits. It requires Alpaca review (and possibly a local money-transmitter license) — confirm with counsel. The classic transfer endpoints in this skill then handle only the firm-account-to-outside-world leg.
Related skills: internal cash movement → alpaca-broker-journals; missed-status recovery → alpaca-broker-reconciliation-idempotency; money formatting → alpaca-broker-money-precision; live status → alpaca-broker-sse-events.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-03 | fail→pass | 21,252 | 13,588 | -36% | 1 | 1 | 0% | 3,536 | 5,262 | +49% | 0 | 0 | — |
case-01 | fail→pass | 12,646 | 7,698 | -39% | 1 | 1 | 0% | 2,564 | 4,038 | +57% | 0 | 0 | — |
case-02 | fail→pass | 16,135 | 10,399 | -36% | 1 | 1 | 0% | 2,916 | 4,241 | +45% | 0 | 0 | — |
case-04 | pass→pass | 10,468 | 5,078 | -51% | 1 | 1 | 0% | 1,699 | 3,397 | +100% | 0 | 0 | — |
case-05 | pass→pass | 17,116 | 11,246 | -34% | 1 | 1 | 0% | 2,838 | 4,715 | +66% | 0 | 0 | — |
case-06 | pass→pass | 7,533 | 4,143 | -45% | 1 | 1 | 0% | 1,331 | 3,121 | +134% | 0 | 0 | — |
case-07 | fail→pass | 11,494 | 8,322 | -28% | 1 | 1 | 0% | 2,356 | 4,123 | +75% | 0 | 0 | — |
case-08 | fail→pass | 4,294 | 1,855 | -57% | 1 | 1 | 0% | 685 | 2,736 | +299% | 0 | 0 | — |
case-09 | pass→pass | 8,579 | 3,994 | -53% | 1 | 1 | 0% | 1,561 | 3,077 | +97% | 0 | 0 | — |
case-10 | fail→pass | 9,914 | 2,673 | -73% | 1 | 1 | 0% | 1,582 | 2,890 | +83% | 0 | 0 | — |
case-11 | pass→pass | 10,782 | 4,864 | -55% | 1 | 1 | 0% | 1,706 | 3,271 | +92% | 0 | 0 | — |
case-12 | pass→pass | 14,705 | 9,457 | -36% | 1 | 1 | 0% | 2,953 | 4,274 | +45% | 0 | 0 | — |
case-13 | pass→pass | 13,251 | 3,819 | -71% | 1 | 1 | 0% | 2,082 | 3,122 | +50% | 0 | 0 | — |
case-14 | pass→pass | 13,957 | 9,978 | -29% | 1 | 1 | 0% | 2,494 | 4,369 | +75% | 0 | 0 | — |
case-15 | pass→pass | 8,598 | 2,810 | -67% | 1 | 1 | 0% | 1,524 | 2,909 | +91% | 0 | 0 | — |
case-16 | pass→pass | 13,165 | 4,988 | -62% | 1 | 1 | 0% | 2,359 | 3,083 | +31% | 0 | 0 | — |
case-17 | pass→pass | 11,913 | 7,649 | -36% | 1 | 1 | 0% | 2,165 | 3,963 | +83% | 0 | 0 | — |
case-18 | fail→pass | 13,107 | 2,319 | -82% | 1 | 1 | 0% | 2,125 | 2,773 | +30% | 0 | 0 | — |
case-19 | fail→pass | 8,221 | 2,977 | -64% | 1 | 1 | 0% | 1,385 | 2,938 | +112% | 0 | 0 | — |
case-20 | pass→pass | 6,071 | 1,690 | -72% | 1 | 1 | 0% | 1,056 | 2,701 | +156% | 0 | 0 | — |
case-21 | pass→pass | 13,826 | 4,763 | -66% | 1 | 1 | 0% | 2,368 | 3,199 | +35% | 0 | 0 | — |
case-22 | fail→pass | 9,401 | 2,337 | -75% | 1 | 1 | 0% | 1,723 | 2,809 | +63% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +41 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.