金
Shanghai Gold Exchange API
3 endpointsFinance & CryptoCNsocial:read3 real examples
Returns daily contract quotes and the Shanghai gold and silver benchmark prices from the Shanghai Gold Exchange.
View as Markdown| GET | /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. |
| GET | /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. |
| GET | /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. |
dailyQuotes
GET
/v1/sge/dailyQuotesShanghai 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:read1 unitcached 30 minpaginated
Parameters
datestring required | Trading day as YYYY-MM-DD, such as 2025-01-02. e.g. 2025-01-02 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
12 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 |
curl "https://api.hoshime.com/v1/sge/dailyQuotes?date=2025-01-02" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/sge/dailyQuotes?date=2025-01-02", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/sge/dailyQuotes?date=2025-01-02", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "amountYuan": "7918685399", "change": "7.19", "changePercent": "1.17", "date": "2025-01-02", "high": "622.6", "low": "614", "open": "614", "price": "621.99", "symbol": "Au99.99", "updatedAt": "", "volume": "12745.84", "weightedAverage": "621.27" }, { "amountYuan": "3860498", "change": "4.04", "changePercent": "0.65", "date": "2025-01-02", "high": "623", "low": "620", "open": "620", "price": "622.9", "symbol": "Au100g", "updatedAt": "", "volume": "6.2", "weightedAverage": "622.66" } ], "meta": { "cached": false, "endpoint": "dailyQuotes", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "sge", "requestId": "req_2Xb9kQ…", "units": 1 } }
benchmark
GET
/v1/sge/benchmarkShanghai 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:read1 unitcached 1 hpaginated
Parameters
startstring | First day as YYYY-MM-DD. Omit it to start 29 days before end. e.g. 2025-01-02 |
endstring | Last day as YYYY-MM-DD. Omit it for the latest day. e.g. 2025-01-06 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
3 fields
afternoon | string |
date | string |
morning | string |
curl "https://api.hoshime.com/v1/sge/benchmark?start=2025-01-02&end=2025-01-06" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/sge/benchmark?start=2025-01-02&end=2025-01-06", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/sge/benchmark?start=2025-01-02&end=2025-01-06", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "afternoon": "621.68", "date": "2025-01-02", "morning": "620.84" }, { "afternoon": "626.77", "date": "2025-01-03", "morning": "626.48" } ], "meta": { "cached": false, "endpoint": "benchmark", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "sge", "requestId": "req_2Xb9kQ…", "units": 1 } }
silverBenchmark
GET
/v1/sge/silverBenchmarkShanghai 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:read1 unitcached 1 hpaginated
Parameters
startstring | First day as YYYY-MM-DD. Omit it to start 29 days before end. e.g. 2025-01-02 |
endstring | Last day as YYYY-MM-DD. Omit it for the latest day. e.g. 2025-01-06 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
3 fields
afternoon | string |
date | string |
morning | string |
curl "https://api.hoshime.com/v1/sge/silverBenchmark?start=2025-01-02&end=2025-01-06" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/sge/silverBenchmark?start=2025-01-02&end=2025-01-06", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/sge/silverBenchmark?start=2025-01-02&end=2025-01-06", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "afternoon": "7595", "date": "2025-01-02", "morning": "7580" }, { "afternoon": "7620", "date": "2025-01-03", "morning": "7617" } ], "meta": { "cached": false, "endpoint": "silverBenchmark", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "sge", "requestId": "req_2Xb9kQ…", "units": 1 } }