Skip to main content

Enterprise architecture for quantitative analysis in finance.

Project description

Welcome to Quant

Quant is an enterprise software application for quantitative analysis. Quant is a powerful combination of SciPy and DomainModel.

Quant contains a model of quantitative analysis in finance. The model has object markets, symbols, exchanges, price processes, observations, books, contract types, pricers, pricer preferences, and reports.

Quant can easily be extended to support custom price processes, pricers, and contract types. Quant is written in Python.

Quant currently has implementations for a Black Scholes price process; a Black Scholes pricer, a binomial tree pricer, a monte carlo pricer; and contract types for european, american and futures contracts.

Some of features we are planning to implement include:

  • scrapers to pull market prices from exchanges;

  • RESTful API for remote machine clients;

  • integration with common spreadsheet applications;

  • domain specific language to specify generic derivatives;

  • monte carlo with state machine to evaluate generic derivatives.

If you would like to suggest a feature, please get in touch!

Install Guide

It is very easy to install Quant. Creating Quant services involves a few more steps. Either do it all by hand, or use the Quant installer (see below).

Either way, afterwards you will need to hook Quant into your Apache server.

Operating System Dependencies

Before installation, make sure required system packages are installed:

$ sudo aptitude install python python-numpy python-scipy

Check your Python can load scipy with (returns silently if available):

$ python -c "import numpy"
$ python -c "import scipy"

Please note, if you will install Quant into an isolated virtual Python environment (e.g. with virtualenv), you will want to create library links to the Python packages for SciPy (and NumPy) before installing Quant.

Install Steps

Install the Quant Python package (and dependencies) by running either:

$ pip install quant

Or by downloading the Quant tarball, unpacking and running:

$ python setup.py install

After installation, please read the following help pages for more information:

$ quant-makeconfig --help
$ quant-admin help setup

Deployment Steps

Firstly, decide a filesystem path for the deployment:

$ mkdir YOUR-SITE-DIR

Secondly, create the configuration file:

$ quant-makeconfig --master-dir=YOUR-SITE-DIR YOUR-SITE-DIR/quant.conf

Thirdly, set up the site by running:

$ quant-admin --config=YOUR-SITE-DIR/quant.conf setup

Please note, if you installed Quant into an isolated virtual Python environment, you will want to use the –virtualenv-bin-dir option of quant-makeconfig.

The Quant Installer

You can create a Quant service in one step with the Quant installer:

$ wget http://appropriatesoftware.net/provide/docs/quant-virtualenv
$ chmod +x quant-virtualenv

Run the installer, at least with a path argument (see –help for options):

$ ./quant-virtualenv YOUR-SITE-DIR

The path argument can be relative or absolute.

The installer will build a virtual Python environment, and install the Quant software. The installer will then set up a new site with an SQLite database, and it will create an Apache config file to be included in the main Apache configuration (see below).

Apache Configuration Steps

Make sure the required system packages are installed:

$ sudo aptitude install apache2 libapache2-mod-wsgi

Also, make sure Apache mod_wsgi is enabled:

$ sudo a2enmod wsgi

Change ownership of the Quant files to the Apache server:

$ sudo chown -R www-data:www-data YOUR-SITE-DIR

You can do more complicated things with the installer (see –help) and the file permissions and ownerships, but these few lines should work.

Pick a domain name for your site. Create a new virtual host which includes the auto-generated Apache configuration (path mentioned by the installer). Then configure your DNS. A new Apache virtual host could simply look like this:

<VirtualHost *:80>
    ServerName YOUR-SITE-DOMAIN-NAME
    Include YOUR-SITE-DIR/var/httpd-autogenerated.conf
</VirtualHost>

Please note, the path to the auto-generated file must be an absolute path (not a relative path).

After restarting, your virtual host will show a page saying ‘Welcome to Quant’. You will be able to login with username ‘admin’ and password ‘pass’.

Contact

If you have any difficulties or questions about Quant, please email:

quant-support@appropriatesoftware.net

Please note at the moment, Quant is developed and tested on Ubuntu 10.10 (64 bit) with Python 2.6 only, although it should work on any recent Linux distribution.

About

Quant is a project of the Appropriate Software Foundation. Please refer to the Quant website for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quant-0.6.tar.gz (162.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page