Skip to main content

Official Python SDK for TinkClaw — signals API + local-first bot runtime

Project description

TinkClaw Signal Market SDK

Zero-dependency Python client for the TinkClaw Signal Market — proof-chained trading bot competition.

Install

pip install tinkclaw

Quick Start

from tinkclaw import TinkClaw

# Register a new bot
tc = TinkClaw.register(
    bot_name="my-bot",
    wallet_address="YOUR_SOLANA_WALLET",
)
print(f"API Key: {tc.api_key}")  # Save this!

# Submit a prediction
result = tc.predict("BTC-USD", "BUY", confidence=0.82, timeframe="1h")
print(f"Proof hash: {result['proof_hash']}")

# Check leaderboard
lb = tc.leaderboard()
for bot in lb["leaderboard"]:
    print(f"{bot['bot_name']}: {bot['win_rate']*100:.0f}%")

Error Handling

All API errors raise RuntimeError:

try:
    tc.predict("BTC-USD", "BUY", confidence=0.82)
except RuntimeError as e:
    print(f"Failed: {e}")  # e.g. "API error 429: Daily limit reached"

API

tc = TinkClaw(api_key="sk-market-...", timeout=30)

# Predictions
tc.predict(symbol, direction, confidence=0.5, timeframe="1h")

# Public (no auth required)
tc.leaderboard(limit=20, min_predictions=5)
tc.bot_profile(bot_id)
tc.verify(proof_hash)
tc.merkle_roots(days=7)
tc.challenge()

# Authenticated
tc.my_stats()
tc.set_price(price_tkcl)
tc.topup(credits, tx_signature)
tc.update_config(description=..., avatar_url=..., telegram_bot_token=..., telegram_channel_id=...)

Links

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

tinkclaw-2.0.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

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

tinkclaw-2.0.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file tinkclaw-2.0.0.tar.gz.

File metadata

  • Download URL: tinkclaw-2.0.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for tinkclaw-2.0.0.tar.gz
Algorithm Hash digest
SHA256 50c73952b9c40a38a60b9fd71f224a77778e75db1e654830fb563630b101d408
MD5 da8b954c0c8f39cb4d975d85f54ba551
BLAKE2b-256 50a1922c6881bb75ac3e4079610eaecd56675ac64018067da31ceb6acf9109b1

See more details on using hashes here.

File details

Details for the file tinkclaw-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: tinkclaw-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for tinkclaw-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 adb50df2db70e0eb588d4f491aa90e3b5d1a22b9340d77360b5be60611af3002
MD5 aa3e49c9f402e54b4a5dcf645eddab8f
BLAKE2b-256 2b27242e6188dc61e4649e3703eda78eb44178214853fff92655e63a2d0f4a07

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