How to fetch next funding rate for BTCUSD / ETHUSD futures via API?

Hello Team,

I am building an automated trading system using Delta Exchange APIs.
I need to programmatically fetch the next funding rate and funding timestamp for the perpetual futures pairs BTCUSD and ETHUSD.

I have checked the /v2/products endpoint, but the response for these instruments does not include fields such as funding_rate, next_funding_at, or funding_interval.

Could you please confirm:

  1. Which API endpoint provides the funding rate for BTCUSD / ETHUSD perpetual contracts?

  2. If not available publicly, is there an alternative API or method to retrieve the funding rate?

  3. Do India-specific futures (e.g., ETHUSD) have funding fees, or are they exempt?

Thank you.

1 Like

prasadmandru1979@gmail.com

Point 1 ,you can suggest algorithm trading.

the next funding information doesn’t come from rest api but websocket channel: Delta Exchange Api
you can subscribe to the channel and keep listening for the funding updates.

1 Like

You can get real-time funding rate data is through the WebSocket funding_rate channel and Yes, both BTCUSD and ETHUSD perpetual contracts DO have funding fees. they are not exempt.

@ayush.aggrwl @manku.pathak Thanks for the quick help issue resolved the following code works well now

import json
import websocket

WS_URL = “wss://socket.delta.exchange”

def on_open(ws):
sub = {
“type”: “subscribe”,
“payload”: {
“channels”: [
{
“name”: “funding_rate”,
“symbols”: [“BTCUSD”]
}
]
}
}

ws.send(json.dumps(sub))
print("Subscribed to funding rate...")

def on_message(ws, message):
print(“Message:”, message)

def on_error(ws, error):
print(“Error:”, error)

def on_close(ws):
print(“Closed.”)

ws = websocket.WebSocketApp(
WS_URL,
on_open=on_open,
on_message=on_message,
on_error=on_error,
on_close=on_close,
)

ws.run_forever()

1 Like