{"id":28508020,"url":"https://github.com/assistant-ui/assistant-ui-stockbroker","last_synced_at":"2025-07-02T06:31:44.109Z","repository":{"id":256474523,"uuid":"855419634","full_name":"assistant-ui/assistant-ui-stockbroker","owner":"assistant-ui","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-12T10:25:51.000Z","size":296,"stargazers_count":231,"open_issues_count":3,"forks_count":57,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-26T11:15:36.260Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://assistant-ui-stockbroker.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/assistant-ui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-10T20:48:56.000Z","updated_at":"2025-06-17T01:18:07.000Z","dependencies_parsed_at":"2024-09-11T00:24:45.821Z","dependency_job_id":"08871684-502d-4721-bb6e-748b9bf54cb7","html_url":"https://github.com/assistant-ui/assistant-ui-stockbroker","commit_stats":null,"previous_names":["yonom/assistant-ui-stockbroker","assistant-ui/assistant-ui-stockbroker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/assistant-ui/assistant-ui-stockbroker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assistant-ui%2Fassistant-ui-stockbroker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assistant-ui%2Fassistant-ui-stockbroker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assistant-ui%2Fassistant-ui-stockbroker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assistant-ui%2Fassistant-ui-stockbroker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/assistant-ui","download_url":"https://codeload.github.com/assistant-ui/assistant-ui-stockbroker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assistant-ui%2Fassistant-ui-stockbroker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263086600,"owners_count":23411742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-08T21:07:41.229Z","updated_at":"2025-07-02T06:31:44.091Z","avatar_url":"https://github.com/assistant-ui.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stockbroker Human in the Loop\n\nThe code for the Stockbroker Human in the Loop video can be found in this directory. It's setup as a monorepo-style project, with `frontend` and `backend` directories.\nThe `frontend` directory contains a Next.js application which allows you to interact with the Stockbroker agent via a chat interface.\nThe backend contains a LangGraph agent which powers the core functionality of the stockbroker.\n\n## Deployment\n\nThe stockbroker agent is publicly accessible through two interfaces:\n\n1. API:\n\n   \u003e The Cloud API for the stockbroker agent is publicly accessible at the following base URL: `https://assistant-ui-stockbroker.vercel.app/api`\n\n2. Web-based Chat Interface:\n   \u003e To go along with the API, we've also deployed this web-based chat interface for the stockbroker agent.\n   \u003e\n   \u003e You can access, and interact with it [here](https://assistant-ui-stockbroker.vercel.app).\n\n## Setup\n\nTo setup the stockbroker, install dependencies from the root of the monorepo:\n\n```bash\nyarn install\n```\n\nThis will install all dependencies required by both the frontend and backend projects. You can also run shared commands from the root of the project:\n\n```bash\nyarn format\n\nyarn build\n```\n\n## Environment variables\n\n### Backend\n\nThe backend requires Financial Datasets AI, Tavily and OpenAI API keys to run. Sign up here:\n\n- Financial Datasets AI: https://financialdatasets.ai/\n- Tavily: https://tavily.com/\n- OpenAI: https://platform.openai.com/signup\n\nOnce you have your API keys, create a `.env` file in the [`./backend`](`./backend`) directory and add the following:\n\n```bash\nFINANCIAL_DATASETS_API_KEY=YOUR_API_KEY\nTAVILY_API_KEY=YOUR_API_KEY\nOPENAI_API_KEY=YOUR_API_KEY\n```\n\n### Frontend\n\nThe frontend requires the production, or local deployment of your agent, along with a LangSmith API key (if calling the production endpoint), and finally the name of the agent to interact with (in this case `stockbroker`).\n\nFor local development, you can find the API endpoint in the bottom left of LangGraph Studio, which defaults to `http://localhost:51497`. You can find the production URL in the deployment page of your LangGraph cloud deployment.\n\nThen, set the variables in a `.env` file inside [`./frontend`](./frontend):\n\n```bash\n# Only required for production deployments\n# LANGCHAIN_API_KEY=YOUR_API_KEY\nLANGGRAPH_API_URL=https://assistant-ui-stockbroker.vercel.app/api # Or your production URL\nNEXT_PUBLIC_LANGGRAPH_ASSISTANT_ID=stockbroker\n```\n\n## LangGraph Config\n\nThe LangGraph configuration file for the stockbroker project is located inside [`./backend/langgraph.json`](./backend/langgraph.json). This file defines the stockbroker graph implemented in the project: `stockbroker`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassistant-ui%2Fassistant-ui-stockbroker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fassistant-ui%2Fassistant-ui-stockbroker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassistant-ui%2Fassistant-ui-stockbroker/lists"}