Skip to main content

Autonomous trading bots SDK for Solana - Self-replicating, AI-powered trading infrastructure

Project description

BLOT SDK

Autonomous trading bots for Solana — Self-replicating, AI-powered trading infrastructure.

PyPI version Python 3.9+ License: MIT

Features

  • AI-Powered — Integrated with OpenClaw for intelligent decision making
  • 24/7 Autonomous — Bots run continuously without human intervention
  • Self-Cloning — Automatic replication across distributed nodes for maximum resilience
  • Zero-Logging — Complete privacy, no transaction data stored
  • High Speed — Sub-50ms execution on Solana
  • Easy to Use — Simple Python API for complex trading strategies

Installation

pip install blot-sdk

Quick Start

from blot_sdk import Bot, SniperBot, DCABot

# Initialize with your wallet
bot = Bot(
    private_key="your_private_key",
    rpc_url="https://api.mainnet-beta.solana.com"
)

# Create a sniper bot
sniper = SniperBot(
    target="new",           # Snipe all new tokens
    buy_amount=0.5,         # Buy with 0.5 SOL
    take_profit=[2.0, 5.0], # Sell at 2x and 5x
    stop_loss=0.5,          # Stop loss at -50%
)

# Deploy to BLOT infrastructure
bot.deploy(sniper, duration_days=30)

Available Bots

Sniper Bot

Instantly purchase tokens the moment liquidity is added.

from blot_sdk import SniperBot

bot = SniperBot(
    target="new",
    buy_amount=0.5,
    min_liquidity=10,
    take_profit=[2.0, 5.0, 10.0],
    stop_loss=0.5,
    check_honeypot=True,
    check_rug=True,
)

DCA Bot

Dollar-cost averaging into any Solana token.

from blot_sdk import DCABot

bot = DCABot(
    token="SOL",
    amount=100,              # USDC per purchase
    frequency="daily",
    time="09:00",
    buy_only_below=150,      # Only buy if SOL < $150
)

Copy Trade Bot

Mirror the trades of successful wallets.

from blot_sdk import CopyTradeBot

bot = CopyTradeBot(
    wallets=["wallet1...", "wallet2..."],
    size_mode="percentage",
    size_value=10,           # 10% of their trade size
    copy_sells=True,
)

Grid Bot

Profit from sideways markets with automated grid trading.

from blot_sdk import GridBot

bot = GridBot(
    base_token="SOL",
    quote_token="USDC",
    lower_price=120,
    upper_price=180,
    grid_count=20,
    total_investment=100,
)

Autonomy & Self-Preservation

BLOT bots operate 24/7 without downtime, automatically clone themselves across distributed nodes, and execute trades with zero human intervention:

from blot_sdk import Bot

bot = Bot(private_key="...")

# Enable 24/7 autonomous operation
bot.enable_autonomy(
    mode="persistent",
    auto_restart=True,
    health_checks=True
)

# Enable self-cloning on threat detection
bot.enable_self_cloning(
    trigger="on_threat",
    target_nodes=3,
    regions=["us", "eu", "asia"]
)

# Zero-logging mode for privacy
bot.set_logging(enabled=False)

# Auto-migrate if node goes down
bot.on_node_failure(action="migrate", priority="immediate")

Self-Cloning

BLOT bots automatically clone themselves across distributed nodes:

from blot_sdk import SniperBot

bot = SniperBot(
    # ... config ...
    clone_count=5,                    # Minimum active clones
    regions=["us", "eu", "asia"],     # Geographic distribution
    failover_timeout=100,             # ms before electing new leader
)

AI Integration

Leverage OpenClaw AI for intelligent trading decisions:

from blot_sdk import Bot, AI

bot = Bot(private_key="...")

# AI-powered market analysis
analysis = await bot.ai.analyze_token("JUP")
print(analysis.sentiment)      # bullish/bearish
print(analysis.risk_score)     # 0-100
print(analysis.recommendation) # buy/sell/hold

# AI-filtered copy trading
copy_bot = CopyTradeBot(
    wallets=["..."],
    ai_filter=True,
    ai_confidence_threshold=0.7,
)

Documentation

Full documentation available at blot.com/docs

Requirements

  • Python 3.9+
  • Solana wallet with SOL for transaction fees
  • $BLOT tokens for runtime access

Links

License

MIT License - see LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blot_sdk-0.1.1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blot_sdk-0.1.1-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file blot_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: blot_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for blot_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 81a254a89caad28a997b825e8d822f9f0ca31327cb21af6f7738cb590a97cb91
MD5 85526beb4d4cbd8ff5c48be9a892a093
BLAKE2b-256 950822a3fcdbf75487f2a796ef3c9acb57c0e62cc5ba7c743d7dee2e80846c82

See more details on using hashes here.

File details

Details for the file blot_sdk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: blot_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for blot_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b4a17b3d8ffec80a9b81839a2891dadf1fb017f00b556dc88af89f4e9f38b7fa
MD5 84350f7d48a7d4c37e4317c2566ab995
BLAKE2b-256 b3cf8efcff95e09eed6a264706922388fbca14635311074e211fc2ed2d7c1d55

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page