id: api-bitcoinaverage

info:
  name: BitcoinAverage API Test
  author: daffainfo
  severity: info
  description: Digital Asset Price Data for the blockchain industry
  reference:
    - https://apiv2.bitcoinaverage.com/
    - https://github.com/daffainfo/all-about-apikey/tree/main/bitcoinaverage
  metadata:
    max-request: 1
  tags: token-spray,bitcoinaverage

self-contained: true

http:
  - raw:
      - |
        GET https://apiv2.bitcoinaverage.com/exchanges/ticker/bitstamp HTTP/1.1
        Host: apiv2.bitcoinaverage.com
        x-ba-key: {{token}}

    matchers:
      - type: word
        part: body
        words:
          - '"name"'
          - '"display_name"'
          - '"url"'
        condition: and
# digest: 4b0a00483046022100e2e6f3851da3889c15fabea52f9327cf604689657c68cb36aa29a1d289098d89022100f571e5e0fe5b21f46d8897f067da2abde2950686c74607767e3aecca3e8018f4:922c64590222798bb761d5b6d8e72950