Signals Behavior
by Mangrove AI in Onchain & crypto
Returns measured behaviour for library signals. The lookup is describe, pick, find or gap_probability: parameter meanings and measured span, a signal near a target rate, signals within a rate band, or the chance of a gap of a given length.
https://api.mangrovedeveloper.ai/api/v1/signals/behavior- Price
- $0.005
- per call in USDC
- Uptime
- 98.3%
- last 30 days
- Response time
- 194 ms
- 598 ms slowest 5%
- Last check
- Passed
- 6 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://api.mangrovedeveloper.ai/api/v1/signals/behavior
Each call costs $0.005 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://api.mangrovedeveloper.ai/api/v1/signals/behavior
content-type: application/json
{
"lookup": "describe",
"signal": "rsi_oversold",
"signal_type": "FILTER"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
category | string | No | find: restrict to one family, e.g. oscillator, volatility, momentum |
limit | integer | No | Maximum results, 1-100 Default: 10. |
lookup | string | Yes | describe: one signal -- parameter meanings, measured span, what its default measures. pick: settings of one signal that hit target_rate. find: which signals reach a rate band. gap_probability: share of a signal's gaps inside a range of bar lengths, per configuration. One of: describe, pick, find, gap_probability. |
max_gap_bars | number | No | pick/find, TRIGGER only: median gap at most this many bars |
max_gap_range_bars | number | No | gap_probability: high end of the gap range, inclusive (required) |
max_rate | number | No | find: high end of the band, same units (required) |
max_run_bars | number | No | pick/find, FILTER only: mean run at most this many bars |
min_gap_bars | number | No | pick/find, TRIGGER only: median gap at least this many bars |
min_gap_range_bars | number | No | gap_probability: low end of the gap range, inclusive (required) |
min_rate | number | No | find: low end of the band, same units (required) |
min_run_bars | number | No | pick/find, FILTER only: mean run at least this many bars |
signal | string | No | Signal name, e.g. rsi_oversold. Required by describe, pick, gap_probability |
signal_type | string | No | FILTER (an ongoing state) or TRIGGER (a one-bar event); measured separately One of: FILTER, TRIGGER. Default: "FILTER". |
target_rate | number | No | pick: rate to aim for -- FILTER selectivity 0-1, TRIGGER firings per 1,000 bars. Omit to list the span |
Example response
The provider's example. We can't check it without paying.
Example response, 28 lines
{
"lookup": "describe",
"result": {
"category": "oscillator",
"configurations": 151,
"description": "Check if RSI is below the oversold threshold. RSI values bel...",
"measured": true,
"measured_over_bars": 339669,
"parameters": {
"threshold": {
"default": 30,
"max": 50,
"means": "Oversold threshold",
"min": 0,
"type": "float"
},
"window": {
"default": 14,
"max": 100,
"means": "RSI calculation window",
"min": 2,
"type": "int"
}
},
"signal": "rsi_oversold",
"signal_type": "FILTER"
}
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.005.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://api.mangrovedeveloper.ai/api/v1/signals/behavior' \
-H 'content-type: application/json' \
--data-raw '{"lookup":"describe","signal":"rsi_oversold","signal_type":"FILTER"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://api.mangrovedeveloper.ai/api/v1/signals/behavior' \
-H 'content-type: application/json' \
--data-raw '{"lookup":"describe","signal":"rsi_oversold","signal_type":"FILTER"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.005 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.005" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.005 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.mangrovedeveloper.ai%2Fapi%2Fv1%2Fsignals%2Fbehavior&method=POST
const res = await pay("https://api.mangrovedeveloper.ai/api/v1/signals/behavior", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"lookup": "describe",
"signal": "rsi_oversold",
"signal_type": "FILTER"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.005 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.005"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://api.mangrovedeveloper.ai/api/v1/signals/behavior",
json={
"lookup": "describe",
"signal": "rsi_oversold",
"signal_type": "FILTER",
},
)
print(res.status_code, res.text)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 |
|---|---|---|---|---|
| 6 h ago | Passed | 402 | 193 ms | $0.005 |
| 15 h ago | Passed | 402 | 211 ms | $0.005 |
| 26 h ago | Passed | 402 | 572 ms | $0.005 |
| 39 h ago | Passed | 402 | 192 ms | $0.005 |
| 4 days ago | Timed out | - | - | - |
Show 10 older checks
| 5 days ago | Passed | 402 | 183 ms | $0.005 |
| 5 days ago | Passed | 402 | 320 ms | $0.005 |
| 6 days ago | Passed | 402 | 232 ms | $0.005 |
| 6 days ago | Passed | 402 | 169 ms | $0.005 |
| 7 days ago | Passed | 402 | 243 ms | $0.005 |
| 7 days ago | Passed | 402 | 297 ms | $0.005 |
| 7 days ago | Passed | 402 | 268 ms | $0.005 |
| 8 days ago | Passed | 402 | 176 ms | $0.005 |
| 8 days ago | Passed | 402 | 176 ms | $0.005 |
| 8 days ago | Passed | 402 | 540 ms | $0.005 |