Rebalancer
crypto trading bot
Install / Use
/learn @pontifier/RebalancerREADME
I built A trading bot in the hours leading up to the MtGox shutdown. I was able to run it and see it working, but it only ran for a couple of hours before MtGox imploded.
I have now re-built it to work with BTC-E
Usage: add your BTC-E api key and secret to btce.py edit the rebalancer call in the main function to use your desired currency pair, ratio, spread multiplier, and trade amount. For best results, balance your account manualy before starting the bot.
python3 btce.py
This bot uses a technique called rebalancing to calculate trades to make on your behalf.
First your acount balance in USD and BTC are retrieved. A price for USD is calculated that would balance your account with the specified ratio. 2 trades for 0.01 BTC each are entered on either side of this value. The trades are checked every 60 seconds to see if they have been filled. If one trade is filled, the other trade is canceled.
Your current ratio is used to create trades, and the only feedback is whether trades happen or not.
!!!Caution, there may be some situations with low balance accounts in which the trades will oscilate and drain your account!!!
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
