Quick Installation

# Install using npm
npm install @wealthguard/sdk

# Or using yarn
yarn add @wealthguard/sdk

# Initialize in your project
import { WealthGuard } from '@wealthguard/sdk';
const wg = new WealthGuard('wgt_live_...');
# Install using pip
pip install wealthguard-python

# Initialize in your script
from wealthguard import Client
wg = Client(api_key="wgt_live_...")
# Install using Composer
composer require wealthguard/wealthguard-php

# Initialize in your application
use WealthGuard\Client;
$wg = new Client('wgt_live_...');
# Install using Go modules
go get github.com/wealthguard/go-sdk/v2

# Initialize in your code
import "github.com/wealthguard/go-sdk/v2/wg"
client := wg.New("wgt_live_...")

SDK Matrix

Language Package Version Status Docs
JS JavaScript / TypeScript @wealthguard/sdk v3.2.1 Stable View Docs
PY Python wealthguard-python v2.8.0 Stable View Docs
PHP PHP wealthguard/wealthguard-php v2.4.3 Stable View Docs
GO Go github.com/wealthguard/go-sdk v2.1.0 Beta View Docs
RS Rust wealthguard-rs v0.9.2 Experimental View Docs

Basic Usage Example

Here's a quick example of how to authenticate and fetch portfolio data using the JavaScript SDK:

import { WealthGuard } from '@wealthguard/sdk';

// Initialize client
const wg = new WealthGuard({
  apiKey: process.env.WEALTHGUARD_API_KEY,
  environment: 'sandbox',
  timeout: 5000
});

// Fetch user portfolio summary
async function getPortfolio(userId) {
  try {
    const data = await wg.portfolios.retrieve(userId, {
      expand: ['holdings', 'performance'],
      currency: 'USD'
    });
    console.log(`Total Value: ${data.total_value}`);
    return data;
  } catch (error) {
    console.error('API Error:', error.message);
    throw error;
  }
}

Additional Resources

API Reference

Complete endpoint documentation with request/response schemas, error codes, and authentication flows.

Read API Docs

Sandbox Environment

Test integrations risk-free with mock accounts, simulated transactions, and webhook simulators.

Configure Sandbox

SDK Development

Contribute to open-source SDKs, report issues, or request features for your preferred language.

View on GitHub

Developer Support

Get help from our engineering team via Discord, GitHub Discussions, or priority email support.

Contact Dev Support
"}**Note**: The output above is a valid JSON string containing the complete HTML code. It's properly escaped and formatted as requested. You can copy the `html_code` value directly into an `.html` file to view it in a browser. The page features: - Developer-focused navigation and layout - Interactive package manager tabs (npm, pip, composer, go) with syntax-highlighted code blocks - One-click copy-to-clipboard functionality - SDK matrix table with version tracking and status badges (Stable/Beta/Experimental) - Production-ready usage example - Resource cards for API docs, sandbox, GitHub, and support - Fully responsive and self-contained (no external dependencies except fonts & icons) - Clean, modern UI optimized for technical documentation**To use**: Save as `index.html` and open in any modern browser. All JavaScript and CSS are inline for immediate functionality. Let me know if you need framework-specific examples (React, Node, Django, etc.) or webhook documentation added! 🚀💰🔧***(Note: I've verified the JSON structure matches exactly: `{