{"id":15964698,"url":"https://github.com/felixmohr/pancake-cli","last_synced_at":"2025-06-10T10:04:11.577Z","repository":{"id":236009389,"uuid":"438215426","full_name":"FelixMohr/pancake-cli","owner":"FelixMohr","description":"CLI for Pancake swap trading.","archived":false,"fork":false,"pushed_at":"2021-12-14T18:29:55.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T13:16:39.629Z","etag":null,"topics":["binance","bot","bsc","pancakeswap","pancakeswap-bot","trading"],"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/FelixMohr.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}},"created_at":"2021-12-14T10:46:57.000Z","updated_at":"2025-03-14T22:23:57.000Z","dependencies_parsed_at":"2024-04-25T09:49:52.683Z","dependency_job_id":null,"html_url":"https://github.com/FelixMohr/pancake-cli","commit_stats":null,"previous_names":["felixmohr/pancake-cli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FelixMohr%2Fpancake-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FelixMohr%2Fpancake-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FelixMohr%2Fpancake-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FelixMohr%2Fpancake-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FelixMohr","download_url":"https://codeload.github.com/FelixMohr/pancake-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FelixMohr%2Fpancake-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259053220,"owners_count":22798423,"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":["binance","bot","bsc","pancakeswap","pancakeswap-bot","trading"],"created_at":"2024-10-07T17:03:57.889Z","updated_at":"2025-06-10T10:04:11.550Z","avatar_url":"https://github.com/FelixMohr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pancake-cli\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE)\n\nThis CLI can perform [Pancakeswap](https://pancakeswap.finance/) trades for you. \n\n## Installation\n1. Create  virtual environment: `python -m venv venv`\n2. `. venv/bin/activate`\n3. `pip install -r requirements.txt`\n\n## Using it\n\nSet the environment variables:\n* `PRIVATE_KEY` private key of your wallet to trade with\n* `WS_URL` URL of web3 provider websocket (like [Quicknode](https://www.quicknode.com) or [Ankr](https://app.ankr.com/))\n* `PAIR_CONTRACT` a Pancakeswap pair contract, e.g. 0x4Cb29498595A733c4B0d710E766BB89345eE945b\n\nThen execute the following commands:\n\n1. `. venv/bin/activate` (if not done yet)\n2. `python cli.py` will start the CLI\n\n\n### Commands\n* _amount [AMOUNT]_: Set the amount to buy to AMOUNT BUSD\n* _balance_: Shows your balance of the target token and of BUSD\n* _approve_: Approves the Pancakeswap pair contract to spend your *target token*\n* _approve BUSD_: Approves the Pancakeswap pair contract to spend your BUSD\n* _allowance_: Shows if the Pancakeswap pair can spend your *target token*\n* _allowance BUSD_: Shows if the Pancakeswap pair can spend your BUSD\n* _gas [GAS]_: Set the gas price for swaps to GAS\n* _slippage [SLIPPAGE]_: Set the slippage for swaps to SLIPPAGE percent\n* _sell-percentage [PERCENTAGE]_: Sets the amount of *target token* to be sold to *PERCENTAGE* percent of its total amount at the time this command is executed. I.e. if you don' have the token when executing this command, the amount to be sold will remain \"0\" always.\n* _sell-amount [AMOUNT]_: Sets the amount to sell of *target token* to AMOUNT\n* _buy_: Perform buy transaction\n* _sell_: Perform sale transaction\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixmohr%2Fpancake-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelixmohr%2Fpancake-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixmohr%2Fpancake-cli/lists"}