OpenViSTAI · Agents · Blockchain · Crypto
Menu
Exchanges & Trading

Socktrader

SockTrader is an open-source TypeScript cryptocurrency trading bot that executes user-programmed buy-and-sell strategies through real-time exchange connections and includes paper trading and local-data backtesting.

Independent OpenViST project profile, based on linked sources.

Socktrader — Programmed strategies built around technical analysis or price levels
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use SockTrader when you want to build and run your own coded strategy, test it through paper trading or local-data backtesting, or configure a Binance connection for exchange trading.

Who it is for

  • Developers who want to define cryptocurrency trading rules in code.
  • Strategy builders who want to paper-trade on live exchange data or backtest against local data.
  • Binance users configuring a strategy for exchange trading.

Documented uses

  • Write rules for when and how a bot should buy or sell.
  • Use technical indicators or specified price levels as strategy rules.
  • Paper-trade a strategy using live exchange data.
  • Backtest a strategy with local market data.
  • Configure a Binance connection for a strategy.
Before you choose

Requirements & limits

The repository identifies SockTrader as open source under the GPL-3.0 license.

  • The documented local quickstart uses Node.js dependencies, PostgreSQL and Docker Compose.
  • The README documents a Binance connection and API credentials for live trading.
  • New Binance API keys are read-only by default; order placement requires enabling Spot & Margin Trading.
  • The README says the SockTrader v2 dashboard is incompatible with v2 and points users seeking the dashboard to SockTrader v1.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Set up and run the local backtest example

Prepare SockTrader and run MovingAverageStrategy against LocalExchange.

Before you start

  • Node.js
  • PostgreSQL, started through Docker Compose

Steps

  1. Clone the SockTrader repository and change into its directory.

  2. Install dependencies with the command below.

    Documented command
    npm i
  3. Copy config/default.json to config/local.json and edit the local configuration.

  4. Start PostgreSQL with docker-compose up.

  5. Run the command below to run MovingAverageStrategy on LocalExchange.

    Documented command
    npm run start:backtest

Expected outcome

The documented MovingAverageStrategy backtest runs against LocalExchange.

Guide limitations

  • This procedure documents a local backtest, not live exchange trading.
  • Backtesting uses local data.
Source-based practical guide

Configure a Binance connection for a strategy

Configure SockTrader to connect a strategy to Binance for exchange trading.

Before you start

  • A Binance account and API key and secret
  • A local SockTrader configuration
  • An API key with Spot & Margin Trading enabled to place orders

Steps

  1. Copy config/default.json to config/local.json.

  2. Create an API key in Binance API Management.

  3. Add the API key and secret to config/local.json.

  4. Change the exchange in the strategy to new Binance().

  5. To place orders, enable Spot & Margin Trading in the API key restrictions.

Expected outcome

The strategy is configured to connect to Binance; placing orders depends on the API key’s trading permission.

Guide limitations

  • New Binance API keys allow reads by default and cannot place orders until the documented trading permission is enabled.
  • The project documentation does not establish deployment to a particular cloud provider.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
13 November 2026
Original website title
SockTrader/SockTrader · Official homepage title · retained in its source language