Funding Rate RPC provides a stream of the current funding rate for a symbol, if the funding window were to end now. The funding rate value at the end of a funding window is used to compute funding payments.

Outside of extended market hours, the funding rate is 0 and will not be returned.

Sample Code

import grpc
import common_pb2
import market_data_pb2_grpc

def stream_funding_rate():
    channel = grpc.secure_channel('mds.pfex.io:443', grpc.ssl_channel_credentials())
    stub = market_data_pb2_grpc.MarketDataServiceStub(channel)

    for funding_rate in stub.GetFundingRate(common_pb2.GetSymbol(symbol="SP500-USD")):
        print(funding_rate)

if __name__ == '__main__':
    stream_funding_rate()

Example Response

symbol: "SP500-USD"
rate: 0.0154
time_remaining_seconds: 43
timestamp {
  seconds: 1746911241
  nanos: 829600944
}