Built-in action Built In

Create a standalone limit buy or sell order that auto-executes when the token price hits a target. The platform monitors prices and executes when the condition is met.

At a Glance

FieldValue
Action IDplace-order
CategoryBuilt In
ConnectorNot required
Requires gasNo
Funds movementNone declared
Tagstrading, order, limit-order, defi

Payload Schema

FieldTypeRequiredDescription
walletIdstringYesWallet ID to use for the order.
chainIdnumberYesChain ID where the token lives.
assetAddressstringYesContract address of the token to buy or sell.
orderTypestringYesOrder type. 'buy' = buy when price drops to target; 'sell' = sell when price rises to target.
conditionstringYesPrice condition. 'lte' for buy (trigger at or below target), 'gte' for sell (trigger at or above target).
amountstringYesBigInt: USDC amount to spend (buy) or token amount to sell (sell).
targetPriceUsdstringYesTarget price in USDC smallest units (6 decimals). $0.001 = '1000', $1.50 = '1500000'.
labelstringNoDisplay name for the order (e.g., 'DEGEN limit buy').
assetDecimalsnumberYesToken decimals (e.g., 18 for most ERC-20, 6 for USDC, 8 for WBTC).

Result Schema

FieldTypeRequiredDescription
orderIdstringYesUnique ID of the created order.
statusstringYesOrder status (always 'active' at creation).

Examples

json
{ "type": "place-order", "payload": { "walletId": "0x0000000000000000000000000000000000000000", "chainId": 8453, "assetAddress": "0x0000000000000000000000000000000000000000", "assetDecimals": "ETH", "orderType": "buy", "condition": "gte", "amount": "1000000", "targetPriceUsd": "example-targetPriceUsd" }, "children": []}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.

Ask a question... ⌘I