Skip to main content

Trading strategy development and deployment

Project description

msqd

The msqd library (pronounced "em squared") is a small boilerplate library for designing, testing and spinning up trading algorithms using Python.

Notes

  • Upon class instantiation, ping database to get timestamps for which we have data, whether this is the downsampled timestamps or the timestamps we got from the database, and maybe some record of the furthest lookback would have to consider to get well-defined features.
  • What data do we need to get from the database? How/where shall we cache it? For how long? Either we need to get some data and compute the feature value OR we already know (or can work out) that we won't yield any more information by pinging the database again and should just return the most recent value available.

Design Goals

  • We build up trading systems and strategies by composing functions. For example, we may have a filtering layer where we only trade a particular strategy when certain conditions are met; we may filter instruments.
  • A strategy is a function: it has some fixed parameters and it has some time-dependent inputs.
  • What is the most convenient way to define strategies?
  • We require full-stack control: we can spin up strategies using simple moving averages really quickly but can also do deep market-making strategies with full control over individual orders, sizes, etc.
  • Pass to Rust for calculations that are really really slow. Most of the time, numpy calculations will be working fine.
  • Let certain features augment multiple values, e.g. RETURNS[-5:] would give the most recent 5 returns (according to some frequency), even though it is just one input in the code.

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

msqd-0.0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

msqd-0.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file msqd-0.0.1.tar.gz.

File metadata

  • Download URL: msqd-0.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.2

File hashes

Hashes for msqd-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d6906e99e7f656ff1068d5e9bbfc319f34e88048f29c12f1c5e1658f748532dd
MD5 63f02c0b456e5f26586c5e5d0baae418
BLAKE2b-256 1bfa25873121ba3b096d0046e5152f1d031f83e45b4b618f615464053b535bc9

See more details on using hashes here.

Provenance

File details

Details for the file msqd-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: msqd-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.2

File hashes

Hashes for msqd-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8528ef1cadd8c3d78a96bc8c09f0868f20bacaedfdf64789cc6b30630b7066f
MD5 a13e992a2ea1af369f8309e0076e1fc6
BLAKE2b-256 ecc41614609d6d32a50b51e6e5665d6f66281c7d85edd0ca976f7deaaf45ee13

See more details on using hashes here.

Provenance

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