⚙️

API

PEAR PROTOCOL REST API

POSITIONS

  1. 1.
    OPEN POSITIONS
    ​
  2. 2.
    CLOSED POSITIONS

METRICS

  1. 1.
    HOURS
    • URL: https://api.pearprotocol.io/v1/metric?address=address&time=24h
    • Retrieves pear metrics for a given hour (24 hours for above url)
    ​
  2. 2.
    Minutes
    • URL: https://api.pearprotocol.io/v1/metric?address=address&time=30m
    • Retrieves pear metrics for a given minute (30mins for above url)
    ​
  3. 3.
    Historical
    • URL: https://api.pearprotocol.io/v1/metric?address=address
    • Retrieves all pear metrics
​