Skip to main content

QuantX SDK

Project description

QuantX SDK for Python

A Python library for the QuantX API.

Installation

pip install QuantX-SDK

Usage

Initialize.

from quantx_sdk import QX
qx = QX(public_key, secret_key)

You can get projects.

>>> qx.projects()
[
  {
    "name": "project name".
    "hash": "xxx"
  },
  ...
]

You can get source code.

>>> project = qx.projects()[0]
>>> project.source()
source code...

You can upload source code

>>> project.upload_source("source code")
>>> # or
>>> project.upload_source_file("hoge.py")

You can run backtest

>>> backtest = project.backtest({'engine': 'maron-0.0.1b', 'to_date': '2017-12-31', 'from_date': '2017-12-01', 'capital_base': 10000000})
>>> # or
>>> backtest = project.backtest({}) # run default backtest parameters
>>> result = backtest.join() # backtest running other thread.
>>> summary = result.summary() # get backtest sumamry
>>> benchmark = result.benchmark() # benchmark is DataFrame

Project details


Download files

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

Files for quantx-sdk, version 0.1.9
Filename, size File type Python version Upload date Hashes
Filename, size quantx_sdk-0.1.9-py3-none-any.whl (18.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size quantx_sdk-0.1.9.tar.gz (10.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page