ccxt: TypeError ftx.py

  • OS: Windows
  • Programming Language version: python 3.10
  • CCXT Version: 1.87.66

That works in v1.84.70 but now I have an error when I execute this request:

exchange = ccxt.ftx({...})
first = 1595808000
end = first + 1796400
request = {'start_time': first, 'end_time': end, }
funding = exchange.fetch_funding_rate_history(symbol, params=request)
File "ftx.py", line 1300, in fetch_funding_rate_history
    request['end_time'] = int(until / 1000)
TypeError: unsupported operand type(s) for /: 'str' and 'int'

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 19 (12 by maintainers)

Commits related to this issue

Most upvoted comments

Wow this is awesome. I started using FTX’s REST API via python and it looked like a nightmare to deal with. Found this by accident and it’s a heaven’s sent. Thanks a ton Kroiter - ccxt has literally saved me months of coding over the past few years.

Question: The symbol ‘BTC/USD:USD’ - is that to be used in place of ‘BTC-PERP’?

@kroitor thank you very much! My code works again in v1.87.71 . Good job! I’m trying to see how I can help solve the problems I find, but the package is very complicated, I don’t have the level to do a PR. But I can comment! Thanks for listening, you are doing a great job!