id: api-binance

info:
  name: Binance REST API
  author: geeknik
  severity: info
  description: Exchange for Trading Cryptocurrencies based in China
  reference:
    - https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md
    - https://github.com/daffainfo/all-about-apikey/tree/main/binance
  metadata:
    max-request: 1
  tags: token-spray,binance

self-contained: true

http:
  - method: GET
    path:
      - "https://api.binance.com/api/v3/historicalTrades"

    headers:
      X-MBX-APIKEY: "{{token}}"
    matchers:
      - type: word
        part: body
        words:
          - '"id":'
          - '"price":'
          - '"quoteQty":'
        condition: and
# digest: 4a0a00473045022060b14768acd7a041a1c3e9aee3bfdbb3b7b0ddfd6a8cf732cf9e2b1e38c7eab1022100b7eb64d21828a2f0eea42b3e953e2f406a5e16a16ef18959b8af993558e08b1f:922c64590222798bb761d5b6d8e72950