algo2t / alphatrade

Python APIs for SAS Online Alpha Trade Web platform for creating algo trading using python
https://algo2t.github.io/alphatrade
MIT License
44 stars 22 forks source link

historical data error !!!!!! #43

Open eaywok opened 1 year ago

eaywok commented 1 year ago

nifty_bank_nse_index = sas.get_instrument_by_symbol('NSE', 'Nifty Bank') df = sas.get_historical_candles(nifty_bank_nse_index.exchange, nifty_bank_nse_index.symbol, datetime(2022, 10, 10, 9, 15, 0), datetime.now(), interval=1, is_index=True)

error:::::----------------------------- Traceback (most recent call last): File "e:!TRADING STUFF\ALPHA trade\sas.py", line 29, in datetime(2022, 10, 10, 9, 15, 0), datetime.now(), interval=1, TypeError: 'module' object is not callable