id: api-currencyscoop

info:
  name: CurrencyScoop API Test
  author: daffainfo
  severity: info
  description: Real-time and historical currency rates JSON API
  reference:
    - https://currencyscoop.com/api-documentation
    - https://github.com/daffainfo/all-about-apikey/tree/main/currencyscoop
  metadata:
    max-request: 1
  tags: token-spray,currencyscoop

self-contained: true

http:
  - method: GET
    path:
      - "https://api.currencyscoop.com/v1/historical?api_key={{token}}&date=2022-01-01"

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