bmoscon / cryptofeed

Cryptocurrency Exchange Websocket Data Feed Handler
Other
2.21k stars 684 forks source link

Open interest is not working in both BINANCE_FUTURES and BINANCE_DELIVERY #869

Closed likso closed 2 years ago

likso commented 2 years ago

Describe the bug Open interest is not working in both BINANCE_FUTURES and BINANCE_DELIVERY

Cryptofeed Version 2.2.3

TnzGit commented 2 years ago

Can confirm, error msg as below:

aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://fapi.binance.com/fapi/v1//openInterest?symbol=BTCUSDT')

You can tell from the url there's an extra /

For binance_futures, I found the extra / here. @bmoscon 'https://github.com/bmoscon/cryptofeed/blob/master/cryptofeed/exchanges/binance_futures.py#L25'

agijsberts commented 2 years ago

@TnzGit Thanks for spotting the problem. I've taken the liberty to prepare a PR that includes this fix.