question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FTX] Fetch markets fails when it encounters a Future with no expiration date

See original GitHub issue
  • OS: MacOS
  • Programming Language version: Python 3.9
  • CCXT version: 1.68.20

When loading markets on FTX, it can happen that a future has no expiration date set, so the following line of ccxt/async_support/ftx.py in fetch_markets fails:

symbol = base + '/' + quote + ':' + settle + '-' + self.yymmdd(expiry, '')

because expiry is None and yymmdd raises TypeError.

Unfortunately I don’t have details about the symbol, I can only tell that it happened at Jan 20, 2022 12:00:09 AM UTC.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
pietrodncommented, Feb 18, 2022

@kroitor I tried to improve the reporting of such errors in this PR: https://github.com/ccxt/ccxt/pull/12017

0reactions
kroitorcommented, Feb 18, 2022

@pietrodn @mattepozz yep, where that error happens is clear, but it’s not entirely clear why (need to see that faulty market or that faulty response) – a verbose output would help resolve it. I’ll try to reproduce it on my side.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crypto: What's next as FTX collapse triggers 'Lehman moment'?
The exchange — said to be short between $8 billion and $10 billion — was unable to meet customers' withdrawal demands.
Read more >
Will the FTX Failure Drag Other Financial Markets Down? - Blog
Will the FTX failure drag financial markets down? The short answer to this question is “no.” The total market capitalization of ...
Read more >
Is This Crypto's Lehman Moment? - The New York Times
Indeed, FTX's fall — including a failed attempt to sell itself to the rival crypto exchange Binance — may turn out to be...
Read more >
At least $1 billion of client funds missing at failed crypto firm FTX
New York, Nov 11 (Reuters) - At least $1 billion of customer funds have vanished from collapsed crypto exchange FTX, according to two...
Read more >
FTX Crash: Timeline, Fallout and What Investors Should Know
Crypto exchange FTX collapsed this week, tanking major tokens in its ... to bail out the failing exchange to prevent a larger market...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found