SystemSelf reportedCryptoTypeScriptalgorithmic-tradingbitcoinbotcandlestickscrypto

SockTrader

πŸš€ Websocket based trading bot for πŸ’°cryptocurrencies πŸ“ˆ

System Structure

Data Used
BinanceOHLCV/ν˜Έκ°€/체결 데이터
Rules / Strategy

μ €μž₯μ†Œλ³„ μ „λž΅/μ‹€ν–‰ 쑰건 확인 ν•„μš”

Execution

κ±°λž˜μ†Œ API 기반 μžλ™ μ£Όλ¬Έ μ‹€ν–‰

Editor Summary

μ €μž₯μ†Œ μ„€λͺ…κ³Ό 곡개 메타데이터 κΈ°μ€€μœΌλ‘œ μ•”ν˜Έν™”ν 거래 봇, κ±°λž˜μ†Œ API/ν”„λ ˆμž„μ›Œν¬, λ°±ν…ŒμŠ€νŠΈ, 기술적 뢄석 μ„±κ²©μ˜ ν”„λ‘œμ νŠΈλ‘œ νŒŒμ•…ν–ˆμŠ΅λ‹ˆλ‹€. 확인 κ·Όκ±°λŠ” README, μ €μž₯μ†Œ ν† ν”½, μ €μž₯μ†Œ μ„€λͺ…, GitHub μ§€ν‘œ, νŒŒμ΄ν”„λΌμΈ ν•„λ“œμ΄λ©°, μ£Όμš” λ°μ΄ν„°λŠ” Binance, OHLCV/ν˜Έκ°€/체결 λ°μ΄ν„°μž…λ‹ˆλ‹€. μ „λž΅/μ‹€ν–‰ 쑰건은 μ €μž₯μ†Œλ³„ λ¬Έμ„œμ™€ μ½”λ“œ 확인이 ν•„μš”ν•˜λ©°, μ‹€ν–‰ 방식은 "κ±°λž˜μ†Œ API 기반 μžλ™ μ£Όλ¬Έ μ‹€ν–‰"라고 보수적으둜 κΈ°λ‘ν–ˆμŠ΅λ‹ˆλ‹€. GitHub μ§€ν‘œλŠ” 별 461개, 포크 66κ°œμž…λ‹ˆλ‹€.

RepositorySockTrader/SockTrader
CreatorSockTrader
Stars / Forksβ˜… 461 / 66
LicenseGPL-3.0
Last Updated2023-12-01
Snapshot Date2026-07-08 (README below is a copy from this date)

This is third-party open-source code. QuantField does not guarantee its behavior or safety. Review the code before installing or running it.

README

What is "SockTrader"?

SockTrader 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. The 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?) or 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!

The name "SockTrader" comes from websocket based trading bot. Which means that SockTrader will try to make use of a realtime connection with the exchange. This has the advantage that one can act very quickly in a changing market with low latency.

Looking for SockTrader v1?

The dashboard is currently incompatible with SockTrader v2. Use SockTrader v1 instead

Features

  • πŸš€ Realtime super-fast websocket trading.
  • πŸ“ˆ 50+ Technical indicators. (docs)
  • 🌈 Written in TypeScript!
  • 🌿 Unit tested source code.
  • πŸ“ Paper trading a strategy on LIVE exchange data.
  • 🏑 Backtesting engine with local data.
  • 🚒 Run SockTrader inside a docker container.
  • More features soon..

Getting started

Quickstart

  1. Git clone git clone git@github.com:SockTrader/SockTrader.git && cd SockTrader
  2. Install NodeJS dependencies. npm i
  3. Copy config/default.json to config/local.json and edit.
  4. Start postgres database docker-compose up
  5. Run the MovingAverageStrategy on LocalExchange. npm run start:backtest

Connect your Binance account

You feel like your strategy is production ready? Good! We'll help you to connect your SockTrader strategy to your Binance account.

  1. Copy `confi