{"id":16979352,"url":"https://github.com/yuichiroaoki/1inch-trading-bot","last_synced_at":"2026-02-24T16:33:12.010Z","repository":{"id":58697544,"uuid":"415179707","full_name":"yuichiroaoki/1inch-trading-bot","owner":"yuichiroaoki","description":"Trading bot on polygon using 1inch api","archived":false,"fork":false,"pushed_at":"2021-10-10T06:10:11.000Z","size":835,"stargazers_count":24,"open_issues_count":0,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T21:22:27.877Z","etag":null,"topics":["1inch","bot","ethereum","polygon","trading"],"latest_commit_sha":null,"homepage":"https://yuichiroaoki.medium.com/building-a-trading-bot-with-1inch-api-on-polygon-9747aedf2f83","language":"TypeScript","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/yuichiroaoki.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}},"created_at":"2021-10-09T02:25:20.000Z","updated_at":"2024-12-05T17:35:36.000Z","dependencies_parsed_at":"2022-09-06T13:11:23.457Z","dependency_job_id":null,"html_url":"https://github.com/yuichiroaoki/1inch-trading-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuichiroaoki%2F1inch-trading-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuichiroaoki%2F1inch-trading-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuichiroaoki%2F1inch-trading-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuichiroaoki%2F1inch-trading-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuichiroaoki","download_url":"https://codeload.github.com/yuichiroaoki/1inch-trading-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505790,"owners_count":21115353,"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":["1inch","bot","ethereum","polygon","trading"],"created_at":"2024-10-14T01:45:34.122Z","updated_at":"2026-02-24T16:33:06.969Z","avatar_url":"https://github.com/yuichiroaoki.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple 1inch Trading Bot\n## Trading Strategy\n![image](https://user-images.githubusercontent.com/45054071/136684673-0bda3848-459a-47a3-8bff-92e65f1c3144.png)\n\nThis bot trades based on the price change from the last buy/sell action. First, it sets the base price to the current, and update it when the bot executes trade. Here is an example of how this would trade when trading Matic and DAI. It sets the threshold as 3%.\n\n![image](https://user-images.githubusercontent.com/45054071/136684280-3c249357-cfd3-402d-b92c-3d61c2ba378d.png)\n\n## Installation and Setup\n\n### 1. Install [Node.js](https://nodejs.org/en/) \u0026 [yarn](https://classic.yarnpkg.com/en/docs/install/#windows-stable), if you haven't already.\n\n### 2. Clone This Repo\n\nRun the following command.\n\n```console\ngit clone https://github.com/yuichiroaoki/1inch-trading-bot.git\n```\n\n## Quickstart\n\nRight now this repo only works with hardhat mainnet fork.\n\n### 1. Setup Environment Variables\n\nYou'll need an ALCHEMY_POLYGON_RPC_URL environment variable. You can get one from [Alchemy website](https://alchemy.com/?r=33851811-6ecf-40c3-a36d-d0452dda8634) for free.  \nAlso you need to add your PRIVATE_KEY environment variable, with a private key from you wallet.\n\n\\*Note: If using metamask, you'll have to add a 0x to the start of your private key)\n\nThen, you can create a .env file with the following.\n\n```\nALCHEMY_POLYGON_RPC_URL=\u003cyour-own-alchemy-polygon-rpc-url\u003e\nPRIVATE_KEY=\u003cyour-private_key\u003e\n```\n\n### 2. Install Dependencies\n\nRun the following command.\n\n```console\nyarn install\n```\n\n### 3. Set Config (Optional)\n\nChange the config in src/config.ts if you want.\n\n### 4. Run Bot\n\n```\nyarn start\n```\n\nYou can also deploy with docker.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuichiroaoki%2F1inch-trading-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuichiroaoki%2F1inch-trading-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuichiroaoki%2F1inch-trading-bot/lists"}