{"id":15199074,"url":"https://github.com/pranavoro/kite_kill_switch","last_synced_at":"2026-03-09T23:01:29.182Z","repository":{"id":251863964,"uuid":"838670974","full_name":"Pranavoro/kite_kill_switch","owner":"Pranavoro","description":"A simple kill switch for a kite to prevent overtrading.","archived":false,"fork":false,"pushed_at":"2024-12-30T19:42:07.000Z","size":32,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-23T01:56:45.773Z","etag":null,"topics":["algotrading","killswitch","kite","kiteconnect","over-trading","overtrading","selenium","trading","zerodha"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Pranavoro.png","metadata":{"files":{"readme":"ReadMe.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-06T05:52:30.000Z","updated_at":"2025-07-29T14:06:33.000Z","dependencies_parsed_at":"2024-12-30T20:32:02.972Z","dependency_job_id":"e4c9972d-3f6a-4dd0-8c1d-0f5ee6f8b434","html_url":"https://github.com/Pranavoro/kite_kill_switch","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"5817c8b028128141b4b0c0ad52edabd0f93713c0"},"previous_names":["pranavoro/kite_kill_switch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Pranavoro/kite_kill_switch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pranavoro%2Fkite_kill_switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pranavoro%2Fkite_kill_switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pranavoro%2Fkite_kill_switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pranavoro%2Fkite_kill_switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pranavoro","download_url":"https://codeload.github.com/Pranavoro/kite_kill_switch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pranavoro%2Fkite_kill_switch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30315949,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["algotrading","killswitch","kite","kiteconnect","over-trading","overtrading","selenium","trading","zerodha"],"created_at":"2024-09-28T02:00:36.802Z","updated_at":"2026-03-09T23:01:29.116Z","avatar_url":"https://github.com/Pranavoro.png","language":"Python","funding_links":["https://buymeacoffee.com/pranavoro"],"categories":[],"sub_categories":[],"readme":"# Kite Kill Switch Project\nA simple kill switch for a kite to prevent overtrading.\n\n## Description\nThis project is a simple kill switch for a kite. It is designed to stop overtrading. The kill switch will check if you have any open positions and if the total loss is above a specified threshold. If the loss is above the threshold, the kill switch will close all positions, cancel all orders, and activate the kill switch. The kill switch will wait for a specified time before checking again. This project is designed to prevent overtrading and protect your capital.\n\n## Language\n- Python 3.8\n\n## Libraries\n- kiteconnect\n- pandas\n- json\n- time\n- datetime\n- os\n- sys\n- logging\n- selenium\n\n## Installation\n1. Clone the repository\n2. Add `position_kill_switch.py` to your task scheduler or crontab.\n\n## Configuration\nA template configuration file (`credentials_template.json`) is provided in the repository. You can copy the template and rename it to `credentials.json`. Then you can modify the configuration file to suit your needs.\n\n\u003e You need to have the necessary API credentials to run the script. You can get the API credentials from the [Kite Connect](https://kite.trade/).\n\n\u003e TOTP must be enabled in your Kite account for this project to work.\n\n\u003e Please ensure that you have the necessary API credentials in the `credentials.json` file before running the script. Without the correct credentials, the script will not be able to access the necessary data and perform the required actions.\n\n## Usage\n1. Run `position_kill_switch.py`.\n2. The script will check if you have any open positions.\n3. Then the script will check if the total loss is above threshold.\n4. If the loss is above threshold, the script will close positions, cancel all orders and activate the kill switch.\n5. The script will wait for a specified time before checking again.\n\n## Alt Usage\n1. You can also directly run the `kill_switch.py` script to manually activate the kill switch.\n2. This script will skip the checks and wont cancel orders or close positions, but directly activate the kill switch.\n\n## Author\nHi, I'm `Pranav Meher`, the author of this project.\nI am a skilled software developer with a strong background in algorithmic trading. I have a deep understanding of the financial markets and have successfully implemented numerous trading strategies. I am passionate about creating reliable solutions to prevent overtrading and am dedicated to continuously improving this kill switch project. I welcome feedback and contributions from the community.\n\nYou can connect with me or reach out to me to learn more about my work and stay updated on the latest developments.\n- [LinkedIn](https://www.linkedin.com/in/pranavmeher/) \n- [GitHub](https://github.com/Pranavoro)\n- [Email](mailto:meherpranav5@gmail.com)\n- [Twitter](https://twitter.com/pranav_meher)\n- [Upwork](https://www.upwork.com/freelancers/~01bae9d3b236500043)\n- [Buy me a coffee ☕️](https://buymeacoffee.com/pranavoro)\n\n## Contributing\nContributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.\n\n## License\nThis project is licensed under the GNU GENERAL PUBLIC LICENSE - see the [LICENSE](LICENSE.txt) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranavoro%2Fkite_kill_switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpranavoro%2Fkite_kill_switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranavoro%2Fkite_kill_switch/lists"}