getFunding
InvokeFetch current funding rate, next funding time, open interest, and skew for specified perpetual markets
Input Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"venue_ids": {
"description": "Venue IDs to query (e.g., ['HlPerp', 'BinPerp']). If not provided, returns data from all available venues.",
"type": "array",
"items": {
"type": "string"
}
},
"markets": {
"description": "Market symbols to track (e.g., ['BTC', 'ETH', 'SOL'])",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"markets"
],
"additionalProperties": false
}
Output Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"market": {
"type": "string"
},
"venue": {
"type": "string"
},
"funding_rate": {
"type": "string"
},
"time_to_next": {
"type": "number"
},
"open_interest": {
"type": "string"
},
"skew": {
"type": "number"
}
},
"required": [
"market",
"venue",
"funding_rate",
"time_to_next",
"open_interest",
"skew"
],
"additionalProperties": false
}
}
},
"required": [
"results"
],
"additionalProperties": false
}
Invoke with curl
curl -s -X POST \
'http://perps-funding-agent-production.up.railway.app/entrypoints/getFunding/invoke' \
-H 'Content-Type: application/json' \
-d '
{
"input": {
"venue_ids": [
"string"
],
"markets": [
"string"
]
}
}
'