id: api-coinlayer

info:
  name: Coinlayer API Test
  author: daffainfo
  severity: info
  description: Real-time Crypto Currency Exchange Rates
  reference:
    - https://coinlayer.com/documentation
    - https://github.com/daffainfo/all-about-apikey/tree/main/coinlayer
  metadata:
    max-request: 1
  tags: token-spray,coinlayer

self-contained: true

http:
  - method: GET
    path:
      - "https://api.coinlayer.com/live?access_key={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - '"success"'
          - '"terms"'
          - '"privacy"'
        condition: and
# digest: 490a0046304402202150a94f5dc12ed328166cb922f3e4222740a524f494168101179d94fe89836502206a75fc661debbae3459e2fb4f64ace3bcddb68b4dd228a26d6a5058e86ab6100:922c64590222798bb761d5b6d8e72950