gitwtfhub

wtf is btc-yield-enhancer?

wepoets1107/btc-yield-enhancer — explained in plain English

Analysis updated 2026-05-18

54PythonAudience · developerComplexity · 4/5LicenseSetup · moderate

TL;DR

BTC Yield Enhancer is an automated Python trading bot that runs a maker grid strategy on Deribit's BTC/USDC market, buying low and selling high around a moving price anchor, with a live web dashboard.

Mindmap

mindmap
  root((btc-yield-enhancer))
    What it does
      Deribit maker grid strategy
      Anchor price tracking
      Volatility based thresholds
      Automatic balance protection
    Tech stack
      Python
      Flask
      WebSocket
      Deribit API
    Use cases
      Automated BTC market making
      Live dashboard monitoring
      Testnet strategy testing
    Audience
      Crypto traders
      Python developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Run an automated maker grid strategy that trades BTC/USDC on Deribit around a moving price anchor.

REASON 2

Monitor live price, balances, open orders, and profit and loss through a real-time web dashboard.

REASON 3

Test the strategy safely on Deribit's testnet before connecting it to a real mainnet account.

REASON 4

Adjust trade size, volatility bounds, and cooldown parameters at runtime without restarting the bot.

What's in the stack?

PythonFlaskWebSocketDeribit API

How it stacks up

wepoets1107/btc-yield-enhancerforsy-ai/forsy-trace-skillpetergpt/doomql
Stars545454
LanguagePythonPythonPython
Setup difficultymoderateeasyeasy
Complexity4/52/52/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Requires a Deribit account with API trading credentials, testnet is recommended before using real funds.

MIT license: use freely for any purpose, including commercial use, as long as you keep the copyright notice.

Wtf does this do

BTC Yield Enhancer is an automated trading bot that runs a market-making grid strategy on Deribit's BTC/USDC spot market. Rather than trying to predict where Bitcoin's price will go, it tries to profit from ordinary price swings by repeatedly buying low and selling high around a moving reference point. When the bot starts, it records the current price as an anchor point. It then measures how volatile the market has been recently, using the last hour of five-minute price candles, and turns that into a daily volatility estimate kept between 0.5 percent and 5 percent. That volatility figure sets a price channel around the anchor: a sell order is placed above it and a buy order is placed below it, both as maker orders, meaning they only execute if someone else takes them rather than immediately matching the market price. When either order fills, the anchor resets to that fill price, the volatility estimate is recalculated, and a three-minute cooldown prevents the bot from re-entering too quickly. If a fill happens far from the current market price, the anchor chases the market price and re-enters the channel. The bot also pauses buying if its USDC balance drops below 200 dollars, and pauses selling if its BTC value drops below 200 dollars, each resuming automatically once balances recover. The project includes a real-time web dashboard, built with Flask and a vanilla JavaScript frontend, reachable in a browser once the bot is running. It shows a live BTC price chart with the current anchor and threshold lines, account balances, open orders, recent trade history, and profit and loss, and lets you edit strategy parameters or API credentials without restarting the bot. Setup requires Python 3.10 or newer and a Deribit account with API trading credentials, which can be tried first on Deribit's testnet before running on the real exchange. The project is released under the MIT license.

Yoink these prompts

Prompt 1
Explain how BTC Yield Enhancer calculates its daily realized volatility and sets buy and sell thresholds around the anchor price.
Prompt 2
Walk me through setting up BTC Yield Enhancer with Deribit testnet API credentials and starting the strategy from the dashboard.
Prompt 3
What happens in BTC Yield Enhancer when a maker order fills far away from the current index price?
Prompt 4
Summarize the risk controls in BTC Yield Enhancer that pause buying or selling when balances get low.

Frequently asked questions

wtf is btc-yield-enhancer?

BTC Yield Enhancer is an automated Python trading bot that runs a maker grid strategy on Deribit's BTC/USDC market, buying low and selling high around a moving price anchor, with a live web dashboard.

What language is btc-yield-enhancer written in?

Mainly Python. The stack also includes Python, Flask, WebSocket.

What license does btc-yield-enhancer use?

MIT license: use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is btc-yield-enhancer to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is btc-yield-enhancer for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.