金
People's Bank of China API
3 endpointsFinance & CryptoCNsocial:read3 real examples
Returns China's Loan Prime Rate fixings, daily yuan central parity rates for currency pairs, and the list of those pairs.
View as Markdown| GET | /pboc/lpr | China's Loan Prime Rate, 1-year and 5-year, one item per fixing day, newest first. A window is at most one year. |
| GET | /pboc/centralParity | The daily central parity the PBOC sets for a yuan currency pair, newest first. |
| GET | /pboc/currencies | The currency pairs the PBOC publishes a central parity for. |
lpr
GET
/v1/pboc/lprChina's Loan Prime Rate, 1-year and 5-year, one item per fixing day, newest first. A window is at most one year.
scope social:read1 unitcached 6 hpaginated
Parameters
fromstring | First fixing day, YYYY-MM-DD. Default 364 days before to, the most the site serves at once. |
tostring | Last fixing day, YYYY-MM-DD. Default today. |
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
5 fields
date | string |
dateLabel | string |
rates | Tenor[] |
rate | number (double) |
tenor | string |
curl "https://api.hoshime.com/v1/pboc/lpr" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pboc/lpr", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pboc/lpr", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "date": "2026-10-20", "dateLabel": "20 Oct 2026", "rates": [ { "rate": 3, "tenor": "1Y" }, { "rate": 3.5, "tenor": "5Y" } ] }, { "date": "2026-09-20", "dateLabel": "20 Sep 2026", "rates": [ { "rate": 3, "tenor": "1Y" }, { "rate": 3.5, "tenor": "5Y" } ] } ], "meta": { "cached": false, "endpoint": "lpr", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "pboc", "requestId": "req_2Xb9kQ…", "units": 1 } }
centralParity
GET
/v1/pboc/centralParityThe daily central parity the PBOC sets for a yuan currency pair, newest first.
scope social:read1 unitcached 1 h
Parameters
currencystring | Currency pair, such as USD/CNY, EUR/CNY or 100JPY/CNY. Default USD/CNY. The currencies endpoint lists them. default USD/CNYe.g. USD/CNY |
fromstring | First day, YYYY-MM-DD. Default 30 days ago. |
tostring | Last day, YYYY-MM-DD. Default today. |
lengthinteger | Days to return, newest first, from 1 to 100. Default 20. default 20 |
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
4 fields
currency | string |
items | ParityRate[] |
date | string |
rate | number (double) |
curl "https://api.hoshime.com/v1/pboc/centralParity?currency=USD%2FCNY" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pboc/centralParity?currency=USD%2FCNY", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pboc/centralParity?currency=USD%2FCNY", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "currency": "USD/CNY", "items": [ { "date": "2026-11-06", "rate": 6.7168 }, { "date": "2026-11-05", "rate": 6.7156 } ] }, "meta": { "cached": false, "endpoint": "centralParity", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pboc", "requestId": "req_2Xb9kQ…", "units": 1 } }
currencies
GET
/v1/pboc/currenciesThe currency pairs the PBOC publishes a central parity for.
scope social:read1 unitcached 24 hpaginated
Parameters
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
1 fields
currency | string |
curl "https://api.hoshime.com/v1/pboc/currencies" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pboc/currencies", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pboc/currencies", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "currency": "USD/CNY" }, { "currency": "EUR/CNY" } ], "meta": { "cached": false, "endpoint": "currencies", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "pboc", "requestId": "req_2Xb9kQ…", "units": 1 } }