Skip to main content

socialfi-api — the SocialFi API for any app (Python)

PyPI ci license

socialfi-api adds a social layer to any crypto app: login with X, wallets verified by a tiny on-chain payment, reviewed KOL badges, live trades and PnL of your users, leaderboards and copy trading — on Solana, BNB Chain, Base, Ethereum and Robinhood Chain. Sync and async.

Part of CabalSpy ID — the SocialFi layer for crypto apps. Website · Docs · API dashboard · Full SDK: cabalspy-id

pip install socialfi-api            # live trade stream: pip install "socialfi-api[stream]"
from socialfi_api import CabalSpyID, CabalSpyIDAuth, verify_webhook

auth = CabalSpyIDAuth("csid_...", client_secret=os.environ["CSID_CLIENT_SECRET"], redirect_uri="https://your.app/callback")
req = auth.create_authorization_url(scope=["openid", "profile", "wallets"])

csid = CabalSpyID()  # reads CABALSPY_ID_API_KEY / CABALSPY_API_KEY
board = csid.leaderboard(blockchain="solana", period="7d", sort="pnl_usd")

Contents: CabalSpyID / AsyncCabalSpyID (Data API), CabalSpyIDStream, CabalSpyIDAuth (OIDC), verify_webhook, errors and response types — the cabalspy_id.api module. Full reference: cabalspy-id README.

White-label

Keep your own login: import your users and the wallets they already have, by your own user id, and use their trades, PnL, leaderboards and trading competitions. See the White-Label docs.

csid.bulk_import_platform_users(users)   # any number, chunked and retried
board = csid.platform_leaderboard(blockchain="solana", period="7d", sort="pnl_usd")
comp = csid.create_competition(name="Weekly PnL", chain="solana", metric="pnl_usd", duration_hours=168)

Versions follow cabalspy-id: 0.6.0 depends on cabalspy-id 0.6.0. This package contains no code of its own — it re-exports part of cabalspy-id, so behaviour, fixes and types are always the same.

License

MIT

Metadata

Release files for socialfi-api 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for socialfi-api 0.6.0
File Size Uploaded Provenance Actions
socialfi_api-0.6.0.tar.gz 3.9 kB With provenance Details for socialfi_api-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for socialfi-api 0.6.0
File Interpreter ABI Platform Actions
socialfi_api-0.6.0-py3-none-any.whl Python 3 none any Details for socialfi_api-0.6.0-py3-none-any.whl

Total release size: 8.0 kB

Release files / socialfi_api-0.6.0.tar.gz

Download URL socialfi_api-0.6.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
98041119f73308f09a6386478c25951af5a69895e32df8330bcb0c4661849153
BLAKE2b-256 checksum
How to use checksums
97d623d168e6bc714ad53ebee8b2f47215245236cb408b38c05423dfde6bdff5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / socialfi_api-0.6.0-py3-none-any.whl

Download URL socialfi_api-0.6.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9fc5c89adbf11d7198947d02750322d6eba1612642fcf35b321fa548161b8fc
BLAKE2b-256 checksum
How to use checksums
05ac228e829262413d2f4d16594155707d94ea2f019821f732f2e0d40f26854e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Security for socialfi-api 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for socialfi_api-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page