get_pair_ratio
Retrieve the current long/short ratio, 24h change, and funding rate for a Pear Protocol pair by providing long and short asset arrays.
Instructions
Get the current ratio (long/short composition price) for a specific Pear Protocol pair. Pass long and short asset arrays. Returns the ratio, 24h change, and funding rate. Useful when you know the pair you care about and want the latest number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| longAssets | Yes | Asset symbols on the long side (e.g. ['BTC']). | |
| shortAssets | Yes | Asset symbols on the short side. Pass an empty array for long-only baskets. |