Skip to Content

Robinhood action reference

This page is generated from the plugin registry. Do not edit it by hand.

Read prices, positions and trading status for the tokenised equities on Robinhood Chain, and trade them against USDG, in share terms rather than raw token units

For guidance and examples see the Robinhood guide.

Set actionType in a node’s config to the action type shown under each heading. See the workflow definition page for the node format.

Read actions return the value under result: a single unnamed output is result, a named one is result.<name>, and several outputs are result.<name> each. Reference it as {{@nodeId:Label.result}}. Integer Solidity types are passed as decimal strings.

ActionAction type
Get Stock Token Pricerobinhood/get-stock-price
Get Stock Token Positionrobinhood/get-stock-position
Trade Stock Tokenrobinhood/trade-stock-token
Stock Market Statusrobinhood/stock-market-status

Get Stock Token Price

Action type: robinhood/get-stock-price. Connection: not required.

Quote a stock token by ticker, resolved through the issuer’s asset registry rather than an address you paste: a symbol search on the chain explorer returns many lookalikes, several with more holders than the real token. Returns the issuer bid and ask for the underlying equity alongside the Chainlink token price where a feed exists, each with its own age, rather than reconciling them into one number

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 4663Network.
symbolstringYesTicker.

Outputs

OutputDescription
successWhether the read succeeded
symbolThe resolved ticker
nameThe asset’s display name
tokenAddressToken contract on chain 4663
currencyCurrency of bid and ask
quoteGeneratedAtWhen the issuer produced the quote
feedUpdatedAtWhen Chainlink last updated, null when there is no feed
bidIssuer bid for the underlying equity. Not multiplier adjusted
askIssuer ask for the underlying equity. Not multiplier adjusted
quoteAgeSecondsAge of the issuer quote. Grows without bound while the market is closed
feedPriceChainlink token price, multiplier already applied. Null for the majority of tickers, which have no feed
feedAgeSecondsAge of the Chainlink answer, null when there is no feed
feedBeyondHeartbeatWhether the feed is older than its own published heartbeat, which is the only meaningful staleness test for it
uiMultiplierThe token’s scaling factor, which is the difference between the two price conventions
isTradingHaltIssuer-reported trading halt
oraclePausedOn-chain oracle pause flag
tokenPausedOn-chain transfer pause flag
pausedOn-chain global pause flag
errorError message when the read failed

Get Stock Token Position

Action type: robinhood/get-stock-position. Connection: not required.

Read a holder’s position in share terms and in raw on-chain units side by side. Reading balanceOf alone understates a position by the multiplier on any token that has been through a corporate action

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 4663Network.
symbolstringYesTicker.
addressstringYesHolder Address.

Outputs

OutputDescription
successWhether the read succeeded
symbolThe resolved ticker
tokenAddressToken contract on chain 4663
addressThe holder that was read
quoteAgeSecondsAge of the quote behind valueAtBid, null when absent
sharesShare count. What the holder is shown and what the position is worth. Act on this
rawBalanceUnscaled on-chain balance. What transfer moves and what a block explorer shows
uiMultiplierThe factor between shares and rawBalance
valueAtBidshares multiplied by the issuer bid, null when no quote was available
currencyCurrency of valueAtBid
errorError message when the read failed

Trade Stock Token

Action type: robinhood/trade-stock-token. Connection: not required.

Swap USDG into a tokenised equity or back out, through Uniswap v4. Takes an explicit pool key and a minimum output rather than choosing a route: this chain carries hundreds of pools per stock token at fee tiers reaching 95 percent, none distinguished on-chain, so any pool a heuristic would pick is one a griefer can aim at

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 4663Network.
symbolstringYesTicker.
sidestringYesbuy, sellSide.
amountInstringYesAmount In.
minAmountOutstringYesMinimum Amount Out.
poolFeestringYesPool Fee.
poolTickSpacingstringYesPool Tick Spacing.
poolHooksstringNoPool Hooks.
deadlineSecondsstringNoDeadline (seconds).

Outputs

OutputDescription
successWhether the swap was broadcast
transactionHashThe swap transaction hash
chainIdChain the swap was broadcast on
symbolThe resolved ticker
sidebuy or sell
amountInAmount spent, as supplied
minAmountOutThe floor the router enforced, as supplied
poolFeeFee tier of the pool traded
poolTickSpacingTick spacing of the pool traded
errorWhy the trade was refused or failed, including the Permit2 allowances to set when they are missing

Stock Market Status

Action type: robinhood/stock-market-status. Connection: not required.

Guard for price-reactive workflows. Reports whether acting on this token’s price is currently sane, and names every reason it is not: halts, the three pause flags, stale quotes, feeds beyond their heartbeat, and pending corporate actions

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 4663Network.
symbolstringYesTicker.

Outputs

OutputDescription
successWhether the read succeeded
tradeableTrue when nothing blocks acting on this token’s price. Branch on this
blockedByEvery reason tradeable is false, so a workflow can branch on cause rather than re-deriving it
isTradingHaltIssuer-reported trading halt
pausedOn-chain global pause flag
tokenPausedOn-chain transfer pause flag
oraclePausedOn-chain oracle pause flag
quoteAgeSecondsAge of the issuer quote, null when it carried no timestamp
feedAgeSecondsAge of the Chainlink answer, null when there is no feed
feedBeyondHeartbeatWhether the Chainlink feed is past its own heartbeat
pendingMultiplierScheduled multiplier when a corporate action is pending, which gives advance warning before a split lands
pendingEffectiveAtWhen a pending corporate action takes effect
errorError message when the read failed