Nasdaq / NasdaqCloudDataService-SDK-Python

Nasdaq Data Link provides a modern and efficient method of delivery for real-time exchange data and other financial information. This repository provides a Python SDK for developing applications using Nasdaq Data Link's real-time data.
https://www.nasdaq.com/solutions/data-link-api
Apache License 2.0
56 stars 25 forks source link

Providing a timestamp to the ncds_client crashes #51

Open normand1 opened 7 months ago

normand1 commented 7 months ago

This issue can be reproduced by running the following example from the provided python_sdk_examples.ipynb notebook: Get first 10 messages of the stream from given timestamp

Running that example will crash with the following message:

2024-03-19 09:51:42,786 - ncdssdk.src.main.python.ncdsclient.consumer.NasdaqKafkaAvroConsumer - ERROR - 'dict' object has no attribute 'TIMEOUT'
Traceback (most recent call last):
  File "/NasdaqCloudDataService-SDK-Python/ncdssdk/src/main/python/ncdsclient/consumer/NasdaqKafkaAvroConsumer.py", line 108, in get_kafka_consumer
    [topic_partition], self.kafka_cfg.TIMEOUT)
AttributeError: 'dict' object has no attribute 'TIMEOUT'