id: api-currencyfreaks

info:
  name: CurrencyFreaks API Test
  author: daffainfo
  severity: info
  description: Provides current and historical currency exchange rates with free plan 1K requests/month
  reference:
    - https://currencyfreaks.com/documentation.html
    - https://github.com/daffainfo/all-about-apikey/tree/main/currencyfreaks
  metadata:
    max-request: 1
  tags: token-spray,currencyfreaks

self-contained: true

http:
  - method: GET
    path:
      - "https://api.currencyfreaks.com/latest?apikey={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - '"date"'
          - '"base"'
          - '"rates"'
        condition: and
# digest: 4a0a0047304502203737a48de4fc737d822f855913160e187ca8154242508785e7b853a24b088439022100f80bd2effd6f97e5c4092b3f31f89251ea27b89b54ce287470cc9aa8a33746ae:922c64590222798bb761d5b6d8e72950