{"id":16398180,"url":"https://github.com/ellache/kalshi_cli","last_synced_at":"2026-06-16T08:31:49.009Z","repository":{"id":115806886,"uuid":"425356447","full_name":"EllAchE/kalshi_cli","owner":"EllAchE","description":"Python-based CLI tool for interacting with Kalshi API. Uses argparse, scripts can be mapped to custom CLI arguments via setuptools. Not actively maintained.","archived":false,"fork":false,"pushed_at":"2022-01-20T08:37:23.000Z","size":291,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T09:29:43.240Z","etag":null,"topics":["cli","kalshi"],"latest_commit_sha":null,"homepage":"","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/EllAchE.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":"2021-11-06T21:53:29.000Z","updated_at":"2024-09-01T01:40:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"86d5ec44-97d9-42ed-b5f7-1b3fdd357fc6","html_url":"https://github.com/EllAchE/kalshi_cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EllAchE/kalshi_cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EllAchE%2Fkalshi_cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EllAchE%2Fkalshi_cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EllAchE%2Fkalshi_cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EllAchE%2Fkalshi_cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EllAchE","download_url":"https://codeload.github.com/EllAchE/kalshi_cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EllAchE%2Fkalshi_cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34398405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cli","kalshi"],"created_at":"2024-10-11T05:12:03.217Z","updated_at":"2026-06-16T08:31:48.979Z","avatar_url":"https://github.com/EllAchE.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kalshi CLI tool \n\nEnables CLI interaction with [Kalshi's](https://kalshi.com/home) trading api.\nSupported operations include:\n- Retrieve all markets\n- Retrieve individual market by ID\n- Retrieve user positions\n- Place order (with custom expiration, not supported via UI)\n\n[Kalshi docs](https://kalshi-public-docs.s3.amazonaws.com/KalshiAPI.html) \n\n### Setup\nWIP\n\n### Usage\n    kalshi help - lists usages within CLI\n    \n###### Placing Orders\n    kalshi buy -a \u003camount\u003e -id \u003cmarketId\u003e -p \u003cprice\u003e -s \u003cside\u003e -e \u003cexpiration\u003e -max \u003cmaxCost\u003e -sellCap \u003csellPositionCapped\u003e \n    kalshi sell -a \u003camount\u003e -id \u003cmarketId\u003e -p \u003cprice\u003e -s \u003cside\u003e -e \u003cexpiration\u003e -max \u003cmaxCost\u003e -sellCap \u003csellPositionCapped\u003e \n\nThere are no \"buy\" and \"sell\" orders in kalshi, you can buy shares on one side, or you can buy the opposite \nside to close a position (see the site for more details). The sell command, therefore, attempts to place an order to \"close\", \nor buy a contract on the opposite side that you offer (all contracts are yes/no binaries)\n\n###### Retrieving Markets\n    kalshi getMarket -id \u003cid\u003e\n    kalshi getMarkets\n    \n\n###### Retrieving Positions\n    kalshi positions\n\n### Notes\n\nThis tool is still a WIP. Outstanding items include:\n- Supporting new Kalshi API methods\n- Using local json to map ticker to market ID for methods dependent on market ID\n- Additional test coverage\n- Pretty print orderbook\n- Pretty print market bids for cached markets\n- Add addtional arguments for methods not currently supported\n\nContributing:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fellache%2Fkalshi_cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fellache%2Fkalshi_cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fellache%2Fkalshi_cli/lists"}