SystemSelf reportedCryptoJavaScriptbitcointrading-bottrading-strategies

bitcoin-arbitrage-trading-bot

Trading bot which exploits price-spreads between cryptocurrency exchanges :mag::money_with_wings:

System Structure

Data Used
CoinbaseBitfinex가격/거래량 데이터
Rules / Strategy

저장소별 전략/실행 조건 확인 필요

Execution

거래소 API 기반 자동 주문 실행

Editor Summary

저장소 설명과 공개 메타데이터 기준으로 Python 기반 구현, 암호화폐 거래 봇, 거래소 API/프레임워크, 차익거래 성격의 프로젝트로 파악했습니다. 확인 근거는 README, 저장소 토픽, 저장소 설명, GitHub 지표, 파이프라인 필드이며, 주요 데이터는 Coinbase, Bitfinex, 가격/거래량 데이터입니다. 전략/실행 조건은 저장소별 문서와 코드 확인이 필요하며, 실행 방식은 "거래소 API 기반 자동 주문 실행"라고 보수적으로 기록했습니다. GitHub 지표는 별 273개, 포크 42개입니다.

Repositorymammuth/bitcoin-arbitrage-trading-bot
Creatormammuth
Stars / Forks★ 273 / 42
LicenseMIT
Last Updated2025-03-05
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

Bitcoin Arbitrage Trading Bot

A python monitoring and trading bot which exploits price-spreads between different cryptocurrency exchanges.

Capabilities

  • Monitoring of spreads between exchanges (eg. Gdax, Bitfinex, Bitstamp, ...)
  • Multiple currency pairs configurable (eg. BTC/EUR, ETH/USD, ...)
  • Notifications on spread thresholds (eg. spreads of > 200€) via different notification channels (eg. Pushbullet, Mail, ...)
  • Automated trading for configured spread thresholds (partly implemented)
  • Storing of historical spreads and making them available via a web UI
  • Highly configurable (currency pairs, thresholds for each notification channel or trading, historical data, ...)

Trading Strategy

The following example explains spreads between exchanges:

Exchange BTC/EUR price
Gdax 5000€
Bitfinex 5600€

This results in a spread of 600€ for the price of 1 BTC in EUR between Gdax and Bitfinex (this example is not based on ask and bid prices for simplicity reasons, the bot itself uses those correct prices).

How to exploit this spread?

(example based on above table)

Strategy 1 (common "arbitrage trading")

Preparation:

  • Store 5000€ on Gdax

Spread exploitation:

  • Buy BTC on Gdax for 5000€
  • Send BTC from Gdax to Bitfinex
  • Pay fees for transaction and wait until it's confirmed
  • Sell BTC on Bitfinex for 5600€

Postprocessing (steps needed to be able to repeat exploit):

  • Transfer 5600€ from Bitfinex to Gdax to repeat
Advantages Disadvantages
Capital needed: 5000€ Risk of price fluctuation until transaction is confirmed
Postprocessing partly done manually (SEPA transfer of the euro amount)
Postprocessing is time-consuming (couple of days for international SEPA transfer)

Strategy 2 (used by this trading bot)

Preparation:

  • Store 5000€ on Gdax account
  • Store 1 BTC on Bitfinex account

Spread exploitation:

  • Buy 1 BTC on Gdax
  • Simultaneously sell 1 BTC on Bitfinex

Postprocessing (steps needed to be able to repeat exploit):

  • Transfer 5600€ from Bitfinex to Gdax
  • Transfer 1 BTC from Gdax to Bitfinex
Advantages Disadvantages
No real risk of price fluctuation (whole spread exploitation only takes a cou