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

# 快速入门 - 连接 55-Tech API

> 开始使用 55-Tech ABP、MM 和 Scraping API。检查连接、进行身份验证并发起您的首次API调用。

## 前提条件

您需要所使用平台的API密钥。联系 [contact@55-tech.com](mailto:contact@55-tech.com) 获取您的密钥。

| 平台           | 认证头         | 基础URL                              |
| ------------ | ----------- | ---------------------------------- |
| ABP（自动投注）    | `X-API-Key` | `https://v2.55-tech.com`           |
| MM（做市）       | `X-API-Key` | `https://mmapi.55-tech.com`        |
| Scraping API | `X-API-Key` | `https://scraping-api.55-tech.com` |

***

## ABP — 自动投注

### 1. 列出您的账户

```bash theme={null}
curl -H "X-API-Key: YOUR_API_KEY" \
  https://v2.55-tech.com/accounts
```

### 2. 获取投注单（实时赔率）

```bash theme={null}
curl -H "X-API-Key: YOUR_API_KEY" \
  "https://v2.55-tech.com/betslip?fixtureId=ID&outcomeId=161&playerId=0"
```

### 3. 下单

```bash theme={null}
curl -X POST -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"orders": [{"fixtureId": "...", "outcomeId": 161, "playerId": 0, "stake": 10, "minPrice": 1.5}]}' \
  https://v2.55-tech.com/place-orders
```

### 4. 跟踪结果

```bash theme={null}
curl -H "X-API-Key: YOUR_API_KEY" \
  https://v2.55-tech.com/orders
```

***

## MM — 做市

### 1. 验证身份

```bash theme={null}
curl -H "X-API-Key: YOUR_API_KEY" \
  https://mmapi.55-tech.com/api/v1/me
```

### 2. 列出您的订单

```bash theme={null}
curl -H "X-API-Key: YOUR_API_KEY" \
  https://mmapi.55-tech.com/api/v1/orders
```

### 3. 查看持仓

```bash theme={null}
curl -H "X-API-Key: YOUR_API_KEY" \
  https://mmapi.55-tech.com/api/v1/positions
```

### 4. 查看盈亏

```bash theme={null}
curl -H "X-API-Key: YOUR_API_KEY" \
  https://mmapi.55-tech.com/api/v1/pnl
```

***

## Scraping API

### 1. 检查网络状态

```bash theme={null}
curl https://scraping-api.55-tech.com/network/status
```

### 2. 抓取页面

```bash theme={null}
curl -H "X-API-Key: YOUR_API_KEY" \
  -H "X-Target-URL: https://example.com" \
  https://scraping-api.55-tech.com/fetch
```

### 3. 指定地理位置抓取

```bash theme={null}
curl -H "X-API-Key: YOUR_API_KEY" \
  -H "X-Target-URL: https://example.com" \
  -H "X-Geo: DE" \
  https://scraping-api.55-tech.com/fetch
```

### 4. 查看用量

```bash theme={null}
curl -H "X-API-Key: YOUR_API_KEY" \
  https://scraping-api.55-tech.com/usage
```

***

## 实时更新

所有API都支持WebSocket连接以获取实时更新。请参阅各API的WebSocket文档：

<Columns cols={3}>
  <Card title="ABP WebSocket" icon="bolt" href="/zh/abp-api/websocket">
    实时订单、投注和结算更新。
  </Card>

  <Card title="MM WebSocket" icon="bolt" href="/zh/mm-api/websocket">
    实时订单成交、投注和比分更新。
  </Card>

  <Card title="Scraping WebSocket" icon="bolt" href="/zh/scraping-api/websocket">
    通过WebSocket中继获取实时抓取结果。
  </Card>
</Columns>
