Skip to main content
The Market Agent queries Binance’s public ticker API for the three major assets — BTC, ETH, and SOL — and returns their current prices denominated in USDT. It runs as the first stage of Elyra’s six-step research pipeline, and you can also call it directly from Python or the CLI whenever you need a quick price snapshot.

CLI usage

Run the agent on its own to print live prices to stdout:
To run the full six-stage pipeline, which includes market prices as stage 1/6:

Python usage

analyze_market()

The analyze_market function takes no parameters. It fetches the spot price for BTCUSDT, ETHUSDT, and SOLUSDT from the Binance /api/v3/ticker/price endpoint and returns the results as a plain dictionary. Signature

Parameters

This function accepts no parameters.

Return value

Returns dict[str, str]. Each key is an asset ticker and each value is the current price as a USDT-denominated string, preserving the precision returned by Binance.
string
required
Current BTC/USDT spot price as a decimal string (e.g. "67234.50000000").
string
required
Current ETH/USDT spot price as a decimal string (e.g. "3421.20000000").
string
required
Current SOL/USDT spot price as a decimal string (e.g. "180.45000000").

Example response

Error handling

The agent raises a requests.RequestException for network timeouts or connectivity issues, and an HTTP error for API-level failures. Wrap the call if you need fault-tolerant behavior:
No API key is required. Binance’s /ticker/price endpoint is publicly accessible without authentication.