---
title: "融资融券"
method: GET
path: "/v1/margin-trade"
tags: ["pro"]
---

# 融资融券

`GET /v1/margin-trade`

## Request

- Base URL: `https://api.ashareapi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ashareapi.com/v1/margin-trade`
- Auth: none declared

个股融资融券明细：融资余额、买入、偿还、融券。**code 必填**（支持批量：`sh600667,sz000651`）；缺 code 会返回明确的说明（不再静默空）；未披露交易日的两融数据上游会给出原因。

## Query parameters

- `code` string: 股票代码（支持批量逗号分隔）：sh600667 或 sh600667,sz000651
- `date` string: 日期 YYYY-MM-DD（留空=最近已披露交易日）

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ashareapi/apis/a-api.md) · [All operations](https://skmtc.dev/ashareapi/apis/a-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ashareapi/apis/a-api/revisions/fc57bdcb13d5?raw)
