Welcome Dear Developer…
{
"risk_alert": {
"risk_score_10": 7.5,
"event_type": "Geopolitical",
"anticipated_delay": "10-14 days",
"recommendation":
"Reroute via Cape of Hope"
},
"signal_id": "fin-abc-123",
"divergence_score": 85,
"directional_bias":
"Uptrend Probability"
}
Analytical intelligence
for modern developers.
Built for Developers.
Powered by Intelligence.
HavenGroup Tech Ltd is a global technology conglomerate specializing in high-performance SaaS solutions and financial data analytics. With a strategic presence in both the United Kingdom and Cameroon, we provide institutional-grade insights for the modern digital economy.
Global Operations
Combining UK-regulated corporate governance with deep technical expertise to serve a worldwide network of developers and institutional clients.
Cutting-Edge APIs
Proprietary hgbest analytical infrastructure delivering supply chain risk, health insights, and real-time market divergence data.
Enterprise Security
HMAC-SHA256 request signing, two-key authentication, and rigorous infrastructure security at every layer.
Office 9700, 321-323 High Road, Chadwell Heath, Essex RM6 6AX, United Kingdom
HavenGroup Tech Ltd is registered in England and Wales. Company Number: 17179874
Welcome,
Your address () is not yet verified. Check your inbox. API key generation and billing are disabled until verification.
Plan & Billing
Loading…Select a Plan
Ensure you have an API Key generated before upgrading.
API Keys
Loading your API keys…
API Usage
Loading usage statistics…
Test Your API
// Response will appear here…
Streamline Your Integration
Our SDKs handle HMAC-SHA256 signing, error parsing, and typed methods — so you focus on building, not plumbing.
Installation
Node.js
# npm
npm install @hgbest/api-sdk
# pnpm
pnpm install @hgbest/api-sdk
# yarn
yarn add @hgbest/api-sdk
Python
pip install hgbest-client-python
C# (.NET)
# .NET CLI
dotnet add package HgBestClient.CSharp
# NuGet Package Manager
Install-Package HgBestClient.CSharp
Getting Started
Initialize with your API Key and Secret. Always load credentials from environment variables — never hardcode secrets in client-side code.
Node.js / TypeScript/Javascript
import { HgBestClient } from '@hgbest/api-sdk';
const client = new HgBestClient({
apiKey: process.env.HB_API_KEY || "pk-YOUR_API_KEY_HERE",
apiSecret: process.env.HB_API_SECRET || "sk-YOUR_API_SECRET_HERE"
});
async function getRiskAlert() {
const response = await client.risk.globalSupplyChainAlert({
material_type: "Lithium-ion batteries",
region_of_origin: "Global",
logistics_route: "Asia to Europe via Suez Canal"
});
console.log("Risk Score:", response.risk_alert.risk_score_10);
}
getRiskAlert();
Python
from hgbest_client import HgBestClientPython
client = HgBestClientPython(
api_key="pk-YOUR_API_KEY_HERE",
api_secret="sk-YOUR_API_SECRET_HERE"
)
report_payload = {
"summaryDate": "2025-12-17",
"requestId": "unique-report-12345",
"riskScore": 75,
"eventType": "LogisticsAnomaly",
"summary": "Unexpected weather impacting East Coast shipping lanes."
}
response = client.health.submit_report(report_payload)
print(response)
C# (.NET)
using HgBestClient.CSharp;
var client = new HgBestClientCSharp(
apiKey: "pk-YOUR_API_KEY_HERE",
apiSecret: "sk-YOUR_API_SECRET_HERE"
);
var riskPayload = new {
material_type = "Semiconductors",
region_of_origin = "Southeast Asia",
logistics_route = "Pacific Ocean to West Coast US"
};
dynamic result = await client.Risk.GlobalSupplyChainAlert(riskPayload);
Console.WriteLine(result);
Manual Integration (Any Language)
The API uses standard HTTP — implement HMAC-SHA256 authentication manually in any language.
- Generate your API Key/Secret from the Dashboard.
- Get the current Unix timestamp in milliseconds.
- Compute SHA256 of the request body (compact JSON, keys sorted alphabetically). Use
""for empty body. - Build the string to sign:
HTTP_METHOD\n PATH\n TIMESTAMP\n BODY_HASH - HMAC-SHA256 sign it using your API Secret. Hex-encode the result.
- Send these headers:
X-API-KEY: [Your API Key] X-API-TIMESTAMP: [Timestamp] X-API-SIGNATURE: [Signature] Content-Type: application/json
Comprehensive Documentation
Everything you need to integrate analytical intelligence into your applications.
Authentication — The Two-Key System
pk-xxxx…
Identifies your application. Sent in X-API-KEY header.
sk-yyyy…
Signs your requests cryptographically. Never expose client-side.
https://hgbest-backend.onrender.com
Error Codes
Success — response body contains requested data.
Bad Request — malformed or missing parameters.
Unauthorized — missing or invalid credentials.
Forbidden — invalid API Key or signature mismatch.
Too Many Requests — usage limit exceeded.
Internal Server Error — unexpected backend failure.
Performance & Timeouts
AI-powered endpoints may take longer due to complex model reasoning and internal retry logic with exponential backoff.
Maximum server timeout: 60 seconds — requests exceeding this are terminated.
Endpoints
/risk/global-supply-chain-alert
Identifies obscure global risks impacting materials or logistics routes. Provides actionable disruption predictions.
Request
{
"material_type": "Lithium-ion batteries",
"region_of_origin": "Global",
"logistics_route": "Asia to Europe via Suez Canal"
}
Response
{
"request_id": "risk-alert-abc-123",
"risk_alert": {
"risk_score_10": 7.5,
"event_type": "Geopolitical / Logistical Disruption",
"anticipated_delay_days": "10-14 days",
"summary": "Persistent rerouting via Cape of Good Hope…",
"immediate_recommendation": "Develop multi-modal logistics strategy."
}
}
/health/predictive-patient-summary
Synthesizes unstructured medical notes into prioritized predictive health risks and differential diagnoses.
Request
{
"patient_id": "PAT789012",
"unstructured_notes": [
"Persistent cough 3 weeks, mild fever (100.5F), fatigue. Travel: SE Asia."
]
}
Response
{
"patient_id": "PAT789012",
"summary_date": "2024-03-01T10:30:00Z",
"priority_risk_areas": [{
"category": "Infectious Disease",
"risk_level": "High",
"recommended_action": "Order Chest X-Ray and full infectious disease panel."
}],
"concerns_noted": ["persistent cough", "fever", "smoking history"]
}
/finance/macro-sentiment-score
Synthesizes market chatter, regulatory filings, and historical correlations into a quantifiable Portfolio Impact Signal.
Request
{
"market_focus": "Tech sector",
"regulatory_filings_keywords": ["SEC filing ABC"],
"news_keywords": ["AI regulation", "semiconductor shortage"]
}
Response
{
"signal_id": "finance-signal-def-456",
"overall_risk_signal": "Caution - Moderate Volatility Expected",
"impact_prediction": {
"score_0_100": 65,
"volatility_index_change": "+1.8%",
"key_insight": "Regulatory uncertainty driving market volatility."
},
"sector_exposure": [{
"sector": "Technology",
"exposure_level": "HIGH",
"sentiment_delta": -0.92
}]
}
/market/algorithmic-divergence-signal
Detects divergence between disparate data streams and asset price, signalling high-probability unexpected price movements.
Request
{
"asset_ticker": "BTC",
"additional_context": "Recent SEC comments, institutional adoption rising."
}
Response
{
"asset_ticker": "BTC",
"divergence_score_percent": 85,
"directional_bias": "Uptrend Probability",
"top_causal_factor": "Growing institutional capital inflows.",
"predictive_factors": [{
"name": "Social Sentiment (Weighted)",
"value": "0.88",
"description": "Significant positive sentiment across crypto channels."
}],
"advice": "Monitor for volume confirmation above $70,000."
}
Legal & Policies
Support & Community
Facing difficulties or need integration help? Our team responds within 24 business hours.
Choose Your Plan
Unlock higher limits, premium models, and priority support.
- ✓ 2,000 initial requests
- ✓ Standard AI Models
- ✓ Standard rate limits
- ✓ Basic email support
- ✓ All core endpoints
- ✓ 50,000 req / month
- ✓ Enhanced AI Models
- ✓ 20 req/s rate limit
- ✓ Priority email (24hr)
- ✓ 30-day data retention
- ✓ 250,000 req / month
- ✓ Premium AI Models
- ✓ 100 req/s rate limit
- ✓ Dedicated chat + email (4hr)
- ✓ Beta features access
- ✓ 90-day data retention
- ✓ Custom integrations
All paid plans are recurring subscriptions. Cancel anytime via the Billing Portal.