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.cloud/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.2.tar.gz (13.8 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.2-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: blot_sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 13.8 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.2.tar.gz
Algorithm Hash digest
SHA256 31b2765257bcfe941e4cdff29530f38e38d91530ae3b6f4bff47c6947ff3d058
MD5 a59b98f67c44d828b1e2183786b422d3
BLAKE2b-256 e43779ca2f20ba2f6406a8e680fb82561d8faa60a432d2684e0aef13811b711d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blot_sdk-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a78e329fec73c62c88dc76fe9779371b15b746dd4c49f1ffdc7cf30feeff60c7
MD5 e5f7196f1871b151d64751174077b50d
BLAKE2b-256 52ddb9bb5db9ab13ae6c23a130029f9c7e1f74143688f47e332226b11f58cc95

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