# claw402 CN Stock Margin Trading Detail

> claw402 CN Stock Margin Trading Detail is a paid API for AI agents from claw402.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Retrieves margin trading detail data for Chinese A-share stocks by stock code and/or date range

## Facts

- Endpoint: GET https://claw402.ai/api/v1/stocks/cn/margin-detail
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/claw402-cn-stock-margin-trading-detail-c895f2e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qsLCOcqeZrQg6UlUmELGS

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability claw402-cn-stock-margin-trading-detail-c895f2e9
```

Example prompt: Can you pull the margin trading detail for Chinese A-share stock 600519.SH for the date range 2024-01-01 to 2024-03-31?

## When to prefer this

Use this endpoint when you need margin trading detail data for Chinese A-share stocks (CN market), especially when querying by specific stock ticker (ts_code) and/or date range. Prefer this over general financial data APIs when you specifically need CN market margin/financing data paid via USDC without API key registration.

## Known failure modes

- Empty data array returned when no margin records match the query parameters
- Invalid ts_code format returns error or empty result
- Date range with no trading activity returns empty data array
- Missing required parameters may return error code
- Service unavailable or payment failure returns HTTP 402

## How this service works

Backed by vergex.trade. Pay for any API with USDC. No API keys. No registration. Just a wallet.

## Output

Returns a JSON object with code 0 and a data array containing margin trading detail records for the queried Chinese stock(s), including margin financing balances and short selling figures per trading date.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "ts_code": {
       "type": "string"
      },
      "end_date": {
       "type": "string"
      },
      "start_date": {
       "type": "string"
      },
      "trade_date": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "code": 0,
  "data": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/claw402-cn-stock-margin-trading-detail-c895f2e9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from claw402.ai](https://www.zero.xyz/host/claw402.ai/llms.txt)
