Data source node

1. Node overview

The data source node is a required parameter-definition card at the start of every data branch, not a standalone computation node. It does not call exchange APIs, retrieve data, or output a DataFrame. It only defines the extraction parameters required by the downstream data processing node, including exchange, market type, symbols, candlestick interval, and backtest period. Each branch starts with one data source connected one-to-one to one data processing node. This connection passes parameters; it does not carry a DataFrame. The data processing node is what calls exchange APIs, retrieves OHLCV, and outputs a DataFrame.

Position in the data flow
Data sourceData processingAI modelStrategy typePosition managementRisk controlTrading engine

2. Interactive configuration

The panel below is the actual data source configuration. Use it to explore its four core sections: time range, exchange and market, symbol configuration, and data interval.

Data source node configuration
Latest available: T-2

Pairs unsupported by the trading engine are removed automatically.

2.1 Time range

Defines the data window for a backtest or live run.
Start date
The beginning of data retrieval, determining when the backtest or live run starts.
Format: YYYY-MM-DD, e.g. 2024-01-01
End date
The end of data retrieval and the endpoint of a backtest.
Format: YYYY-MM-DD, e.g. 2024-12-31
Note: The range affects data volume and computation time. Start with one to seven days to verify strategy logic, then expand to a longer period.

2.2 Exchange and market

Select the exchange and market from which data is retrieved.
Exchange
BeeQuant currently supports Binance, OKX, and merged Binance/OKX candlesticks.
ExchangeIdentifierMarketsCharacteristics
BinancebinanceSpot / USDT-margined / coin-marginedLargest global exchange, deep liquidity, and the broadest symbol coverage.
OKXokxSpot / USDT-margined / coin-marginedBroad derivatives coverage and a stable API.
Binance & OKX (merged kline)binance_okx_merged_klineSpot / USDT-marginedPrices are volume-weighted across both exchanges and volumes are summed; only symbols supported by both are available.

After selecting Binance & OKX merged kline, the symbol list is restricted automatically to instruments supported by both exchanges; coin-margined (CM) markets are unavailable.

Market type
Choose spot or futures. This affects available instruments and leverage.
Spot
Buy and sell the cryptocurrency itself. There is no leverage or liquidation risk; suitable for long-term holding.
USDT-margined (UM)
Uses USDT as margin, supports short positions, and settles returns in USDT; usually the preferred choice for systematic trading.
Coin-margined (CM)
Uses cryptocurrency as margin; suitable for traders with a long-term bullish view of the collateral coin.

2.3 Symbol configuration

Choose the symbols whose data will be retrieved.
Symbol selection
Select one or more symbols.

AllRetrieve every available symbol in the market.

Single / multipleSelect specific symbols such as BTCUSDT and ETHUSDT.

Tips:
  • For a single-instrument strategy, select one symbol such as BTCUSDT.
  • For a multi-instrument or selection strategy, select multiple symbols; the system retrieves them in parallel.
  • Symbol names must follow the exchange standard and are usually uppercase.

2.4 Data interval

Sets the candlestick interval, which determines data granularity and strategy frequency.
Supported candlestick intervals
1 minute
1m
5 minutes
5m
15 minutes
15m
30 minutes
30m
1 hour
1h
4 hours
4h
1 day
1d
Short intervals (1m-15m)

Suitable for high-frequency and intraday strategies; larger datasets make backtests slower.

Long intervals (4h-1d)

Suitable for trend-following and medium- to long-horizon strategies; smaller datasets make backtests faster.

3. Base columns for downstream extraction

The data source node does not output a DataFrame. Its parameters tell the downstream data extraction and processing node to retrieve the following base columns. These columns may be referenced by factor, label, and filter expressions in that node, but they are not passed farther downstream by default. Pass one through explicitly with an assignment such as close = close.

ColumnTypeDescription
timestampdatetimeCandlestick timestamp (UTC)
symbolstringTrading symbol (present for multi-symbol data)
openfloatOpening price
highfloatHighest price
lowfloatLowest price
closefloatClosing price
volumefloatTrading volume
Example 1: single-symbol data (BTCUSDT)
timestampsymbolopenhighlowclosevolume
2024-12-11 00:00:00BTCUSDT97500.098200.097100.097800.015234.5
2024-12-11 01:00:00BTCUSDT97800.097950.097650.097750.08521.3
2024-12-11 02:00:00BTCUSDT97750.097850.097600.097820.06432.1
2024-12-11 03:00:00BTCUSDT97820.098100.097700.098050.09876.2
2024-12-11 04:00:00BTCUSDT98050.098300.097900.098150.07654.8
Example 2: multi-symbol data (BTCUSDT, ETHUSDT, DOGEUSDT)
timestampsymbolopenhighlowclosevolume
2024-12-11 00:00:00BTCUSDT97500.098200.097100.097800.015234.5
2024-12-11 00:00:00ETHUSDT3450.03485.03420.03470.052341.2
2024-12-11 00:00:00DOGEUSDT0.38500.39200.38100.38801823456.0
2024-12-11 01:00:00BTCUSDT97800.097950.097650.097750.08521.3
2024-12-11 01:00:00ETHUSDT3470.03495.03455.03480.041256.8
2024-12-11 01:00:00DOGEUSDT0.38800.39500.38600.39101654321.0
2024-12-11 02:00:00BTCUSDT97750.097850.097600.097820.06432.1
2024-12-11 02:00:00ETHUSDT3480.03510.03465.03495.038765.4
2024-12-11 02:00:00DOGEUSDT0.39100.39800.38900.39501456789.0

4. FAQ

Q: Why is data retrieval slow?

A: Excessive data volume is usually the cause. Shorten the date range, use a longer candlestick interval, or reduce the number of symbols. Data is cached locally after the first retrieval, so subsequent requests are faster.

Q: Is live data supported?

A: Yes. In paper trading and live trading, the data source automatically switches to live streaming.

Q: Can I use data from multiple exchanges at once?

A: One data source node supports one exchange. To use several exchanges, add multiple data source nodes and merge their data in the data processing node.

    BeeQuant - AI Quantitative Trading Platform