[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:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@kroitor I tried to improve the reporting of such errors in this PR: https://github.com/ccxt/ccxt/pull/12017
@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.