china_rmb_fixing

Pack: china-macro · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/china_rmb_fixing for the schema, then POST the same URL with its arguments for the data.

China’s RMB central parity (人民币汇率中间价), the daily USD/CNY fixing the PBOC publishes at 09:15 Beijing time, for a named date or the latest: USD/CNY by default, or any published pair (EUR/CNY, 100JPY/CNY, HKD/CNY, GBP/CNY and more, or all), with an optional history window. Answers “USD/CNY central parity today”, “what was the PBOC fixing on 2026-11-06”, “RMB midpoint history”. A weekend or holiday date returns found:false with reason no_fixing_for_date and the nearest earlier fixing. Keyless, sourced live from the China Foreign Exchange Trade System.

Parameters

NameTypeRequiredDescription
datestringnoDate as YYYY-MM-DD (Beijing). Omit for the latest published fixing.
pairstringnoCurrency pair such as “USD/CNY” (default), “EUR/CNY”, “100JPY/CNY”, “CNY/KRW”, or “all” for every published pair.
history_daysnumbernoAlso return the fixings for this many calendar days up to the date, 0-366 (default 0).

Example call

Arguments

{
  "date": "2026-11-06",
  "pair": "USD/CNY"
}

curl

curl -X POST https://gateway.pipeworx.io/china-macro/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"china_rmb_fixing","arguments":{"date":"2026-11-06","pair":"USD/CNY"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('china_rmb_fixing', {
  "date": "2026-11-06",
  "pair": "USD/CNY"
});

Response shape

FieldTypeDescription
foundboolean
reasonstring | null
messagestring | null
hintstring | null
data_as_ofstring | null
sourcestring | null
pairstring
datestring
ratenumber | null
ratesobject
historyarray
nearest_earlierunknownnearest earlier fixing when the requested date had none
quote_conventionstring
is_weekendboolean
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean"
    },
    "reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "message": {
      "type": [
        "string",
        "null"
      ]
    },
    "hint": {
      "type": [
        "string",
        "null"
      ]
    },
    "data_as_of": {
      "type": [
        "string",
        "null"
      ]
    },
    "source": {
      "type": [
        "string",
        "null"
      ]
    },
    "pair": {
      "type": "string"
    },
    "date": {
      "type": "string"
    },
    "rate": {
      "type": [
        "number",
        "null"
      ]
    },
    "rates": {
      "type": "object",
      "additionalProperties": true
    },
    "history": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "nearest_earlier": {
      "description": "nearest earlier fixing when the requested date had none"
    },
    "quote_convention": {
      "type": "string"
    },
    "is_weekend": {
      "type": "boolean"
    }
  },
  "additionalProperties": true
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the china-macro pack
{
  "mcpServers": {
    "china-macro": {
      "url": "https://gateway.pipeworx.io/china-macro/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 11, 2026