---
title: "Get Credit Balance"
method: GET
path: "/api/v1/credits/balance"
tags: ["credits"]
---

# Get Credit Balance

`GET /api/v1/credits/balance`

## Request

- Base URL: `https://api.ticktest.cn` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ticktest.cn/api/v1/credits/balance`
- Auth: none declared

查询当前用户的信用点余额（需 Bearer Token 认证）。

返回余额、使用统计、预计剩余回测次数。

## Response `200`

Successful Response

- BalanceResponse: 信用点余额响应
  - `status` string, required
  - `user_id` string, nullable
  - `balance` integer, nullable
  - `total_earned` integer, nullable
  - `total_spent` integer, nullable
  - `plan` string, nullable
  - `backtest_cost` integer, nullable
  - `remaining_backtests` integer, nullable
  - `message` string, nullable

---

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