{"id":21672466,"url":"https://github.com/redis-developer/redis-stack-stocks","last_synced_at":"2025-07-29T04:09:16.499Z","repository":{"id":44398955,"uuid":"471193247","full_name":"redis-developer/redis-stack-stocks","owner":"redis-developer","description":"This project demonstrates how you can use the multi-model capabilities of Redis to create a real-time stock watchlist application.","archived":false,"fork":false,"pushed_at":"2023-06-30T21:41:35.000Z","size":5909,"stargazers_count":72,"open_issues_count":0,"forks_count":26,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-12T03:53:01.604Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redis-developer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2022-03-18T01:07:58.000Z","updated_at":"2025-03-27T09:46:20.000Z","dependencies_parsed_at":"2025-04-12T03:53:03.900Z","dependency_job_id":"51c1a227-e253-49c7-9c17-6f71fef9746a","html_url":"https://github.com/redis-developer/redis-stack-stocks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/redis-developer/redis-stack-stocks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-developer%2Fredis-stack-stocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-developer%2Fredis-stack-stocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-developer%2Fredis-stack-stocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-developer%2Fredis-stack-stocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redis-developer","download_url":"https://codeload.github.com/redis-developer/redis-stack-stocks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-developer%2Fredis-stack-stocks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267626990,"owners_count":24117709,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-11-25T13:29:24.157Z","updated_at":"2025-07-29T04:09:16.473Z","avatar_url":"https://github.com/redis-developer.png","language":"TypeScript","readme":"# Introduction\n\n![redis-stack-stocks](./redis-stack-stocks.png)\n\n\nThis project demonstrates how you can use Redis Stack to create a real-time stock watchlist application. It uses several different features of Redis:\n\n- Sets\n- Pub/Sub\n- Hashes\n-Redis Time Series\n- RedisBloom\n- Redis JSON\n- Redis Search\n\n# Usage with Docker\n\n## Requirements\n\n1. Install Docker\n\nSet the following environment variables in a .env file in the root directory of the project:\n\n1. `APCA_API_KEY_ID`: Your Alpaca API Key found on the Alpaca dashboard\n1. `APCA_API_SECRET_KEY`: Your Alpaca API Secret found on the Alpaca dashboard\n\n## Installation\n\n```\n$ docker-compose --env-file ./.env up -d\n```\n\nAfter the containers are up and running (for the first time), go into the `data` directory and run:\n\n```\n$ pip install -r requirements.txt\n$ python main.py\n```\n\n# Usage Locally\n\n## Requirements\n\n1. python 3.6+\n1. pip\n\n## Environment Variables\n\nCreate a `.env` file in the root directory of the project and set the following environment variables:\n\n```\nAPCA_API_KEY_ID=\u003cyour-api-key\u003e\nAPCA_API_SECRET_KEY=\u003cyour-api-secret\u003e\nREDIS_URL=\u003credis-url\u003e\nREDIS_OM_URL=\u003credis-url\u003e\n```\n\nCreate a `.env` file in the `ui` directory of the project and set the following envionrment variables:\n\n```\nNEXT_PUBLIC_API_URL=http://localhost:8000/api/1.0\nNEXT_PUBLIC_WS_URL=ws://localhost:8000\n```\n\n## Installation\n\nFrom the root directory, run the following commands:\n\n```\n$ python -m venv ./.venv\n```\n\n### Stream Service\n\nRun the following commands in the `stream` directory:\n\n```\n$ pip install -r requirements.txt\n$ python main.py\n```\n\n### API Service\n\nRun the following commands in the `api` directory:\n\n```\n$ pip install -r requirements.txt\n$ uvicorn main:app\n```\n\n### Web Service\n\nRun the following commands in the `web` directory:\n\n```\n$ npm install\n$ npm run dev\n```\n\n# Known Issues\n\n1. There is a known issue with the Alpaca websocket API thread safety. You will find a workaround in the alpaca.py file.\n\n# Managed Hosting\n\nRedis offers [managed hosting for Redis Stack](https://redis.info/3tyWUYJ) for free, and you can even get $200 in credits towards a paid subscription by using code TIGER200.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredis-developer%2Fredis-stack-stocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredis-developer%2Fredis-stack-stocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredis-developer%2Fredis-stack-stocks/lists"}