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: 4a0a00473045022100b7caa88dcb0790eb1cc003e03fe3f96d2d65b73054a1239d3c1cfcc07cbc55dd02205cf5df2f356337532bb36c0d240933fb8dc2972e0f09904f3a7d239257d5ea4d:922c64590222798bb761d5b6d8e72950