WickedAPI Derivatives & Flow API

Funding/OI, long-short ratio, order books, basis, Hyperliquid

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

GET /v1/funding-oi Aggregated perpetual-futures funding rate & open interest from Binance + Bybit… #
GET /v1/long-short-ratio Binance long/short ratios: global account, top-trader account, top-trader… #
GET /v1/orderbook Top-of-book depth + spread (bps) from Binance, Bybit, or Hyperliquid #
GET /v1/basis Spot-vs-perp basis (premium %) with funding-implied annualized carry #
GET /v1/hyperliquid Hyperliquid perpetual context: funding (hourly), open interest, mark/oracle/mid… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/wickedapi-com:wickedapi-com-derivatives-flow-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

wickedapi-com-derivatives-flow-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Trading Data Derivatives & Flow API
  version: 1.0.0-mvp
  description: 'Agent-ready trading, market-data and on-chain API. 29 endpoints across crypto/stock prices & OHLCV, indicators (ATR, Fair Value Gaps, ICT liquidity levels), perp funding/OI, order books, Kalshi prediction markets, DeFi TVL, volatility, a verified macro calendar, an AI momentum score, and on-chain reads (balances, token balances, nonces, blocks, ENS, transactions) on 5 EVM chains.


    **Access — two ways, both work on every /v1 endpoint:**

    1. **API key** — send an `x-api-key` header for free, rate-limited access.

    2. **x402 pay-per-call** — no signup: call any endpoint with no key, receive a `402` with a USDC price (currently $0.001/request on base), pay via an x402 client, and get `200` + data. Settled on-chain via the Coinbase CDP facilitator.'
  x-guidance: All endpoints are GET /v1/<name> with query parameters (see each operation). Free endpoints (/v1/status, /v1/sentiment, /v1/macro-calendar, /v1/market-overview, /v1/gas, /v1/kalshi-probability) need no payment. Every other /v1 endpoint returns a 402 x402 (v2) challenge in the PAYMENT-REQUIRED header with a flat price of $0.001 USDC per request on Base; pay with an x402 client and retry the same request. Start with GET /v1/status for the full catalog.
  contact:
    url: https://api.wickedapi.com
  termsOfService: https://api.wickedapi.com/
servers:
- url: https://api.wickedapi.com
  description: Production
tags:
- name: Derivatives & Flow
  description: Funding/OI, long-short ratio, order books, basis, Hyperliquid
paths:
  /v1/funding-oi:
    get:
      operationId: get_v1_funding_oi
      summary: Aggregated perpetual-futures funding rate & open interest from Binance + Bybit…
      description: 'Aggregated perpetual-futures funding rate & open interest from Binance + Bybit, with 7-day average funding, 24h OI change, and a long/short bias signal.


        **Example:** `/v1/funding-oi?symbol=BTC`'
      tags:
      - Derivatives & Flow
      parameters:
      - name: symbol
        in: query
        required: true
        description: Required. Base crypto symbol (e.g. BTC, ETH, SOL). Mapped to the <SYMBOL>USDT perpetual ticker on Binance/Bybit.
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '429':
          $ref: '#/components/responses/RateLimited'
        '502':
          $ref: '#/components/responses/UpstreamError'
      security:
      - ApiKeyAuth: []
      - {}
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.001000'
        protocols:
        - x402: {}
  /v1/long-short-ratio:
    get:
      operationId: get_v1_long_short_ratio
      summary: 'Binance long/short ratios: global account, top-trader account, top-trader…'
      description: 'Binance long/short ratios: global account, top-trader account, top-trader position, and taker buy/sell. Companion to funding-oi.


        **Example:** `/v1/long-short-ratio?symbol=BTC&period=1h`'
      tags:
      - Derivatives & Flow
      parameters:
      - name: symbol
        in: query
        required: true
        description: Required. Base crypto symbol (e.g. BTC). Mapped to <SYMBOL>USDT.
        schema:
          type: string
      - name: period
        in: query
        required: false
        description: Optional. One of 5m,15m,30m,1h,2h,4h,6h,12h,1d (default 5m).
        schema:
          type: number
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '429':
          $ref: '#/components/responses/RateLimited'
        '502':
          $ref: '#/components/responses/UpstreamError'
      security:
      - ApiKeyAuth: []
      - {}
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.001000'
        protocols:
        - x402: {}
  /v1/orderbook:
    get:
      operationId: get_v1_orderbook
      summary: Top-of-book depth + spread (bps) from Binance, Bybit, or Hyperliquid
      description: 'Top-of-book depth + spread (bps) from Binance, Bybit, or Hyperliquid.


        **Example:** `/v1/orderbook?symbol=BTC&exchange=binance&depth=10`'
      tags:
      - Derivatives & Flow
      parameters:
      - name: symbol
        in: query
        required: true
        description: Required. Base crypto symbol (e.g. BTC).
        schema:
          type: string
      - name: exchange
        in: query
        required: false
        description: Optional. binance (default), bybit, or hyperliquid.
        schema:
          type: string
          enum:
          - binance
          - bybit
          - hyperliquid
      - name: depth
        in: query
        required: false
        description: Optional. Levels per side (default 10, max 50).
        schema:
          type: number
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '429':
          $ref: '#/components/responses/RateLimited'
        '502':
          $ref: '#/components/responses/UpstreamError'
      security:
      - ApiKeyAuth: []
      - {}
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.001000'
        protocols:
        - x402: {}
  /v1/basis:
    get:
      operationId: get_v1_basis
      summary: Spot-vs-perp basis (premium %) with funding-implied annualized carry
      description: 'Spot-vs-perp basis (premium %) with funding-implied annualized carry. Spot from Coinbase; perp marks from Binance + Bybit.


        **Example:** `/v1/basis?symbol=BTC`'
      tags:
      - Derivatives & Flow
      parameters:
      - name: symbol
        in: query
        required: true
        description: Required. Base crypto symbol (e.g. BTC).
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '429':
          $ref: '#/components/responses/RateLimited'
        '502':
          $ref: '#/components/responses/UpstreamError'
      security:
      - ApiKeyAuth: []
      - {}
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.001000'
        protocols:
        - x402: {}
  /v1/hyperliquid:
    get:
      operationId: get_v1_hyperliquid
      summary: 'Hyperliquid perpetual context: funding (hourly), open interest, mark/oracle/mid…'
      description: 'Hyperliquid perpetual context: funding (hourly), open interest, mark/oracle/mid price, premium, 24h volume. Not geo-blocked.


        **Example:** `/v1/hyperliquid?symbol=BTC`'
      tags:
      - Derivatives & Flow
      parameters:
      - name: symbol
        in: query
        required: true
        description: Required. Hyperliquid coin name (e.g. BTC, ETH, SOL).
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '429':
          $ref: '#/components/responses/RateLimited'
        '502':
          $ref: '#/components/responses/UpstreamError'
      security:
      - ApiKeyAuth: []
      - {}
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.001000'
        protocols:
        - x402: {}
components:
  responses:
    UpstreamError:
      description: Upstream data error — never fabricated data, a real source failure
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Rate limit exceeded (keyed access)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid x-api-key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PaymentRequired:
      description: No valid x-api-key — pay per call via x402 (USDC on Base). See the `accepts` array for exact price/network/payTo.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/X402Challenge'
  schemas:
    Envelope:
      type: object
      required:
      - data
      - meta
      properties:
        data:
          type: object
          description: Endpoint-specific payload.
        meta:
          type: object
          required:
          - timestamp
          properties:
            timestamp:
              type: string
              format: date-time
          additionalProperties: true
    X402Challenge:
      type: object
      description: x402 v2 payment challenge. The base64-encoded challenge is in the PAYMENT-REQUIRED response header (decode to JSON with x402Version 2 and an `accepts` array); sign it and retry with a PAYMENT-SIGNATURE header. The response body is not the challenge.
      properties: {}
      additionalProperties: true
    Error:
      type: object
      properties:
        error:
          type: string
        source:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Free, rate-limited access.