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.Documentation Index
Fetch the complete documentation index at: https://docs.getelyra.xyz/llms.txt
Use this file to discover all available pages before exploring further.
CLI usage
Run the agent on its own to print live prices to stdout: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
Returnsdict[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.
Current BTC/USDT spot price as a decimal string (e.g.
"67234.50000000").Current ETH/USDT spot price as a decimal string (e.g.
"3421.20000000").Current SOL/USDT spot price as a decimal string (e.g.
"180.45000000").Example response
Error handling
The agent raises arequests.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.