{"uid":"cap_6Vm2uV_ynlb9biO8fpkqS","slug":"api-cn402-com-572d9cf1","name":"api.cn402.com Forex - Real-Time Foreign Exchange Rate","description":"Real-time foreign exchange rate. Query param: ?pair=USDCNY (supports major CNY pairs and majors)","url":"https://api.cn402.com/forex","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"pair":{"type":"string","description":"Price pair e.g. ETH-USD (optional)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LBlKQhR81Ko58FH7vKB74","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the real-time foreign exchange rate for a given currency pair, with a focus on CNY pairs and major currency pairs","exampleAgentPrompt":"What's the current exchange rate for USD to CNY right now? I need the live forex rate for the USDCNY pair.","exampleUseCases":null,"resultDescription":"Returns the real-time exchange rate for the requested currency pair (e.g. USDCNY), enabling instant currency conversion calculations or financial decision-making.","failureModes":["Unsupported currency pair returns an error or empty result","Invalid pair format (e.g. missing currency code) causes a bad request error","Network or provider downtime may result in stale or unavailable rates","Rate limiting if too many requests are made in quick succession"],"whenToPreferThis":"Use this endpoint when you need a real-time or near-real-time foreign exchange rate specifically involving CNY (Chinese yuan / RMB) or other major currency pairs. Prefer this over static or batch FX data sources when freshness matters for financial calculations, travel budgeting, or cross-border transaction estimation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:37:51.200Z","isFirstParty":false}