81trust / 100
Perps Market Trend Invoke
by SolEnrich in Markets & finance
x402 APIPassing, checked 2 h ago
Per-symbol deltas for mark price, total OI, long/short skew, utilization, and borrow APR over 7/14/30 days. Direction indicators per metric and per market. Overall direction excludes mark price (price moves are not health signals). Required for regime-detection strategies and any bot that adjusts behavior based on whether markets are growing, stressed, or rebalancing. Mirror of token-trend for perps.
POST https://api.solenrich.com/entrypoints/perps-market-trend/invoke
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 181 ms typical, 349 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.solenrich.com/entrypoints/perps-market-trend/invoke" \
-H "content-type: application/json" \
-d '{"format":"json","lookback":"7d"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.solenrich.com%2Fentrypoints%2Fperps-market-trend%2Finvoke
const res = await pay("https://api.solenrich.com/entrypoints/perps-market-trend/invoke", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"format":"json","lookback":"7d"}),
});
console.log(await res.json());Example input
{
"format": "json",
"lookback": "7d"
}Example output
{
"output": {
"last_updated": "2026-09-22T00:10:10.814Z",
"lookback_days": 7,
"markets": [
{
"current": {
"borrow_rate_annualized_pct": 12.739,
"long_pct": 73.997,
"mark_price_usd": 118.57,
"short_pct": 26.003,
"total_oi_usd": 38218000,
"utilization_pct": 8.7648
},
"data_points": 4,
"deltas": [
"{…}"
],
"market_direction": "improving",
"snapshots": [
"{…}"
],
"symbol": "SOL"
}
],
"pool": "5BUwFW4nRbftYTDMbgxykoFWqWHPzahFSNAaaaJtVKsq",
"totals": {
"current_total_oi_usd": 65563000,
"overall_direction": "stable"
}
},
"run_id": "uuid",
"status": "succeeded"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 349 ms | $0.008 |
| 5 h ago | Passed | 402 | 457 ms | $0.008 |
| 8 h ago | Passed | 402 | 179 ms | $0.008 |
| 13 h ago | Passed | 402 | 181 ms | $0.008 |