code-simpleAssets & Treasury APIs

All endpoints are READ-ONLY and safe for public consumption. No authentication required.

Base URL:

https://okfamilyfund.com

Portfolio & Treasury Data (View Only)

Get Portfolio Dashboard Summary

GET /api/portfolio/dashboard/{walletAddress}

Description: Current treasury value, contributions, and performance metrics.

Path Parameters:

  • walletAddress – Wallet address to query

Response:

{
  "currentValue": 45250.75,
  "totalContributions": 42000.00,
  "performanceYTD": 7.74,
  "totalAssets": 8,
  "lastUpdated": "2025-09-28T08:00:00.000Z"
}

Get Portfolio History

GET /api/portfolio/history/{walletAddress}?period={period}&limit={limit}

Description: Historical portfolio values with time filtering.

Parameters:

  • walletAddress (path)

  • period (query): all | 7d | 1m | 1y (default: all)

  • limit (query): Max records (default: 1000)

Response:


Get Portfolio Composition

GET /api/portfolio/composition/{walletAddress}

Description: Current asset allocation breakdown with percentages.

Response:


Treasury Contributions (View Only)

Get Latest Treasury Contributions (Discord Bot Optimized)

GET /api/treasury/latest-contributions?limit={limit}

Description: Latest treasury contributions with parsed token information.

Parameters:

  • limit (query): Number of contributions (default: 10)

Response:


Get Contribution History

GET /api/contributions?walletAddress={address}&period={period}

Description: All contributions for a wallet with time filtering.

Parameters:

  • walletAddress (query): Target wallet address

  • period (query): all | 7d | 1m | 1y (default: all)

Response:


Token Information (View Only)

Get All Tracked Tokens

GET /api/tokens

Description: List all tokens in the database with metadata.

Response:


Usage Examples

Discord Bot Integration

Portfolio Tracking Dashboard


Treasury Wallet Address

Main treasury wallet:


Security & Usage Notes

  • Security: All APIs are read-only

  • Use Cases: Portfolio tracking, Discord bots, external dashboards, analytics

  • Rate Limits: None currently, but please use responsibly

Last updated