id: api-coinmarketcap

info:
  name: CoinMarketCap API Test
  author: daffainfo
  severity: info
  description: Cryptocurrencies Prices
  reference:
    - https://coinmarketcap.com/api/documentation/v1
    - https://github.com/daffainfo/all-about-apikey/tree/main/coinmarketcap
  metadata:
    max-request: 1
  tags: token-spray,coinmarketcap

self-contained: true

http:
  - raw:
      - |
        GET https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest HTTP/1.1
        Host: pro-api.coinmarketcap.com
        X-CMC_PRO_API_KEY: {{token}}

    matchers:
      - type: word
        part: body
        words:
          - '"name"'
          - '"symbol"'
          - '"cmc_rank"'
        condition: and

# digest: 4b0a00483046022100e853728243b56db54ee87b9277b7ec9994bcbb7fd9415f71ded19a7f8006eba9022100deb18ad5c34d2d1eacfb4b8bdc85e2b8b8049ea24d1ee9863e3a6ab9d24a7e1c:922c64590222798bb761d5b6d8e72950
