sammchardy / python-binance

Binance Exchange API python implementation for automated trading
https://python-binance.readthedocs.io/en/latest/
MIT License
6.03k stars 2.2k forks source link

futures_open_interest() #599

Open cyrusmaz opened 4 years ago

cyrusmaz commented 4 years ago
    def futures_open_interest(self, **params):
        """Get present open interest of a specific symbol.
        https://binance-docs.github.io/apidocs/futures/en/#open-interest-market_data
        """
        return self._request_futures_api('get', 'ticker/openInterest', data=params)

the final line needs to be changed to

return self._request_futures_api('get', 'openInterest', data=params)

mfiro commented 3 years ago

I think your point is valid. I noticed this just now. a PR would be great.

kimchirichie commented 3 years ago

I will review + merge if we can get a PR + some confirmations from both of you that it works