diff options
Diffstat (limited to 'python/api_quotes/__main__.py')
| -rw-r--r-- | python/api_quotes/__main__.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/python/api_quotes/__main__.py b/python/api_quotes/__main__.py index abe65fda..ec926e8e 100644 --- a/python/api_quotes/__main__.py +++ b/python/api_quotes/__main__.py @@ -11,14 +11,13 @@ if __name__ == "__main__": for i in range(1000): if data := MarkitAPI.get_data(asset_class, after): for row in data: - if row["confidence"] == 10: - try: - quote = Quote.from_markit_line(row) - except ValueError as e: - logger.error(f"Couldn't pase {row['quoteid']}: {e}") - else: - quote.stage() - quote.commit() + try: + quote = Quote.from_markit_line(row) + except ValueError as e: + logger.error(f"Couldn't pase {row['quoteid']}: {e}") + else: + quote.stage() + quote.commit() after = f"{row['receiveddatetime']},{asset_class}-9480-{row['quoteid']}" else: break |
