semvec/pypi-packages huggingface dataset:
quantools 0.3.7
个人的量化指标计算与回测的工具库
License: MIT
Requires Python: >=3.6.0


# Quantools

```
 .d88888b.                             888                      888          
d88P" "Y88b                            888                      888          
888     888                            888                      888          
888     888 888  888  8888b.  88888b.  888888  .d88b.   .d88b.  888 .d8888b  
888     888 888  888     "88b 888 "88b 888    d88""88b d88""88b 888 88K      
888 Y8b 888 888  888 .d888888 888  888 888    888  888 888  888 888 "Y8888b. 
Y88b.Y8b88P Y88b 888 888  888 888  888 Y88b.  Y88..88P Y88..88P 888      X88 
 "Y888888"   "Y88888 "Y888888 888  888  "Y888  "Y88P"   "Y88P"  888  88888P' 
       Y8b                                                                      
```

个人的量化指标计算与回测的工具库
dydx-v4-python 0.0.4
dYdX Chain Client
License: MIT
Requires Python: >=3.9,<4.0
Keywords: dydx,dydx-v4,dydx-v4-python,dydx-python,dydx-v4-client,dydx-client,dydx-v4-python-client,dydx-python-client,dydx-v4-python-sdk,dydx-python-sdk,dydx-v4-python-api,dydx-python-api

<p align="center"><img src="https://dydx.exchange/icon.svg?" width="256" /></p>

<h1 align="center">dYdX Chain Client for Python</h1>

<div align="center">
  <a href='https://pypi.org/project/v4-client-py'>
    <img src='https://img.shields.io/pypi/v/v4-client-py.svg' alt='PyPI'/>
  </a>
  <a href='https://github.com/dydxprotocol/v4-clients/blob/main/v4-client-py/LICENSE'>
    <img src='https://img.shields.io/badge/License-AGPL_v3-blue.svg' alt='License' />
  </a>
</div>

Python client for dYdX (v4 API).

The library is currently tested against Python versions 3.9, and 3.11.

## Installation

The `v4-client-py` package is available on [PyPI](https://pypi.org/project/v4-client-py). Install with `pip`:

```bash
pip install v4-client-py
```

## Getting Started

Sample code is located in examples folder

## Development Setup - VS Code

Install Microsoft Python extensions
```
Shift-Command-P: Create Python Environment
Select Venv
Select Python 3.9 as interpreter
Select requirements.txt as the dependencies to install
```


Install requirements
```
pip install -r requirements.txt
```

VS Code will automatically switch to .venv environment when running example code. Or you can manually switch

```
source ~/<project_dir>/.venv/bin/activate
```

Set PYTHONPATH

```
export PYTHONPATH=~/<project_dir>/.venv/lib/<Python version>/site-packages
```

## Troubleshootimg

Cython and Brownie must be installed before cytoolz

If there is any issue with cytoolz, uninstall cytoolz, Brownie and Cython, reinstall Cython, Brownie and cytoolz sequentially.

VS Code may need to be restarted to have Cython functioning correctly


## Running examples

Select the file to be debugged
Select the debug button on the left
Select "Python: Current File" 

## Running tests

Integration tests uses testnet environment for testing. We use pytest.

To install pytest

```
pip install pytest
```

For read-only integration tests, run:

```
pytest -v
```

For integration tests with transactions, a subaccount must exist for the specified address.
This subaccount may be reset when testnet environment is reset. To create the subaccount, run

examples/faucet_endpoint.py

Wait for a few seconds for the faucet transaction to commit, then run

```
pytest -v -c pytest_integration.ini 
```