Skip to main content

SDK for building multichain wallets and real-time financial dashboards.

Project description

🛠 Swifty Wallet SDK

Swifty SDK is a powerful, developer-friendly framework designed to simplify financial data integration and infrastructure management. Developed by Swifty Labs, it serves as the core engine for high-speed rate aggregation, seamless API interaction, and modern UI components.

Installation

pip install swifty

🚀 Project Status

Currently in Pre-Alpha (v0.1.0). Active development focuses on core stability, multi-chain expansion, and high-performance indexing. The stable v1.0.0 release with full API documentation is expected in 2026-2027.

🌟 Key Features

📊 Advanced Rate Aggregation

  • Multichain Intelligence: Full support for token architectures across TON, Solana, Ethereum, and more. Developers have total control over selecting specific networks and assets for monitoring.
  • Hybrid Pricing: Aggregation of market data from both CEX (Binance, Bybit) and DEX (via GeckoTerminal).
  • Forex Engine: Automated conversion between cryptocurrencies and global fiat currencies.

🔒 Security & Key Management

  • Mnemonic-Based Infrastructure: Built-in logic for the secure generation and management of individual user mnemonic phrases.
  • Local Sovereignty: All cryptographic operations and key handlings are performed locally on your device.
  • Isolated Asset Logic: High-precision balance tracking and invoicing designed for both personal and multi-user architectures.

⚡ Performance & Reliability

  • Anti-Ban Protection: Built-in 10-second global cooldown to prevent API rate-limiting and IP bans.
  • Forex Caching: Optimized 1-hour local cache for fiat rates to minimize external API dependency and increase speed.
  • Async-First Core: Fully asynchronous architecture powered by aiohttp for non-blocking execution.

🎨 Frontend Integration

  • Mini App Optimized: Tailored for seamless integration with Telegram Mini App (TMA) interfaces.
  • UI Logic Ready: Pre-designed data structures to power responsive price charts, balances, and payment statuses.

🛠 Usage example SwiftyRates

import asyncio
from swifty import SwiftyRates

# Initialize engine globally
engine = SwiftyRates(
    assets={
        'ton': ['ton', 'not', 'evaa'],
        'solana': ['sol', 'bonk', 'usdt'],
        'bsc': ['bnb', 'cake']
    },
    fiats=['usd', 'gbp', 'eur']
)

def format_currency(value: float) -> str:
    try:
        val = float(value)
        if val == 0: return "0.00"
        if val < 0.01:
            return f"{val:.6f}" 
        return f"{val:,.2f}".replace(",", " ")
    except Exception:
        return "0.00"

async def main():
    print("[ 🔄 ] Updating rates from all providers...")
    
    success = await engine.update()

    if success:
        print("[ ✅ ] Rates synchronized successfully!")
        
        print(
            "[ 📊 ] Current Market Prices:\n"
            f"   └ [ TON: {format_currency(engine.get_price('ton'))}$ | BNB: {format_currency(engine.get_price('bnb'))}$ | SOL: {format_currency(engine.get_price('sol'))}$ ]\n"
            f"   └ [ NOT: {format_currency(engine.get_price('not'))}$ | EVAA: {format_currency(engine.get_price('evaa'))}$ ]\n"
            f"   └ [ BONK: {format_currency(engine.get_price('bonk'))}$ | USDT: {format_currency(engine.get_price('usdt'))}$ ]\n"
            f"   └ [ CAKE: {format_currency(engine.get_price('cake'))}$ ]"
        )
    else:
        print("[ ❌ ] Failed to update rates. Check your internet connection or API limits.")

asyncio.run(main())

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

swifty-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

swifty-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file swifty-0.1.0.tar.gz.

File metadata

  • Download URL: swifty-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for swifty-0.1.0.tar.gz
Algorithm Hash digest
SHA256 360cf3e50602acd1cd579b7c1854e15ca11426cfa54d04b2ab7658f4e91f8b27
MD5 6728a4f8c120bab6932157191d685fc8
BLAKE2b-256 5bb6714371da9b945f0774e33f9231866ff87b6d45f9d7a89acbc1e40c5010f3

See more details on using hashes here.

File details

Details for the file swifty-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: swifty-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for swifty-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a39f66202083dbb111112e1f5ab1d7f6b32016deb4468dd27a8dc7f0e3462e60
MD5 37f24a8be9df22bb76bea2a14129e236
BLAKE2b-256 3610b41967952d385d32c798aed4131a632d131b0df9078de73d9017f3ec7414

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