StoneX · Capability

StoneX Payments API — FX Rates

StoneX Payments API — FX Rates. 1 operations. Lead operation: Get FX Rates. Self-contained Naftiko capability covering one Stonex business surface.

Run with Naftiko StonexFX Rates

What You Can Do

GET
Getfxrates — Get FX Rates
/v1/rates

MCP Tools

get-fx-rates

Get FX Rates

read-only idempotent

Capability Spec

payments-fx-rates.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: StoneX Payments API — FX Rates
  description: 'StoneX Payments API — FX Rates. 1 operations. Lead operation: Get FX Rates. Self-contained Naftiko capability
    covering one Stonex business surface.'
  tags:
  - Stonex
  - FX Rates
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STONEX_API_KEY: STONEX_API_KEY
capability:
  consumes:
  - type: http
    namespace: payments-fx-rates
    baseUri: https://fx-api.payments.stonex.com
    description: StoneX Payments API — FX Rates business capability. Self-contained, no shared references.
    resources:
    - name: rates
      path: /rates
      operations:
      - name: getfxrates
        method: GET
        description: Get FX Rates
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sell_currency
          in: query
          type: string
          description: Source currency (ISO 4217 code).
          required: true
        - name: buy_currency
          in: query
          type: string
          description: Target currency (ISO 4217 code).
          required: true
        - name: amount
          in: query
          type: number
          description: Amount to convert.
    authentication:
      type: bearer
      token: '{{env.STONEX_API_KEY}}'
  exposes:
  - type: rest
    namespace: payments-fx-rates-rest
    port: 8080
    description: REST adapter for StoneX Payments API — FX Rates. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/rates
      name: rates
      description: REST surface for rates.
      operations:
      - method: GET
        name: getfxrates
        description: Get FX Rates
        call: payments-fx-rates.getfxrates
        with:
          sell_currency: rest.sell_currency
          buy_currency: rest.buy_currency
          amount: rest.amount
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: payments-fx-rates-mcp
    port: 9090
    transport: http
    description: MCP adapter for StoneX Payments API — FX Rates. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-fx-rates
      description: Get FX Rates
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: payments-fx-rates.getfxrates
      with:
        sell_currency: tools.sell_currency
        buy_currency: tools.buy_currency
        amount: tools.amount
      outputParameters:
      - type: object
        mapping: $.