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.

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

You can get projects.

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

You can get source code.

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

You can upload source code

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

You can run backtest

```python
>>> 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.2-py3-none-any.whl (26.0 kB) Copy SHA256 hash SHA256 Wheel py3 Sep 12, 2018

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 DigiCert DigiCert EV certificate StatusPage StatusPage Status page