> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webacy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Trading Due Diligence

> Run trading due diligence with Webacy market-intelligence endpoints — real-time liquidity, holder, and risk signals for tokens you trade or list.

## Overview

Trading DD endpoints provide real-time trading intelligence and market analysis. Use these endpoints for trading bots, portfolio management, and DEX integrations that require fast, actionable data.

## Trading Endpoints

<CardGroup cols={2}>
  <Card title="Trading Lite" icon="bolt" href="/api-reference/trading-lite/get-simplified-token-analysis-with-security-indicators">
    Lightweight, fast risk assessment optimized for trading applications
  </Card>

  <Card title="Pool Analysis" icon="droplet" href="/api-reference/pool-analysis/get-pool-ohlcv-data-with-risk-assessment">
    Liquidity pool data, TVL, and trading pair information
  </Card>

  <Card title="Holder Analysis" icon="users" href="/api-reference/holder-analysis/get-detailed-early-holder-analysis-for-a-token">
    Token holder distribution, whale concentration, and sniper detection
  </Card>

  <Card title="Transaction Scanning (KYT)" icon="magnifying-glass" href="/api-reference/transaction-scanning/scan-raw-evm-transaction-for-security-risks">
    Know Your Transaction — scan and simulate transactions before signing
  </Card>
</CardGroup>

***

## Endpoint Details

### Trading Lite

Fast, lightweight risk checks optimized for trading workflows. Returns essential risk signals without the full analysis overhead.

**Best for:**

* Trading bots requiring sub-second responses
* Quick screening before trades
* High-volume applications

```bash theme={null}
curl -X GET "https://api.webacy.com/trading-lite/So111...?chain=sol" \
  -H "x-api-key: YOUR_API_KEY"
```

***

### Pool Analysis

Get detailed liquidity pool information including TVL, trading pairs, and pool health metrics.

**Best for:**

* DEX aggregators
* Liquidity analysis
* Price impact estimation
* Slippage calculation

```bash theme={null}
# Get pools for a token
curl -X GET "https://api.webacy.com/tokens/0x123.../pools?chain=eth" \
  -H "x-api-key: YOUR_API_KEY"

# Get specific pool data
curl -X GET "https://api.webacy.com/tokens/pools/0xpool...?chain=eth" \
  -H "x-api-key: YOUR_API_KEY"

# Get trending pools
curl -X GET "https://api.webacy.com/tokens/pools/trending?chain=sol" \
  -H "x-api-key: YOUR_API_KEY"
```

***

### Holder Analysis

Analyze token holder distribution to identify concentration risks, whale movements, and sniper activity.

**Best for:**

* Detecting insider concentration
* Identifying sniper wallets
* Whale watching
* Token distribution analysis

```bash theme={null}
curl -X GET "https://api.webacy.com/holder-analysis/So111...?chain=sol" \
  -H "x-api-key: YOUR_API_KEY"
```

<Note>
  Early holder analysis covers Solana tokens launched within the last 12 months and BSC tokens deployed within the last 3 months (data provider retention). Older tokens return `data_availability: "unsupported_token_age"`; previously analyzed tokens continue to return stored results.
</Note>

***

### Transaction Scanning

Simulate and analyze transactions before they're signed. Essential for wallet security and transaction preview features.

**Best for:**

* Wallet transaction previews
* dApp transaction validation
* Phishing detection
* Approval screening

```bash theme={null}
# Scan a pending transaction
curl -X POST "https://api.webacy.com/scan/0xfrom.../transactions" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "0xto...",
    "data": "0x...",
    "value": "1000000000000000000",
    "chain": "eth"
  }'

# Scan EIP-712 typed data
curl -X POST "https://api.webacy.com/scan/0xfrom.../eip712" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "typedData": {
      "domain": { "name": "Example", "version": "1", "chainId": 1 },
      "types": { "Message": [{ "name": "content", "type": "string" }] },
      "primaryType": "Message",
      "message": { "content": "Hello" }
    },
    "chain": "eth"
  }'
```

***

## When to Use Trading DD

| Use Case               | Recommended Endpoints               |
| ---------------------- | ----------------------------------- |
| **Trading bots**       | Trading Lite, Pool Analysis         |
| **DEX integrations**   | Pool Analysis, Transaction Scanning |
| **Wallet security**    | Transaction Scanning                |
| **Liquidity analysis** | Pool Analysis                       |
| **Pre-trade checks**   | Trading Lite, Transaction Scanning  |
| **Token analysis**     | Holder Analysis, Pool Analysis      |
| **Whale watching**     | Holder Analysis                     |

## Trading DD vs Risk DD

| Aspect            | Trading DD                | Risk DD                |
| ----------------- | ------------------------- | ---------------------- |
| **Speed**         | Optimized for low latency | Comprehensive analysis |
| **Depth**         | Essential signals         | Full risk breakdown    |
| **Use case**      | Real-time trading         | Due diligence          |
| **Response size** | Minimal                   | Detailed               |

<Tip>
  For trading applications, start with **Trading Lite** for speed. Use **Risk DD** endpoints when you need deeper analysis or compliance checks.
</Tip>

## Example Trading Workflow

```javascript theme={null}
// 1. Quick risk check before trade
const quickCheck = await fetch(
  `https://api.webacy.com/trading-lite/${tokenAddress}?chain=sol`,
  { headers: { 'x-api-key': API_KEY } }
).then(r => r.json());

if (quickCheck.overallRisk > 70) {
  console.log('High risk token - skipping');
  return;
}

// 2. Check liquidity
const pools = await fetch(
  `https://api.webacy.com/tokens/${tokenAddress}/pools?chain=sol`,
  { headers: { 'x-api-key': API_KEY } }
).then(r => r.json());

if (pools.totalLiquidity < 10000) {
  console.log('Low liquidity - high slippage risk');
  return;
}

// 3. Proceed with trade...
```

## Related Resources

<CardGroup cols={2}>
  <Card title="Risk DD Endpoints" icon="shield" href="/api-reference/riskdd">
    Full risk due diligence endpoints for deeper analysis
  </Card>

  <Card title="Webhooks" icon="webhook" href="/essentials/webhooks">
    Real-time push notifications for trading events
  </Card>
</CardGroup>
