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: 490a0046304402200796c0960496ce5fb13e9faab80c7fe26f6af983575c39876eaca9b06e959b9502203893d92f158f2ae1d0a8553c1207de259df6a91b4b7169cd72412f0328d6cadf:922c64590222798bb761d5b6d8e72950