DocsSource Nodes

Source Nodes

Market data feeds for equities, crypto, and forex

Source nodes are the entry points of every strategy graph. They fetch historical OHLCV candle data and stream live tick updates from the Traderoid API. Every downstream node — indicators, logic, action — reads from one or more Source nodes as its data foundation.

Available Nodes

Shared Output Model

All three Source nodes emit the same OHLCVT data structure. Downstream nodes receive typed arrays — one value per closed candle.

FieldTypeDescription
tnumber[]Unix timestamps (seconds) for each candle.
onumber[]Open prices.
hnumber[]High prices.
lnumber[]Low prices.
cnumber[]Close prices.
vnumber[]Volume for each candle period.

How Data Flows

1
Historical fetchOn graph execution, the Source node calls the Traderoid REST API to retrieve the full historical candle series for the configured symbol and timespan.
2
Candle aggregationThe multiplier collapses multiple base periods into a single candle. For example, multiplier=5 on timespan=minute produces 5-minute bars.
3
Live streamingAfter the historical load, the node subscribes to the WebSocket streamer. Incoming ticks are merged into the latest candle or appended as a new bar using the same aggregation logic.
4
Downstream propagationEvery time a new candle closes, the node signals all connected downstream nodes to re-evaluate with the updated arrays.