Coder Social home page Coder Social logo

qq-optiver's People

Contributors

chandinijain avatar shubham1217 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

qq-optiver's Issues

Error while downloading the data

I download the Problem 3 folder and executed problem3_template.py and I am getting the following error:

Processing data for stock: EXR
Processing data for stock: BYB
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/backtester/timeRule/nse_time_rule.py", line 31, in getNSEHolidays
    soup = BeautifulSoup(content, 'lxml')
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/bs4/__init__.py", line 198, in __init__
    % ",".join(features))
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "problem3_template.py", line 176, in <module>
    tradingSystem = TradingSystem(tsParams)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/backtester/trading_system.py", line 49, in __init__
    self.tsParams.getTimeRuleForUpdates(), self.initializer)
  File "/Users/rajat/Desktop/placementTests/qq-optiver/problem3/problem3_trading_params.py", line 62, in getTimeRuleForUpdates
    return NSETimeRule(startDate=self.__startDate, endDate=self.__endDate, startTime='15:30', frequency='M', sample='1440')
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/backtester/timeRule/nse_time_rule.py", line 15, in __init__
    super(NSETimeRule, self).__init__(startDate = startDate, endDate = endDate, startTime = startTime, endTime= endTime, holidays = self.getNSEHolidays(), frequency = frequency, sample = sample)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/backtester/timeRule/nse_time_rule.py", line 37, in getNSEHolidays
    except HTTPError as e:
NameError: name 'HTTPError' is not defined

Can you please point out the problem.

Python 3.5.4
OS: Mac OS High Sierra

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.