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

# 快速开始

> 3 分钟接入 AlphaFeed 数据 API

## 获取 API Key

访问 [alphafeed.org](https://alphafeed.org) 注册账户，在控制台创建 API Key。

## API 地址

```
https://api.alphafeed.org
```

## 接入方式

<CardGroup cols={2}>
  <Card title="Python SDK" icon="python" href="/zh-Hans/sdk/python-quickstart">
    推荐方式，5 分钟上手
  </Card>

  <Card title="Rest API" icon="code" href="/zh-Hans/api-reference/introduction">
    任意语言直接调用
  </Card>
</CardGroup>

## 快速体验

```python theme={null}
from alphafeed import AlphaFeed

af = AlphaFeed(api_key="your-api-key")

# 获取贵州茅台日K线
df = af.klines.get("600519.SH", period="1d", count=10, to_dataframe=True)
print(df[["trade_date", "close", "volume"]])

# 获取全部 A 股实时行情
quotes = af.quotes.get(universes="CN_Stock", to_dataframe=True)
print(f"共 {len(quotes)} 只标的")
```
