Official, production-ready SDKs for integrating WealthGuard's financial intelligence, transaction processing, and portfolio APIs into your applications.
# 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_...")
| Language | Package | Version | Status | Docs |
|---|---|---|---|---|
| JavaScript / TypeScript | @wealthguard/sdk |
v3.2.1 | Stable | View Docs |
| Python | wealthguard-python |
v2.8.0 | Stable | View Docs |
| PHP | wealthguard/wealthguard-php |
v2.4.3 | Stable | View Docs |
| Go | github.com/wealthguard/go-sdk |
v2.1.0 | Beta | View Docs |
| Rust | wealthguard-rs |
v0.9.2 | Experimental | View Docs |
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; } }
Complete endpoint documentation with request/response schemas, error codes, and authentication flows.
Read API DocsTest integrations risk-free with mock accounts, simulated transactions, and webhook simulators.
Configure SandboxContribute to open-source SDKs, report issues, or request features for your preferred language.
View on GitHubGet help from our engineering team via Discord, GitHub Discussions, or priority email support.
Contact Dev Support