sigtech


Namesigtech JSON
Version 0.8.0 PyPI version JSON
download
home_pageNone
SummarySigTech Python SDK
upload_time2024-10-14 14:38:04
maintainerNone
docs_urlNone
authorNone
requires_python>=3.6
licenseMIT
keywords sigtech finance trading backtest quant
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![SigTech SDK Banner](https://sigtech.com/wp-content/uploads/2023/08/Python-SDK_github_856x268-1.png "SigTech SDK Banner")

 

<p align="center" id="dummy">
    <a href="https://api.sigtech.com/docs">
        <img src="https://img.shields.io/badge/Docs-API_REFERENCE-1338be?&style=for-the-badge&logo=wiki&link=https://api.sigtech.com/docs" alt="Docs" />
    </a>
     <a href="https://twitter.com/sigtech_ai/">
        <img src="https://img.shields.io/badge/follow-%40sigtech_ai-1DA1F2?logo=twitter&style=for-the-badge" />
    </a>
</p>

<div align="center">

[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
![Stargazers][stars-shield]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]

</div>

[contributors-shield]: https://img.shields.io/github/contributors/SIGTechnologies/sigtech-python.svg?style=for-the-badge
[contributors-url]: https://github.com/SIGTechnologies/sigtech-python/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/SIGTechnologies/sigtech-python.svg?style=for-the-badge
[forks-url]: https://github.com/SIGTechnologies/sigtech-python/network/members
[stars-shield]: https://img.shields.io/github/stars/SIGTechnologies/sigtech-python.svg?style=for-the-badge
[issues-shield]: https://img.shields.io/github/issues/SIGTechnologies/sigtech-python.svg?style=for-the-badge
[issues-url]: https://github.com/SIGTechnologies/sigtech-python/issues
[license-shield]: https://img.shields.io/github/license/SIGTechnologies/sigtech-python.svg?style=for-the-badge
[license-url]: https://github.com/SIGTechnologies/sigtech-python/blob/master/LICENSE

# SigTech Python SDK

The SigTech Python SDK is designed to simplify the usage of the SigTech API for backtesting investment strategies by providing a higher-level, object-oriented method of interfacing with our API. With this SDK, you can easily test and view the performance of historical strategies.

#### Key Features

- Provides a higher-level object-based interface for convenient interaction with the SigTech API.
- Simplifies the creation of advanced trading strategies by providing methods which simulate rolling future strategies, basket strategies, and more.
- Interfaces with SigTech's historical market data facilitating accurate backtesting. Explore the [SigTech API data catalog](https://github.com/SIGTechnologies/sigtech-python/blob/master/docs/data.md) to see the list of instruments available.

## Installation

```sh
pip install sigtech
```

### Requirements

- Python 3.6+

## Getting started

### Authentication

1. Generate an API key using our [dashboard](https://dashboard.sigtech.com/api-keys).
1. Secure your API key and save it as a global environment variable by following our instructions [here](https://github.com/SIGTechnologies/sigtech-python/blob/master/docs/auth.md).

### Creating your first strategy

Our SDK provides convenient wrappers for boilerplate functions that are required to interact with our API. Copy the following code into your IDE and run it to quickly create, backtest, and view the performance of a custom rolling futures strategy.

>**Note!**\
>The example below will only work if you have saved your API key as the global environment variable `SIGTECH_API_KEY`.

```python
# Import the SigTech API
import sigtech.api as sig

# Initialize your session
sig.init()

# Create a Rolling Future Strategy
es_future = sig.RollingFutureStrategy(
    currency="USD",
    start_date="2020-01-04",
    contract_code="ES",
    contract_sector="INDEX",
    rolling_rule="front",
    front_offset="-6,-5",
)

# Retrieve the strategy history
print(es_future.history())
```

## Next steps

1. Follow some of our [examples](https://github.com/SIGTechnologies/sigtech-python/tree/master/examples) to see how you can replicate and backtest more complex, real-world trading strategies.
1. Explore the full range of available instruments in the [API data catalog](https://github.com/SIGTechnologies/sigtech-python/blob/master/docs/data.md).
1. Explore the full range of endpoints in the [API reference](https://api.sigtech.com/docs). 




## Google Colab

We understand that getting started with backtesting and evaluating trading strategies can be a daunting task, especially for users new to financial data analysis and Python development. To make the process as seamless as possible, we've prepared a collection of real-world [examples](https://github.com/SIGTechnologies/sigtech-python/tree/master/examples) in Jupyter Notebook format (`.ipynb`). All you need to follow along is a SigTech API key.

## Logging

Logs down to the `debug` log level are available for all API requests. They can be accessed using the Python `logging` library.

```python
import logging
logging.basicConfig(level=logging.DEBUG)
```

For more information, please refer to the `logging` library's [documentation](https://docs.python.org/3/library/logging.html).


## Contributing

We appreciate and encourage your contributions to the SigTech Python SDK! If you are enjoying the SDK, please show your support by starring this repository and sharing it on social media channels.

To contribute an example, provide feedback, report a bug or otherwise bring an issue to our attention regarding this project, please follow the steps outlined in the [Contribution guidelines](https://github.com/SIGTechnologies/sigtech-python/blob/master/CONTRIBUTING.md).

Please remember that all contributors are expected to behave appropriately and abide by our [Code of conduct](https://github.com/SIGTechnologies/sigtech-python/blob/master/CODE_OF_CONDUCT.md).

## Security issues

If you believe you have discovered a security vulnerability in our repository please report it to us immediately following the instructions [here](https://github.com/SIGTechnologies/sigtech-python/blob/master/SECURITY.md).

>**Attention!**\
>Do not publicly disclose the vulnerability in a Github Issue or on a public forum such as X/Twitter.

## Support

If you encounter any issues or have any questions regarding our API or SDK, 
you can reach out to us via email at [support@sigtech.com](mailto:support@sigtech.com).

## License

The SigTech Python SDK is released under the [MIT License](https://github.com/SIGTechnologies/sigtech-python/blob/master/LICENSE).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "sigtech",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "SIGTECH, FINANCE, TRADING, BACKTEST, QUANT",
    "author": null,
    "author_email": "SigTech <support@sigtech.com>",
    "download_url": "https://files.pythonhosted.org/packages/2b/30/83bfd97d65089410d82d9f832cab2502fb135526a77c10e13ef9005e4a2d/sigtech-0.8.0.tar.gz",
    "platform": null,
    "description": "![SigTech SDK Banner](https://sigtech.com/wp-content/uploads/2023/08/Python-SDK_github_856x268-1.png \"SigTech SDK Banner\")\n\n&nbsp;\n\n<p align=\"center\" id=\"dummy\">\n    <a href=\"https://api.sigtech.com/docs\">\n        <img src=\"https://img.shields.io/badge/Docs-API_REFERENCE-1338be?&style=for-the-badge&logo=wiki&link=https://api.sigtech.com/docs\" alt=\"Docs\" />\n    </a>\n     <a href=\"https://twitter.com/sigtech_ai/\">\n        <img src=\"https://img.shields.io/badge/follow-%40sigtech_ai-1DA1F2?logo=twitter&style=for-the-badge\" />\n    </a>\n</p>\n\n<div align=\"center\">\n\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n![Stargazers][stars-shield]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\n</div>\n\n[contributors-shield]: https://img.shields.io/github/contributors/SIGTechnologies/sigtech-python.svg?style=for-the-badge\n[contributors-url]: https://github.com/SIGTechnologies/sigtech-python/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/SIGTechnologies/sigtech-python.svg?style=for-the-badge\n[forks-url]: https://github.com/SIGTechnologies/sigtech-python/network/members\n[stars-shield]: https://img.shields.io/github/stars/SIGTechnologies/sigtech-python.svg?style=for-the-badge\n[issues-shield]: https://img.shields.io/github/issues/SIGTechnologies/sigtech-python.svg?style=for-the-badge\n[issues-url]: https://github.com/SIGTechnologies/sigtech-python/issues\n[license-shield]: https://img.shields.io/github/license/SIGTechnologies/sigtech-python.svg?style=for-the-badge\n[license-url]: https://github.com/SIGTechnologies/sigtech-python/blob/master/LICENSE\n\n# SigTech Python SDK\n\nThe SigTech Python SDK is designed to simplify the usage of the SigTech API for backtesting investment strategies by providing a higher-level, object-oriented method of interfacing with our API. With this SDK, you can easily test and view the performance of historical strategies.\n\n#### Key Features\n\n- Provides a higher-level object-based interface for convenient interaction with the SigTech API.\n- Simplifies the creation of advanced trading strategies by providing methods which simulate rolling future strategies, basket strategies, and more.\n- Interfaces with SigTech's historical market data facilitating accurate backtesting. Explore the [SigTech API data catalog](https://github.com/SIGTechnologies/sigtech-python/blob/master/docs/data.md) to see the list of instruments available.\n\n## Installation\n\n```sh\npip install sigtech\n```\n\n### Requirements\n\n- Python 3.6+\n\n## Getting started\n\n### Authentication\n\n1. Generate an API key using our [dashboard](https://dashboard.sigtech.com/api-keys).\n1. Secure your API key and save it as a global environment variable by following our instructions [here](https://github.com/SIGTechnologies/sigtech-python/blob/master/docs/auth.md).\n\n### Creating your first strategy\n\nOur SDK provides convenient wrappers for boilerplate functions that are required to interact with our API. Copy the following code into your IDE and run it to quickly create, backtest, and view the performance of a custom rolling futures strategy.\n\n>**Note!**\\\n>The example below will only work if you have saved your API key as the global environment variable `SIGTECH_API_KEY`.\n\n```python\n# Import the SigTech API\nimport sigtech.api as sig\n\n# Initialize your session\nsig.init()\n\n# Create a Rolling Future Strategy\nes_future = sig.RollingFutureStrategy(\n    currency=\"USD\",\n    start_date=\"2020-01-04\",\n    contract_code=\"ES\",\n    contract_sector=\"INDEX\",\n    rolling_rule=\"front\",\n    front_offset=\"-6,-5\",\n)\n\n# Retrieve the strategy history\nprint(es_future.history())\n```\n\n## Next steps\n\n1. Follow some of our [examples](https://github.com/SIGTechnologies/sigtech-python/tree/master/examples) to see how you can replicate and backtest more complex, real-world trading strategies.\n1. Explore the full range of available instruments in the [API data catalog](https://github.com/SIGTechnologies/sigtech-python/blob/master/docs/data.md).\n1. Explore the full range of endpoints in the [API reference](https://api.sigtech.com/docs). \n\n\n\n\n## Google Colab\n\nWe understand that getting started with backtesting and evaluating trading strategies can be a daunting task, especially for users new to financial data analysis and Python development. To make the process as seamless as possible, we've prepared a collection of real-world [examples](https://github.com/SIGTechnologies/sigtech-python/tree/master/examples) in Jupyter Notebook format (`.ipynb`). All you need to follow along is a SigTech API key.\n\n## Logging\n\nLogs down to the `debug` log level are available for all API requests. They can be accessed using the Python `logging` library.\n\n```python\nimport logging\nlogging.basicConfig(level=logging.DEBUG)\n```\n\nFor more information, please refer to the `logging` library's [documentation](https://docs.python.org/3/library/logging.html).\n\n\n## Contributing\n\nWe appreciate and encourage your contributions to the SigTech Python SDK! If you are enjoying the SDK, please show your support by starring this repository and sharing it on social media channels.\n\nTo contribute an example, provide feedback, report a bug or otherwise bring an issue to our attention regarding this project, please follow the steps outlined in the [Contribution guidelines](https://github.com/SIGTechnologies/sigtech-python/blob/master/CONTRIBUTING.md).\n\nPlease remember that all contributors are expected to behave appropriately and abide by our [Code of conduct](https://github.com/SIGTechnologies/sigtech-python/blob/master/CODE_OF_CONDUCT.md).\n\n## Security issues\n\nIf you believe you have discovered a security vulnerability in our repository please report it to us immediately following the instructions [here](https://github.com/SIGTechnologies/sigtech-python/blob/master/SECURITY.md).\n\n>**Attention!**\\\n>Do not publicly disclose the vulnerability in a Github Issue or on a public forum such as X/Twitter.\n\n## Support\n\nIf you encounter any issues or have any questions regarding our API or SDK, \nyou can reach out to us via email at [support@sigtech.com](mailto:support@sigtech.com).\n\n## License\n\nThe SigTech Python SDK is released under the [MIT License](https://github.com/SIGTechnologies/sigtech-python/blob/master/LICENSE).\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "SigTech Python SDK",
    "version": "0.8.0",
    "project_urls": {
        "Homepage": "https://github.com/SIGTechnologies/sigtech-python"
    },
    "split_keywords": [
        "sigtech",
        " finance",
        " trading",
        " backtest",
        " quant"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a193209b1a39cc7f205ca61280d845fbb42d2151d31d4a137beaedf87eccecf1",
                "md5": "ca619640312000432e62879d47d7793b",
                "sha256": "7afec324cf8ea102a96f10f869a441ba6cb98d2638545b6f7bd0534cbb6e3770"
            },
            "downloads": -1,
            "filename": "sigtech-0.8.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ca619640312000432e62879d47d7793b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 47331,
            "upload_time": "2024-10-14T14:38:02",
            "upload_time_iso_8601": "2024-10-14T14:38:02.945638Z",
            "url": "https://files.pythonhosted.org/packages/a1/93/209b1a39cc7f205ca61280d845fbb42d2151d31d4a137beaedf87eccecf1/sigtech-0.8.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2b3083bfd97d65089410d82d9f832cab2502fb135526a77c10e13ef9005e4a2d",
                "md5": "0847bdce39c5af7105487ee4764fb1d5",
                "sha256": "9377f65c651c151508745e78c6796dfaea7bad7700e0db5f5baf49f4551513cd"
            },
            "downloads": -1,
            "filename": "sigtech-0.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0847bdce39c5af7105487ee4764fb1d5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 32798,
            "upload_time": "2024-10-14T14:38:04",
            "upload_time_iso_8601": "2024-10-14T14:38:04.020433Z",
            "url": "https://files.pythonhosted.org/packages/2b/30/83bfd97d65089410d82d9f832cab2502fb135526a77c10e13ef9005e4a2d/sigtech-0.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-14 14:38:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "SIGTechnologies",
    "github_project": "sigtech-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "sigtech"
}
        
Elapsed time: 0.35175s