id: api-coinapi

info:
  name: CoinAPI API Test
  author: daffainfo
  severity: info
  description: All Currency Exchanges integrate under a single api
  reference:
    - https://docs.coinapi.io/
    - https://github.com/daffainfo/all-about-apikey/tree/main/coinapi
  metadata:
    max-request: 1
  tags: token-spray,coinapi

self-contained: true

http:
  - raw:
      - |
        GET https://rest.coinapi.io/v1/exchanges HTTP/1.1
        Host: rest.coinapi.io
        X-CoinAPI-Key: {{token}}

    matchers:
      - type: word
        part: body
        words:
          - '"exchange_id":'
          - '"website":'
          - '"name":'
        condition: and
# digest: 4a0a00473045022023559374dd9b1eacae609db15cc7ff254e5899256c0b1c40569e123de4e8bcf20221008e7dd31e36abf7b6cad969ac033a49466be2be1be4fa9823349e1022c6e639f5:922c64590222798bb761d5b6d8e72950