{"id":25823336,"url":"https://github.com/aleskxyz/psc","last_synced_at":"2026-03-05T11:02:48.775Z","repository":{"id":277871313,"uuid":"933769656","full_name":"aleskxyz/psc","owner":"aleskxyz","description":"Position Size Calculator designed to help traders calculate the appropriate position size based on risk, entry price, and stop loss.","archived":false,"fork":false,"pushed_at":"2025-02-16T19:48:53.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T17:46:53.342Z","etag":null,"topics":["bootstrap","calculator","css","html","risk","trade"],"latest_commit_sha":null,"homepage":"https://aleskxyz.github.io/psc/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aleskxyz.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":"2025-02-16T16:48:11.000Z","updated_at":"2025-02-16T19:52:22.000Z","dependencies_parsed_at":"2025-02-16T18:24:31.686Z","dependency_job_id":"b4069513-9181-4323-ad63-8e6059938a76","html_url":"https://github.com/aleskxyz/psc","commit_stats":null,"previous_names":["aleskxyz/psc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aleskxyz/psc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleskxyz%2Fpsc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleskxyz%2Fpsc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleskxyz%2Fpsc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleskxyz%2Fpsc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aleskxyz","download_url":"https://codeload.github.com/aleskxyz/psc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleskxyz%2Fpsc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30121061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T10:44:24.758Z","status":"ssl_error","status_checked_at":"2026-03-05T10:44:15.079Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["bootstrap","calculator","css","html","risk","trade"],"created_at":"2025-02-28T11:51:06.482Z","updated_at":"2026-03-05T11:02:43.755Z","avatar_url":"https://github.com/aleskxyz.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Position Size Calculator\n\nThis is a simple **Position Size Calculator** designed to help traders calculate the appropriate position size based on risk, entry price, and stop loss. It uses a basic formula:\n\n```\nPosition Size = Risk / (Entry Price - Stop Loss)\n```\n\nThe calculator will display the result with 4 decimal precision and color the result either green (for long trades) or red (for short trades). The result is also copyable with a click.\n\n## Features\n\n- **Risk, Entry Price, and Stop Loss input fields**\n- **Real-time calculation** of position size\n- **Copy result to clipboard** by clicking the result\n- **Responsive UI** designed with Bootstrap\n- **Colors the result** green for long trades and red for short trades\n\n## Usage\n\n1. **Enter the risk amount** in the \"Risk Amount\" field.\n2. **Enter your entry price** and **stop loss** in their respective fields.\n3. Click **Calculate** or press **Enter** to compute the position size.\n4. The result will appear in a colored box. **Green** if the entry is larger than the stop loss (Long), and **Red** if the stop loss is larger (Short).\n5. You can **click the result** to copy it to the clipboard.\n\n## Technologies Used\n\n- HTML\n- CSS (Bootstrap)\n- JavaScript (Vanilla)\n\n## Hosting\n\nThis project is hosted using **GitHub Pages**, making it available online at:\n\nhttps://aleskxyz.github.io/psc\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleskxyz%2Fpsc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleskxyz%2Fpsc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleskxyz%2Fpsc/lists"}