{"id":27139277,"url":"https://github.com/pawiromitchel/ftx-dca-script","last_synced_at":"2026-01-27T20:31:58.221Z","repository":{"id":43278377,"uuid":"405134391","full_name":"pawiromitchel/ftx-dca-script","owner":"pawiromitchel","description":"A DCA script for FTX","archived":false,"fork":false,"pushed_at":"2025-12-31T20:48:10.000Z","size":17,"stargazers_count":5,"open_issues_count":7,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-04T19:31:23.733Z","etag":null,"topics":["automation","crypto","dca","ftx"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pawiromitchel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-09-10T15:52:08.000Z","updated_at":"2022-09-11T13:45:05.000Z","dependencies_parsed_at":"2022-09-01T07:01:55.003Z","dependency_job_id":"d6987edc-ea29-4d0f-a9a5-06a7b8088d76","html_url":"https://github.com/pawiromitchel/ftx-dca-script","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pawiromitchel/ftx-dca-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawiromitchel%2Fftx-dca-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawiromitchel%2Fftx-dca-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawiromitchel%2Fftx-dca-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawiromitchel%2Fftx-dca-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pawiromitchel","download_url":"https://codeload.github.com/pawiromitchel/ftx-dca-script/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawiromitchel%2Fftx-dca-script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28821739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T18:44:20.126Z","status":"ssl_error","status_checked_at":"2026-01-27T18:44:09.161Z","response_time":168,"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":["automation","crypto","dca","ftx"],"created_at":"2025-04-08T04:57:33.737Z","updated_at":"2026-01-27T20:31:58.207Z","avatar_url":"https://github.com/pawiromitchel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple DCA script for FTX\nA simple script to automate the buying or selling process.    \nJust run the script on your desired server and forget about it 💤\n\n## Made with\n- [ftx-api-rest-extended](https://www.npmjs.com/package/ftx-api-rest-extended), for interacting with the FTX Exchange\n- [node-cron](https://www.npmjs.com/package/node-cron), for the scheduler\n- [dotenv](https://www.npmjs.com/package/dotenv), for parsing the configurations within .env file\n\n## Installing\n1. clone and install the npm packages\n```bash\ngit clone https://github.com/pawiromitchel/ftx-dca-bot\ncd ftx-dca-bot\nnpm install\n```\n\n2. request a API from your [FTX account](https://ftx.com/#a=4341346)\n3. create a `.env` file based on the `.env.example`\n4. modify the parameters in the `app.js`\n\n*This example will convert 100 USD into BTC every Tuesday*\n```bash\n# ftx api creds\nKEY=key1\nSECRET=secret1\nSUBACCOUNT=subaccount1\n\n# settings \nFROM=USD\nTO=BTC\nORDERSIZE=100\n\n# cron schedule (https://crontab.guru/examples.html)\nSCHEDULE=0 0 * * 2\n```\n5. run the script\n```bash\nnode app.js\n```\n\n## Limit orders\nThere's a sample code in the `app.js` you can check out how to place a limit order `5%` below the market price\n\n```js\nconst pair = `${_to}/${_from}`; // this will create the pair BTC/USD for example\nconst priceReq = await FTX_INSTANCE.getPrice(pair);\nconst price = priceReq.price * (95 / 100); //  place order 5% under market price\nconst sizeInX = _size / price;  // convert the usd to x\nconst placeOrder = await FTX_INSTANCE.createOrder(sizeInX, pair, \"buy\", \"limit\", price);\n```\n***Market orders have a minimum size (around $3), you can't swap cents like OTC***\n\n*Cron syntax cheatsheet*\n\u003cimg src=\"https://i.stack.imgur.com/89z4w.png\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawiromitchel%2Fftx-dca-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpawiromitchel%2Fftx-dca-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawiromitchel%2Fftx-dca-script/lists"}