Market Data

Get Funding Info

Get funding information for a perpetual trading pair.

Args: request: Funding info request with connector name and trading pair market_data_manager: Injected market data feed manager

Returns: Funding information including rates, timestamps, and prices

Raises: HTTPException: 400 for non-perpetual connectors, 500 for other errors

post/market-data/funding-info

Request body

connector_namestring required

Name of the connector

trading_pairstring required

Trading pair to get funding info for

Response

Successful Response

trading_pairstring required

Trading pair

funding_ratenumber nullable required

Current funding rate

next_funding_timenumber nullable required

Next funding time timestamp

mark_pricenumber nullable required

Mark price

index_pricenumber nullable required

Index price

Changes

Changed in 4 of the 13 revisions of this API.47

    • added the optional property detail/items/ctx to the response with the 422 status

      response-optional-property-added

    • added the optional property detail/items/input to the response with the 422 status

      response-optional-property-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the response property funding_rate became required for the status 200

      response-property-became-required

    • the response property index_price became required for the status 200

      response-property-became-required

    • the response property mark_price became required for the status 200

      response-property-became-required

    • the response property next_funding_time became required for the status 200

      response-property-became-required

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the response property funding_rate became optional for the status 200

      response-property-became-optional

    • the response property index_price became optional for the status 200

      response-property-became-optional

    • the response property mark_price became optional for the status 200

      response-property-became-optional

    • the response property next_funding_time became optional for the status 200

      response-property-became-optional

    • endpoint added

      endpoint-added

    This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog