Skip to content

Liquidation Sniper Bot

A Python bot that monitors liquidation levels and places limit orders at cascade zones. Framework: Python + asyncio.

Live Output Preview

If you ran this bot right now, the API would return:

# Live API output — March 12, 2026
Market Regime: Mean-Reverting
Safety Score: 96.2 (HIGH)

Composite Signals:
  BTC: buy (score: 0.172)\n  ETH: buy (score: 0.228)\n  SOL: buy (score: 0.219)\n  HYPE: strong_buy (score: 0.371)\n
# The bot would use this data to make trading decisions

Complete Source Code

Copy this code, replace YOUR_API_KEY with your key, and run:

import requests, time

API_KEY = "YOUR_API_KEY"
BASE = "https://algotick.dev"

def check_liquidations():
    """Monitor liquidation levels and place orders at cascade zones."""
    for coin in ["BTC", "ETH", "SOL", "HYPE"]:
        # Get liquidation data
        resp = requests.get(f"{{BASE}}/v1/signals/liquidations",
                           params={{"coin": coin, "api_key": API_KEY}})
        data = resp.json()

        # Get current depth for context
        depth = requests.get(f"{{BASE}}/v1/signals/depth",
                            params={{"coin": coin, "api_key": API_KEY}}).json()

        alerts = data.get("active_alerts", [])
        if alerts:
            for alert in alerts:
                price = alert.get("price")
                size = alert.get("size_usd")
                side = alert.get("side")
                print(f"[ALERT] {{coin}} {{side}} liquidation at ${{price}} "
                      f"(size: ${{size}})")

                # Place limit order at cascade zone
                # Your exchange API call here
                # exchange.place_limit_order(coin, "buy" if side == "long" else "sell", ...)

while True:
    check_liquidations()
    time.sleep(10)  # Check every 10 seconds

Setup Instructions

  1. Get an API key from the API page
  2. Replace YOUR_API_KEY in the code above
  3. Install dependencies: pip install requests (Python) or npm install node-fetch (TypeScript)
  4. Run the script and monitor the output
  5. Connect your exchange API for live trading

API Endpoints Used

Framework
Python + asyncio
Data Source
Algo Tick API
# All endpoints used by this template:
curl -H "X-API-Key: YOUR_KEY" https://algotick.dev/v3/signals/regime
curl -H "X-API-Key: YOUR_KEY" https://algotick.dev/v1/signals/composite
curl -H "X-API-Key: YOUR_KEY" https://algotick.dev/v3/signals/safety
curl -H "X-API-Key: YOUR_KEY" https://algotick.dev/v1/signals/volatility?coin=BTC

Don't just stare at the dashboard. Automate it.

Every metric on this page is available via our sub-millisecond API.
Build trading bots, backtest strategies, and power AI agents with institutional-grade data.

Get API Key →

More Python Templates

Other Frameworks