{"id":16293395,"url":"https://github.com/samc621/stockpros","last_synced_at":"2026-04-14T03:33:05.880Z","repository":{"id":48178198,"uuid":"312159514","full_name":"samc621/stockpros","owner":"samc621","description":"Node.js interface for implementing custom trading strategies.","archived":false,"fork":false,"pushed_at":"2021-02-23T16:18:53.000Z","size":119,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T10:50:09.410Z","etag":null,"topics":["alpaca","alpaca-markets","alpaca-trading-api","finance","fintech","nodejs","polygon","postgresql","redis"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/samc621.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}},"created_at":"2020-11-12T03:40:35.000Z","updated_at":"2022-07-22T09:51:25.000Z","dependencies_parsed_at":"2022-07-22T12:32:18.042Z","dependency_job_id":null,"html_url":"https://github.com/samc621/stockpros","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samc621/stockpros","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samc621%2Fstockpros","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samc621%2Fstockpros/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samc621%2Fstockpros/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samc621%2Fstockpros/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samc621","download_url":"https://codeload.github.com/samc621/stockpros/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samc621%2Fstockpros/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31781292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["alpaca","alpaca-markets","alpaca-trading-api","finance","fintech","nodejs","polygon","postgresql","redis"],"created_at":"2024-10-10T20:11:14.254Z","updated_at":"2026-04-14T03:33:05.866Z","avatar_url":"https://github.com/samc621.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StockPros\n\nStockPros is an interface for implementing custom trading strategies. Users can backtest their strategies, paper trade, and live trade. It runs in Node.js and uses a few external services.\n\n## Services\n\n- [PostgreSQL](https://postgresql.org) - SQL database.\n- [Redis](https://redis.io) - in-memory data store.\n- [Alpaca](https://alpaca.markets) - live/paper trading.\n- [Polygon](https://polygon.io) - market data.\n  - Polygon data is free with a live Alpaca trading account. If you set a Polygon API key in the environment variables (see below), it be used, otherwise the live Alpaca API key will be used.\n\n## Installation\n\nUse the `.env.example` file to configure the environment variables for a given environment e.g. `.env.local`, `.env.development`, `.env.staging`, or `.env.production`.\n\n### Set the environment\n\n`$ export NODE_ENV=local`\n\n### Install the dependencies\n\n`$ npm install`\n\n### Run the DB migrations\n\n`$ knex migrate:latest`\n\n### Run the DB seeders\n\n`$ knex seed:run`\n\n## Unit Testing\n\n`$ npm test`\n\n## Start the server\n\n`$ npm start`\n\nOn start, StockPros will load the watched symbols into the DB, including up to 15 years of historical OHLC (open-high-low-close) data, and then begin running all active strategies for these symbols.\n\n### Running with Docker Compose\n\n`$ docker-compose build`\n\n`$ docker-compose up`\n\n## API\n\nFor each API, view the docs and try the requests in Postman.\n\n- [Strategies](https://documenter.getpostman.com/view/5027621/TVzSjwkc)\n- [Signals](https://documenter.getpostman.com/view/5027621/TVzSjwkb)\n- [WatchedSymbols](https://documenter.getpostman.com/view/5027621/TVzSjwuM)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamc621%2Fstockpros","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamc621%2Fstockpros","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamc621%2Fstockpros/lists"}