# Shanghai Gold Exchange API

> Returns daily contract quotes and the Shanghai gold and silver benchmark prices from the Shanghai Gold Exchange.

Category: Finance & Crypto. Region: CN. 3 endpoints at `https://api.hoshime.com/v1/sge/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/sge
## GET /v1/sge/dailyQuotes

Shanghai Gold Exchange daily report for one trading day: open, high, low, close, change, weighted average, volume and turnover of every contract that traded.

Scope: `social:read` · Units: 1 · Cached: 30 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `date` | string | yes | Trading day as YYYY-MM-DD, such as 2025-01-02. (e.g. 2025-01-02) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `amountYuan` (string), `change` (string), `changePercent` (string), `date` (string), `high` (string), `low` (string), `open` (string), `price` (string), `symbol` (string), `updatedAt` (string), `volume` (string), `weightedAverage` (string)

```bash
curl "https://api.hoshime.com/v1/sge/dailyQuotes?date=2025-01-02" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/sge/benchmark

Shanghai Gold Benchmark Price: the morning and afternoon price in yuan per gram for each day. Without start or end, the last 30 days.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `start` | string | no | First day as YYYY-MM-DD. Omit it to start 29 days before end. (e.g. 2025-01-02) |
| `end` | string | no | Last day as YYYY-MM-DD. Omit it for the latest day. (e.g. 2025-01-06) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `afternoon` (string), `date` (string), `morning` (string)

```bash
curl "https://api.hoshime.com/v1/sge/benchmark?start=2025-01-02&end=2025-01-06" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/sge/silverBenchmark

Shanghai Silver Benchmark Price: the morning and afternoon price in yuan per kilogram for each day. Without start or end, the last 30 days.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `start` | string | no | First day as YYYY-MM-DD. Omit it to start 29 days before end. (e.g. 2025-01-02) |
| `end` | string | no | Last day as YYYY-MM-DD. Omit it for the latest day. (e.g. 2025-01-06) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `afternoon` (string), `date` (string), `morning` (string)

```bash
curl "https://api.hoshime.com/v1/sge/silverBenchmark?start=2025-01-02&end=2025-01-06" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
