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


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("")

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
quantx_sdk-0.1.3-py3-none-any.whl (26.3 kB) Copy SHA256 hash SHA256 Wheel py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page