{"named_endpoints":{"/analyze":{"parameters":[{"label":"Ticker","parameter_name":"ticker","parameter_has_default":true,"parameter_default":"AAPL","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox","example_input":"Hello!!"},{"label":"Horizon","parameter_name":"horizon","parameter_has_default":true,"parameter_default":"3 months","type":{"type":"string","enum":["1 week","1 month","3 months","6 months","1 year"]},"python_type":{"type":"Literal['1 week', '1 month', '3 months', '6 months', '1 year']","description":""},"component":"Dropdown","example_input":"1 week"},{"label":"Risk profile","parameter_name":"risk_profile","parameter_has_default":true,"parameter_default":"balanced","type":{"type":"string","enum":["conservative","balanced","aggressive"]},"python_type":{"type":"Literal['conservative', 'balanced', 'aggressive']","description":""},"component":"Dropdown","example_input":"conservative"},{"label":"Question (optional)","parameter_name":"question","parameter_has_default":false,"parameter_default":null,"type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox","example_input":"Hello!!"}],"returns":[{"label":"JSON result","type":{"type":{},"description":"any valid json"},"python_type":{"type":"str | float | bool | list | dict","description":"any valid json"},"component":"Json"},{"label":"Raw response","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox"},{"label":"value_13","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Markdown"}],"api_visibility":"public","description":"Return the external stock-analysis project's response as JSON, the raw upstream body, and a short status string.","code_snippets":{"python":"from gradio_client import Client\n\nclient = Client(\"igardner/StockAnalysis\")\nresult = client.predict(\n\tticker=\"AAPL\",\n\thorizon=\"3 months\",\n\trisk_profile=\"balanced\",\n\tquestion=\"Hello!!\",\n\tapi_name=\"/analyze\",\n)\nprint(result)","javascript":"import { Client } from \"@gradio/client\";\n\nconst client = await Client.connect(\"igardner/StockAnalysis\");\nconst result = await client.predict(\"/analyze\", {\n\t\tticker: \"AAPL\",\n\t\thorizon: \"3 months\",\n\t\trisk_profile: \"balanced\",\n\t\tquestion: \"Hello!!\",\n});\n\nconsole.log(result.data);","bash":"curl -X POST https://igardner-stockanalysis.hf.space/gradio_api/call/v2/analyze -s -H \"Content-Type: application/json\" \\\n  -d '{\"ticker\": \"AAPL\", \"horizon\": \"3 months\", \"risk_profile\": \"balanced\", \"question\": \"Hello!!\"}' \\\n  | awk -F'\"' '{ print $4}' \\\n  | read EVENT_ID; curl -N https://igardner-stockanalysis.hf.space/gradio_api/call/analyze/$EVENT_ID","cli":"{command} predict igardner/StockAnalysis /analyze '{\n  \"ticker\": \"AAPL\",\n  \"horizon\": \"3 months\",\n  \"risk_profile\": \"balanced\",\n  \"question\": \"Hello!!\"\n}'\n"}}},"unnamed_endpoints":{}}