id: api-1forge

info:
  name: 1Forge API Test
  author: daffainfo
  severity: info
  description: Forex currency market data
  reference:
    - https://1forge.com/api
    - https://github.com/daffainfo/all-about-apikey/tree/main/1forge
  metadata:
    max-request: 1
  tags: token-spray,1forge

self-contained: true

http:
  - method: GET
    path:
      - "https://api.1forge.com/quota?api_key={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - '"quota_used":'
          - '"quota_limit":'
          - '"quota_remaining":'
        condition: and
# digest: 4a0a0047304502202cf38cbac1a39365cf8eaecbbeefdae2bd2d9fe28f95430260c0167369b71cb2022100f75fc25c314381f820b4df17205a0ac57c9b82935d1bfa7e7974ee84b3c5af52:922c64590222798bb761d5b6d8e72950