Skip to main content

Quantitative financial timeseries analysis

Project description

A Domain Specific Language for Timeseries Analysis.

Documentation:

http://packages.python.org/dynts/

Dowloads:

http://pypi.python.org/pypi/dynts/

Source:

http://github.com/quantmind/dynts

Keywords:

timeserie, quantitative, finance, statistics, web

Timeseries analysis and a timeseries domain specific language written in Python.

Timeserie Object

To create a timeseries object directly:

>>> from dynts import timeseries
>>> ts = timeseries('test')
>>> ts.type
'zoo'
>>> ts.name
'test'
>>> ts
TimeSeries:zoo:test
>>> str(ts)
'test'

DSL

At the core of the library there is a Domain-Specific-Language (DSL) dedicated to timeserie analysis and manipulation. DynTS makes timeserie manipulation easy and fun. This is a simple multiplication:

>>> import dynts
>>> e = dynts.parse('2*GOOG')
>>> e
2.0 * goog
>>> len(e)
2
>>> list(e)
[2.0, goog]
>>> ts = dynts.evaluate(e).unwind()
>>> ts
TimeSeries:zoo:2.0 * goog
>>> len(ts)
251

Requirements

There are several requirements that must be met:

  • python 2.4 or later. Note that Python 3 series are not supported yet.

  • numpy arrays and matrices.

  • ply the building block of the DSL.

  • rpy2 if an R TimeSeries back-end is used (default).

  • ccy for date and currency manipulation.

Depending on the back-end used, additional dependencies need to be met. For example, there are back-ends depending on the following R packages:

Installing rpy2 on Linux is straightforward, on windows it requires the python for windows extension library.

Optional Requirements

Running Tests

Form the package directory:

python runtests.py

or, once installed:

from dynts import runtests
runtests()

If you are behind a proxy, some tests will fail unless you write a little script which looks like this:

from dynts.conf import settings
from dynts import runtests
settings.proxies['http'] = 'http://your.proxy.com:80'

if __name__ == '__main__':
    runtests()

Community

Trying to use an IRC channel #dynts on irc.freenode.net (you can use the webchat at http://webchat.freenode.net/).

If you find a bug or would like to request a feature, please submit an issue.

Project details


Download files

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

Source Distributions

dynts-0.2.zip (323.9 kB view details)

Uploaded Source

dynts-0.2.tar.gz (277.7 kB view details)

Uploaded Source

File details

Details for the file dynts-0.2.zip.

File metadata

  • Download URL: dynts-0.2.zip
  • Upload date:
  • Size: 323.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dynts-0.2.zip
Algorithm Hash digest
SHA256 f9a45a8f7794b961e4cf258b395589f3b82e74d9e858e1a42622464ac1d8d49b
MD5 6d79034f1dc6949375f988387a3dffc1
BLAKE2b-256 10a556fd1c27e046834dbe7b5daf976f3f4449b03bd9a6862ffc3ebce93d7dc4

See more details on using hashes here.

File details

Details for the file dynts-0.2.tar.gz.

File metadata

  • Download URL: dynts-0.2.tar.gz
  • Upload date:
  • Size: 277.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dynts-0.2.tar.gz
Algorithm Hash digest
SHA256 522a78053daefa8896a519ff17605f4130b7d3e01c26379ad27779150d3be9bc
MD5 0017acc3b4cc52e07348d5451d360859
BLAKE2b-256 f930e31a7504d0737c10347d0daa5148fb754b27d79f122f1a94abb57d95a44a

See more details on using hashes here.

Supported by

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