{"id":21314617,"url":"https://github.com/dor-sketch/sp-leverage-simulation","last_synced_at":"2025-03-15T21:22:42.411Z","repository":{"id":251347037,"uuid":"837102595","full_name":"Dor-sketch/sp-leverage-simulation","owner":"Dor-sketch","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-02T10:23:31.000Z","size":2576,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T10:23:02.422Z","etag":null,"topics":["financial-analysis","simulation","stock-market","stocks"],"latest_commit_sha":null,"homepage":"https://dorpascal.com/sp-leverage-simulation/","language":"Python","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/Dor-sketch.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-08-02T08:09:07.000Z","updated_at":"2024-08-02T10:23:34.000Z","dependencies_parsed_at":"2024-08-02T11:42:41.523Z","dependency_job_id":"1d774f94-8eed-4af3-9f09-7cf5a6d4b1c1","html_url":"https://github.com/Dor-sketch/sp-leverage-simulation","commit_stats":null,"previous_names":["dor-sketch/sp-leverage-simulation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dor-sketch%2Fsp-leverage-simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dor-sketch%2Fsp-leverage-simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dor-sketch%2Fsp-leverage-simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dor-sketch%2Fsp-leverage-simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dor-sketch","download_url":"https://codeload.github.com/Dor-sketch/sp-leverage-simulation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243791136,"owners_count":20348423,"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":["financial-analysis","simulation","stock-market","stocks"],"created_at":"2024-11-21T18:14:10.632Z","updated_at":"2025-03-15T21:22:42.378Z","avatar_url":"https://github.com/Dor-sketch.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# S\u0026P Leverage Simulation\n\nThis web application simulates the effect of leverage on S\u0026P 500 investments over time. It allows users to upload historical S\u0026P 500 data, choose a starting point, adjust the leverage factor, and visualize the results.\n\n## Features\n\n- Load default S\u0026P 500 historical data\n- Upload custom CSV files with historical data\n- Select a starting point for the simulation\n- Adjust the leverage factor\n- Visualize the simulation results with an interactive chart\n- Compare leveraged and non-leveraged investment strategies\n\n## Installation\n\n1. Clone this repository or download the source code.\n2. Open the `index.html` file in a web browser.\n\nNo additional installation steps are required as the application runs entirely in the browser.\n\n## Usage\n\n1. Open the application in a web browser.\n2. (Optional) Upload a custom CSV file with S\u0026P 500 historical data.\n3. Choose a starting point from the dropdown menu.\n4. Adjust the leverage factor using the slider.\n5. Click the \"Start Simulation\" button to run the simulation and display the results.\n\n## CSV File Format\n\nThe application expects CSV files to have the following format:\n\n```csv\nDate,Close,Open,High,Low\nYYYY-MM-DD,xxxx.xx,xxxx.xx,xxxx.xx,xxxx.xx\n```\n\nEnsure that your CSV file follows this format for proper functionality.\n\n## Technologies Used\n\n- HTML5\n- CSS3\n- JavaScript (ES6+)\n- Chart.js for data visualization\n- Chart.js Data Labels plugin\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is open source and available under the [MIT License](LICENSE).\n\n## Disclaimer\n\nThis application is for educational and demonstration purposes only. It does not provide financial advice, and the simulations should not be used as a basis for real-world investment decisions.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdor-sketch%2Fsp-leverage-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdor-sketch%2Fsp-leverage-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdor-sketch%2Fsp-leverage-simulation/lists"}