get_spot_rate
Get Spot FX Rate
Get an indicative spot FX rate for a currency pair. Returns a rounded indicative mid rate, for illustration purposes only — not for execution. Example: base=GBP, quote=USD returns the GBPUSD rate.
Parametersbaserequiredquoterequired
list_supported_currencies
List Supported Currencies
List the currency pairs currently available for Guard pricing. Always call this rather than assuming which pairs are supported — the list is configuration-driven and changes.
Takes no parameters.
get_forward_rate
Get Forward FX Rate
Use when you need a forward FX rate. tenor accepts either a period such as 1W, 1M, 3M, 6M, 1Y, or an exact date in ISO form YYYY-MM-DD. Use an exact date whenever you need the forward for the same day a Guard settles: a period resolves to the forward curve's own date, which can be several days away, and a comparison across two different dates is misleading. Rates are taken from the market forward…
Parametersbaserequiredquoterequiredtenorrequired
Price a Guard — CurrencyGuard's FX protection product for real future payments or receipts. If a tenor like '3 months' is given, call resolve_settlement_date first to get the exact date, then call this tool. THE AMOUNT. Give exactly ONE of foreignAmount and netGuardAmount, never both. Give foreignAmount when the customer has an invoice or bill in the foreign currency and wants to know what it is…
ParametersguardRatepayReceiverequiredforeignAmountguardCurrencyrequirednetGuardAmountsettlementDaterequiredforeignCurrencyrequired
compare_guard_with_forward
Compare a Guard with a Forward and with No Protection
Use when a user asks whether a Guard is worth it, how it compares with a forward contract from their bank or provider, or what happens if they do nothing. ASK BEFORE YOU CALL. The forward side of this comparison should be the customer's own numbers, not CurrencyGuard's guesses. Ask three things first: (1) the forward rate their provider last quoted them for this payment, (2) whether the provider…
ParameterspayReceiverequiredforeignAmountrequiredguardCurrencyrequiredsettlementDaterequiredforeignCurrencyrequiredforwardMarginPctinitialMarginPctscenarioMovesPct+2 more
resolve_settlement_date
Resolve Settlement Date
Resolve a relative time period (tenor) to a valid business settlement date for a currency pair. Use this when a user says '3 months', '6 months', '1 year', etc. instead of an exact date. The tenor format is: 1D (days), 1W (weeks), 1M (months), 1Y (years). Examples: '3M' = 3 months, '6M' = 6 months, '1Y' = 1 year. The returned date accounts for weekends and public holidays in both currencies'…
ParameterstenorrequiredcurrencyPairrequired
get_historic_best_worst
Historic Best/Worst FX Performance
Analyze historic best/worst FX performance for a currency pair over a Guard's duration. Uses Bank of England historic rates. Returns a 'performances' array with 6 entries — BEST and WORST for each of three lookback periods (5, 10, 25 years). Each entry contains: performanceType (BEST or WORST), periodInYears (5, 10 or 25), windowSizeInDays, startDate/endDate, startRate/endRate,…
ParameterspayReceiverequiredguardAmountforeignAmountrequiredguardCurrencyrequiredsettlementDaterequiredforeignCurrencyrequired
price_guard_extension
Price Guard Extension
Get an indicative price for extending a Guard to a later settlement date. Use it when a customer asks what it costs to extend a Guard. Returns: extensionCost, what the customer pays to extend, in the home currency. Show it as the answer: "Extending to [date] costs [extensionCost]". It is one figure; there is no breakdown. Also the currencies, the direction, the foreign amount, both dates, valid,…
ParameterspayReceiverequiredforeignAmountrequiredguardCurrencyrequiredforeignCurrencyrequiredextendedSettlementDaterequiredoriginalSettlementDaterequired
explain_guard_product
Explain Guard Product
Explain the Guard product using CurrencyGuard's approved product and FAQ content. Covers: what the Guard is, how it works, who it is for, how it compares to a forward or to doing nothing, and legal, regulatory, accounting, or eligibility questions. Compare the Guard only with a forward and with doing nothing, as the product text does. If asked to compare it with any other FX product, give the…
Takes no parameters.
net_exposure
Net Foreign-Currency Items
Net an SME's open foreign-currency bills and invoices, so that a receipt due on or before a payment in the same currency is shown as funding it. Returns the residual on every bill and invoice, a trace of which invoice funds which bill and for how much, per-bucket totals, dependency statements, and series for a ladder chart. It prices nothing: call price_guard on each residual separately, with the…
Parameterscarryrequireditemsrequiredbucket_daysbucket_moderequiredwindow_daysbase_currencyrequired
request_provider_availability
Ask Whether Your Provider Offers Guards
Find out whether Guards can be bought through a particular payment provider or bank. A Guard is always bought through a payment provider, so this cannot be answered without knowing which one the user pays through — CurrencyGuard checks and replies. ASK BEFORE CALLING. Tell the user plainly that their provider, and their email address if they give one, will be sent to CurrencyGuard so they can…
ParametersemailproviderrequiredcompanyName