{"id":25983894,"url":"https://github.com/socktrader/socktrader","last_synced_at":"2025-04-12T21:22:46.777Z","repository":{"id":33797242,"uuid":"154525845","full_name":"SockTrader/SockTrader","owner":"SockTrader","description":"🚀 Websocket based trading bot for 💰cryptocurrencies 📈","archived":false,"fork":false,"pushed_at":"2023-12-01T04:12:08.000Z","size":8965,"stargazers_count":430,"open_issues_count":14,"forks_count":67,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-04T05:41:50.538Z","etag":null,"topics":["algorithmic-trading","bitcoin","bot","candlesticks","crypto","cryptocurrencies","cryptocurrency","exchange","hitbtc","javascript","nodejs","trading","trading-algorithms","trading-bot","trading-platform","trading-strategies","tradingbot","typescript","websockets"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/SockTrader.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2018-10-24T15:34:52.000Z","updated_at":"2025-03-27T09:25:40.000Z","dependencies_parsed_at":"2024-06-20T15:33:36.903Z","dependency_job_id":"ac19a1ff-6f36-429d-a13b-397fc96aff92","html_url":"https://github.com/SockTrader/SockTrader","commit_stats":{"total_commits":719,"total_committers":9,"mean_commits":79.88888888888889,"dds":0.05841446453407506,"last_synced_commit":"43581401d5e1c2c9b2122a0d03b2b6124142a81b"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SockTrader%2FSockTrader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SockTrader%2FSockTrader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SockTrader%2FSockTrader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SockTrader%2FSockTrader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SockTrader","download_url":"https://codeload.github.com/SockTrader/SockTrader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248632706,"owners_count":21136743,"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":["algorithmic-trading","bitcoin","bot","candlesticks","crypto","cryptocurrencies","cryptocurrency","exchange","hitbtc","javascript","nodejs","trading","trading-algorithms","trading-bot","trading-platform","trading-strategies","tradingbot","typescript","websockets"],"created_at":"2025-03-05T10:34:54.161Z","updated_at":"2025-04-12T21:22:46.746Z","avatar_url":"https://github.com/SockTrader.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\u003cimg width=\"160\" height=\"160\" src=\"https://raw.githubusercontent.com/SockTrader/SockTrader/master/docs/assets/socktrader_logo.png\" alt=\"SockTrader logo\" /\u003e\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eSockTrader v2\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\u003cb\u003eCryptocurrency trading bot\u003c/b\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.gnu.org/licenses/gpl-3.0\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-GPL%20v3-blue.svg\" alt=\"License: GPL v3\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/SockTrader/SockTrader\"\u003e\u003cimg src=\"https://codecov.io/gh/SockTrader/SockTrader/branch/master/graph/badge.svg\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://sonarcloud.io/dashboard?id=SockTrader_SockTrader\"\u003e\u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=SockTrader_SockTrader\u0026metric=reliability_rating\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://sonarcloud.io/dashboard?id=SockTrader_SockTrader\"\u003e\u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=SockTrader_SockTrader\u0026metric=sqale_rating\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://circleci.com/gh/SockTrader\"\u003e\u003cimg src=\"https://circleci.com/gh/SockTrader/SockTrader/tree/master.svg?style=shield\" alt=\"Build status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://codeclimate.com/github/SockTrader/SockTrader/maintainability\"\u003e\u003cimg src=\"https://api.codeclimate.com/v1/badges/19589f9237d31ca9dcf6/maintainability\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cb\u003eJoin the community \u003ca href=\"https://join.slack.com/t/socktrader/shared_invite/zt-12ncj65l3-T7cacrk7~cEacjZUyxnamA\"\u003e\u003cimg valign=\"middle\" src=\"https://img.shields.io/badge/Slack-4A154B?style=for-the-badge\u0026logo=slack\" alt=\"Slack\"\u003e\u003c/a\u003e\u003c/b\u003e\u003c/p\u003e\n\n## What is \"SockTrader\"?\n\nSockTrader is an open source cryptocurrency trading bot. You can use it to automatically buy and/or sell cryptocurrencies based on a strategy that you've programmed.\nThe strategy basically contains a set of rules that will define when and how the bot should act in the cryptocurrency market. These rules can be based on technical analysis ([what is technical analysis?](https://www.investopedia.com/terms/t/technicalanalysis.asp))\nor you could simply tell the bot to buy/sell at certain price levels. In fact, it's up to you to decide the rules of the game!\n\nThe name \"SockTrader\" comes from web**sock**et based trading bot. Which means that SockTrader will try to make use of a realtime connection with the exchange. This has the advantage\nthat one can act very quickly in a changing market with low latency.\n\n## Looking for SockTrader v1?\n\nThe [dashboard](https://socktrader.io/) is currently incompatible with SockTrader v2.\nUse [SockTrader v1](https://github.com/SockTrader/SockTrader/tree/socktrader-v1) instead\n\n## Features\n\n- 🚀 Realtime super-fast websocket trading.\n- 📈 50+ Technical indicators. ([docs](https://github.com/anandanand84/technicalindicators))\n- 🌈 Written in TypeScript!\n- 🌿 Unit tested source code.\n- 📝 Paper trading a strategy on LIVE exchange data.\n- 🏡 Backtesting engine with local data.\n- 🚢 Run SockTrader inside a docker container.\n- More features soon..\n\n## Getting started\n\n# Quickstart\n\n1. Git clone `git clone git@github.com:SockTrader/SockTrader.git \u0026\u0026 cd SockTrader`\n2. Install NodeJS dependencies. `npm i`\n3. Copy `config/default.json` to `config/local.json` and edit.\n4. Start postgres database `docker-compose up`\n5. Run the MovingAverageStrategy on LocalExchange. `npm run start:backtest`\n\n## Connect your Binance account\n\nYou feel like your strategy is production ready?\nGood! We'll help you to connect your SockTrader strategy to your Binance account.\n\n1. Copy `config/default.json` to `config/local.json`\n2. Go to your Binance account under API Management, create a new API key\n3. Provide the apiSecret and apiKey in `config/local.json`\n4. Don't forget to change the exchange in your strategy to `new Binance()` and you're good to go!\n\n### API key restrictions\n\nBy default, the newly created API key does not allow you to place orders, only reads are allowed.\nTo get started:\n\n1. Go to your Binance account\n2. Under API restrictions enable 'Enable Spot \u0026 Margin Trading'\n\n## Join the community\n\n\u003ca href=\"https://join.slack.com/t/socktrader/shared_invite/zt-12ncj65l3-T7cacrk7~cEacjZUyxnamA\"\u003e\u003cimg src=\"https://img.shields.io/badge/Slack-4A154B?style=for-the-badge\u0026logo=slack\" alt=\"Slack\"\u003e\u003c/a\u003e\n\n## Contributors\n\n\u003ca href=\"https://github.com/SockTrader/SockTrader/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=SockTrader/SockTrader\" /\u003e\n\u003c/a\u003e\n\n## DISCLAIMER\n\n    Using a trading bot does not mean guaranteed profit.\n    Also, trading crypto currency is considered high risk.\n    Losses are possible, which SockTrader cannot be held responsible for.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocktrader%2Fsocktrader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsocktrader%2Fsocktrader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocktrader%2Fsocktrader/lists"}