id: api-abstract-exchange-rates

info:
  name: Abstract Api Exchange Rates Test
  author: daffainfo
  severity: info
  description: Get live and historical data from 60+ fiat and crypto currencies via a modern REST API
  reference:
    - https://www.abstractapi.com/api/exchange-rate-api
    - https://github.com/daffainfo/all-about-apikey/tree/main/abstract-exchange-rates
  metadata:
    max-request: 1
  tags: token-spray,abstractapi

self-contained: true

http:
  - method: GET
    path:
      - "https://exchange-rates.abstractapi.com/v1/live/?api_key={{token}}&base=USD"

    matchers:
      - type: word
        part: body
        words:
          - '"base":'
          - '"last_updated":'
          - '"exchange_rate":'
        condition: and

# digest: 490a0046304402201ce9c7e456983fff96fe77945768ed8bc846a5dd6e24464cea00dd45ab71c5db02203785bd67fa3224bf0be21b162f8deb8ed8c2226bb70ec8a79dd74f5e24dada4f:922c64590222798bb761d5b6d8e72950
