工具 API

call_api

Fetch financial market data (stock prices, options, trades, quotes, aggregates, crypto, forex). Only GET requests are supported. The path should match an endpoint pattern from search_endpoints (e.g., /v2/aggs/ticker/AAPL/range/1/day/2024-01-01/2024-01-31). Query parameters are passed as a dictionary via params. If the response is paginated, a "Next page available" hint with the exact path and params for the next call_api request is appended to the output. Optionally set store_as to a table name (e.g., "prices") to save the results as an in-memory table for later SQL querying with query_data, instead of returning CSV. Optionally set apply to a list of function steps to post-process results — each step is {"function": "name", "inputs": {"param": value}, "output": "col_name"}. String input values refer to column names; numeric values are literals. Use search_endpoints with scope="functions" to discover available functions.

finance1 积分

调用信息

工具标识
smg-massive.call_api
服务提供方
Massive 金融数据
平均响应
641 ms
近 7 天调用
1

输入参数

method必填

HTTP method (only GET is supported)

path必填

API endpoint path (e.g., /v2/aggs/ticker/AAPL/range/1/day/2024-01-01/2024-01-31)

params

Query parameters as key-value pairs

store_as

Table name to store results as a DataFrame for SQL querying (e.g. 'prices')

apply

List of function steps to post-process results. Each step: {"function": "name", "inputs": {...}, "output": "col_name"}

api_key

API key for this request. Overrides the server's default key.