id: api-coinranking

info:
  name: Coinranking API Test
  author: daffainfo
  severity: info
  description: Live Cryptocurrency data
  reference:
    - https://developers.coinranking.com/api/documentation
    - https://github.com/daffainfo/all-about-apikey/tree/main/coinranking
  metadata:
    max-request: 1
  tags: token-spray,coinranking

self-contained: true

http:
  - raw:
      - |
        GET https://api.coinranking.com/v2/exchanges HTTP/1.1
        Host: api.coinranking.com
        x-access-token: {{token}}

    matchers:
      - type: word
        part: body
        words:
          - '"exchanges"'
          - '"coinrankingUrl"'
          - '"uuid"'
        condition: and
# digest: 4a0a004730450221009350b9bb3168e2ee85e7b21294ff2d5296f227a2830ecca87c06badda7130a11022053df1d2b9427f4ae154057b00353b399aea972ef00f27a56775cb15150d011b6:922c64590222798bb761d5b6d8e72950