Recued
Menu
← Back to recipes

Cancel one Alpaca order

by recued-core v3 39 views

Use “Cancel one Alpaca order” in Recued. Read one resting order, show what it actually is, then cancel it. The read runs first and on purpose: an order id is a uuid, and approving orderid: 7a3f… is approving a string rather than a decision.

How it works 11 steps

Inspect the data fetches, transforms, gates, and output this recipe runs.

Process (11 steps)
■ target_id trim
Trim whitespace from setting order id
■ target_required template
Generate text from a template
fail: step.target_id is_empty
◆ before recued-core.alpaca-trading.order.read
Read order on alpaca trading
■ order default
Apply default
■ symbol default
Apply default
■ resolved template
Generate text from a template
■ cancellable template
Generate text from a template
fail: step.order.status not_equal new
◆ cancel recued-core.alpaca-trading.order.cancel
Cancel order on alpaca trading
◆ after_raw recued-core.alpaca-trading.order.read
Read order on alpaca trading
■ after default
Apply default
■ card to_summary
Format results as a summary card
▼
Output
summary card
text resolved
Settings 1 configurable

Configurable at install. Defaults shown — change them anytime in Recued.

order id setting =

Uses (2 operations)

Pack operation Read order on alpaca trading recued-core.alpaca-trading.order.read
Pack operation Cancel order on alpaca trading recued-core.alpaca-trading.order.cancel

Trust & control

What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.

Permissions it requires

Read your Alpaca connection
Declared by the recipe — Recued grants these at install, where you review them before approving.

About

Tags

alpaca alpacatradingorderscancelbrokerageapproval-gatedpack:alpaca-trading

Details

11 steps 1 configurable settings recipe_id: cancel-order-alpaca