Market Data

Get Funding Info

Changed on

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

  • Base URL
    http://localhost:8000
  • URL
    http://localhost:8000/market-data/funding-info
  • Auth
    HTTP basic

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

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status