Hi,
rate limit whatever that is mentioned here is misleading. I did some test and rate limit for data apis are 1 req/sec. Why ? Other brokers provides reasonable API limits.
import datetime
while True:
print(f"curren time: {datetime.datetime.now().strftime(‘%H:%M:%S’)}")
print(tsl.get_ltp_data(names=“HINDALCO”))
Output:
curren time: 07:12:10
{‘HINDALCO’: 954.95}
curren time: 07:12:10
Exception at calling ltp as {‘status’: ‘failure’, ‘remarks’: {‘error_code’: None, ‘error_type’: None, ‘error_message’: None}, ‘data’: ‘’}
{}
curren time: 07:12:11
{‘HINDALCO’: 954.95}
curren time: 07:12:11
Exception at calling ltp as {‘status’: ‘failure’, ‘remarks’: {‘error_code’: None, ‘error_type’: None, ‘error_message’: None}, ‘data’: ‘’}
{}
curren time: 07:12:12
{‘HINDALCO’: 954.95}
curren time: 07:12:12
Exception at calling ltp as {‘status’: ‘failure’, ‘remarks’: {‘error_code’: None, ‘error_type’: None, ‘error_message’: None}, ‘data’: ‘’}
{}
And you guys really need to fix the error handling.