{"id":15530808,"url":"https://github.com/ajhenri/trading-simulator","last_synced_at":"2026-02-12T15:06:31.517Z","repository":{"id":37666107,"uuid":"223834282","full_name":"ajhenri/trading-simulator","owner":"ajhenri","description":"A simple stock trading simulator, written in Flask. (WIP)","archived":false,"fork":false,"pushed_at":"2023-01-07T21:44:14.000Z","size":2436,"stargazers_count":0,"open_issues_count":29,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-21T13:00:38.231Z","etag":null,"topics":["flask","python3","stock-market"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ajhenri.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}},"created_at":"2019-11-25T00:58:48.000Z","updated_at":"2020-10-12T22:57:42.000Z","dependencies_parsed_at":"2023-02-08T02:18:51.700Z","dependency_job_id":null,"html_url":"https://github.com/ajhenri/trading-simulator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ajhenri/trading-simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajhenri%2Ftrading-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajhenri%2Ftrading-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajhenri%2Ftrading-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajhenri%2Ftrading-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajhenri","download_url":"https://codeload.github.com/ajhenri/trading-simulator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajhenri%2Ftrading-simulator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29369473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"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":["flask","python3","stock-market"],"created_at":"2024-10-02T11:24:07.893Z","updated_at":"2026-02-12T15:06:31.483Z","avatar_url":"https://github.com/ajhenri.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trading Simulator (Work in Progress)\n\nThis is a small stock trading simulator built with Python using the Flask framework with ReactJS on the front-end.\nThe project is currently a work in progress.\n\n## Requirements\nDocker  \nIEX API Key  \n\n### Configuring API Keys and DB Environment\n\nDocker gets the database configuration from an environment file `database.env` located in the root folder of the project.\nIt is not under source control.\n\nCreate a file `database.env` at the root of the project.\n```\nPOSTGRES_USER=user\nPOSTGRES_PASSWORD=pass\nPOSTGRES_DB=db\n```\n\nIn the root of the project, an `instance` folder has to be created as well, which will be used\nas a module to get configuration values.\n\n`instance/__init__.py` (Empty File)  \n\n`instance/config.py`  \n```\nSECRET_KEY = 'key'\nDATABASE_HOST = 'dbhost'\nDATABASE_NAME = 'dbname'\nDATABASE_USER = 'dbuser'\nDATABASE_PASS = 'dbpass'\nIEX_SECRET_TOKEN = 'token'\nIEX_SB_SECRET_TOKEN = 'token'\n```\n\n## Running Development Environment\n\nBuild the Docker images and setup database tables by running the Alembic migrations.\n\n`make build`  \n`make migrate-up`  \n\nIf the `FLASK_ENV` is set to `development`, then the webpack-dev-server has to be running (`npm run start` in the /frontend static folder).\n\n`make up`  \n\n## Demo Image  \n\n![Demo](https://user-images.githubusercontent.com/7053830/95796709-96010900-0cbb-11eb-9a2b-dad378cfc3ed.png \"Demo\") ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajhenri%2Ftrading-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajhenri%2Ftrading-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajhenri%2Ftrading-simulator/lists"}