{
  "x402Version": 2,
  "id": 26517,
  "slug": "26517",
  "resource": "https://api.solenrich.com/entrypoints/perps-venue-comparison/invoke",
  "description": "Builds on cross-venue funding with size-aware fields: Jupiter Quote spot slippage at requested size, per-venue fee, OI cap headroom, first-hour borrow cost, and total entry cost. Returns rankings by entry cost / borrow APR / headroom plus a recommendation venue with warnings. Use when sizing a real position; use perps-cross-venue-funding for rates-only context.",
  "type": "http",
  "serviceName": "SolEnrich",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1780954502/bazaar-icons/31c7c2e1c5cde08e.png",
  "resourceType": "AI Inference",
  "accepts": [
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "66Qvhr1xnwqbCT36KfHfZF1JpoWdmCQ3uFYTN335CGXe",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x8EdE9eD2E6ACdd9B2BaFa42ff4078d3F3263607c",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "format": "json",
            "market": "SOL",
            "side": "long",
            "size_usd": 5000
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "output": {
              "checked_at": 1790035810602,
              "market": "SOL",
              "rankings": {
                "by_borrow_apr": [
                  "dydx-v4",
                  "adrena",
                  "hyperliquid"
                ],
                "by_entry_cost": [
                  "hyperliquid",
                  "dydx-v4",
                  "adrena"
                ],
                "by_headroom": [
                  "jupiter-perps"
                ]
              },
              "recommendation": {
                "reasoning": "adrena cheapest at 0.060% total entry cost (0.001pt below jupiter-perps at 0....",
                "venue": "adrena",
                "warnings": [
                  "best_venue_tilted"
                ]
              },
              "side": "long",
              "size_usd": 5000,
              "spot_slippage_pct": 0,
              "spot_slippage_source": "jupiter-quote",
              "spot_slippage_tier_used": 10000,
              "venues": [
                {
                  "available": true,
                  "borrow_apr_long": 12.739,
                  "borrow_apr_short": 12.739,
                  "estimated_slippage_pct": 0,
                  "fee_pct": 0.06,
                  "first_hour_borrow_pct": 0.0014542,
                  "flags": [],
                  "health": "TILTED",
                  "oi_cap_headroom_usd": 211720000,
                  "open_interest_usd": 38218000,
                  "total_entry_cost_pct": 0.061454,
                  "type": "solana-onchain",
                  "venue": "jupiter-perps"
                }
              ]
            },
            "run_id": "uuid",
            "status": "succeeded"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "format": {
                    "default": "json",
                    "description": "Response format: json (structured fields, default), llm (short deterministic briefing), or both (fields plus llm_summary).",
                    "enum": [
                      "json",
                      "llm",
                      "both"
                    ],
                    "type": "string"
                  },
                  "market": {
                    "description": "Asset to query",
                    "enum": [
                      "SOL",
                      "BTC",
                      "ETH",
                      "BONK"
                    ],
                    "type": "string"
                  },
                  "side": {
                    "default": "long",
                    "description": "Side being sized",
                    "enum": [
                      "long",
                      "short"
                    ],
                    "type": "string"
                  },
                  "size_usd": {
                    "description": "Position size in USD",
                    "maximum": 10000000,
                    "minimum": 100,
                    "type": "number"
                  }
                },
                "required": [
                  "market",
                  "size_usd"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "perps",
    "venue-comparison",
    "funding-rate",
    "best-entry",
    "solana",
    "bazaar"
  ],
  "sourceHost": "api.solenrich.com",
  "lastUpdated": "2026-10-07T23:52:51.064Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-07T23:52:50.842Z"
  },
  "metadata": {
    "serviceName": "SolEnrich",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1780954502/bazaar-icons/31c7c2e1c5cde08e.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "format": "json",
              "market": "SOL",
              "side": "long",
              "size_usd": 5000
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "output": {
                "checked_at": 1790035810602,
                "market": "SOL",
                "rankings": {
                  "by_borrow_apr": [
                    "dydx-v4",
                    "adrena",
                    "hyperliquid"
                  ],
                  "by_entry_cost": [
                    "hyperliquid",
                    "dydx-v4",
                    "adrena"
                  ],
                  "by_headroom": [
                    "jupiter-perps"
                  ]
                },
                "recommendation": {
                  "reasoning": "adrena cheapest at 0.060% total entry cost (0.001pt below jupiter-perps at 0....",
                  "venue": "adrena",
                  "warnings": [
                    "best_venue_tilted"
                  ]
                },
                "side": "long",
                "size_usd": 5000,
                "spot_slippage_pct": 0,
                "spot_slippage_source": "jupiter-quote",
                "spot_slippage_tier_used": 10000,
                "venues": [
                  {
                    "available": true,
                    "borrow_apr_long": 12.739,
                    "borrow_apr_short": 12.739,
                    "estimated_slippage_pct": 0,
                    "fee_pct": 0.06,
                    "first_hour_borrow_pct": 0.0014542,
                    "flags": [],
                    "health": "TILTED",
                    "oi_cap_headroom_usd": 211720000,
                    "open_interest_usd": 38218000,
                    "total_entry_cost_pct": 0.061454,
                    "type": "solana-onchain",
                    "venue": "jupiter-perps"
                  }
                ]
              },
              "run_id": "uuid",
              "status": "succeeded"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "format": {
                      "default": "json",
                      "description": "Response format: json (structured fields, default), llm (short deterministic briefing), or both (fields plus llm_summary).",
                      "enum": [
                        "json",
                        "llm",
                        "both"
                      ],
                      "type": "string"
                    },
                    "market": {
                      "description": "Asset to query",
                      "enum": [
                        "SOL",
                        "BTC",
                        "ETH",
                        "BONK"
                      ],
                      "type": "string"
                    },
                    "side": {
                      "default": "long",
                      "description": "Side being sized",
                      "enum": [
                        "long",
                        "short"
                      ],
                      "type": "string"
                    },
                    "size_usd": {
                      "description": "Position size in USD",
                      "maximum": 10000000,
                      "minimum": 100,
                      "type": "number"
                    }
                  },
                  "required": [
                    "market",
                    "size_usd"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.solenrich.com",
    "manifest_name": "api.solenrich.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}