sigtech


Namesigtech JSON
Version 0.5.1 PyPI version JSON
download
home_pageNone
SummarySigTech Python SDK
upload_time2024-03-25 14:48:51
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://discord.gg/ZcFeutSrWM">
        <img src="https://img.shields.io/badge/CHAT-DISCORD-blue?style=for-the-badge&logo=discord&labelColor=rgb(55,55,55)&color=blueviolet">
    </a>
    <a href="https://learn.sigtech.com/reference/">
        <img src="https://img.shields.io/badge/Docs-API_REFERENCE-1338be?&style=for-the-badge&logo=wiki&link=https://learn.sigtech.com/reference" alt="Docs" />
    </a>
     <a href="https://twitter.com/sigtechltd/">
        <img src="https://img.shields.io/badge/follow-%40sigtechltd-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 collection of historical performance data facilitating accurate backtesting. Explore the [SigTech API data catalog](https://sigtechapi.streamlit.app/) to see the library of instruments available.

## Installation

```sh
pip install sigtech
```

### Requirements

- Python 3.6+

## Getting started with SigTech Python SDK

### Authentication

1. [Sign-up](https://dashboard.sigtech.com/register) for our API.
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://learn.sigtech.com/docs/auth).

### 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. Learn more about the API with the [reference guide](https://learn.sigtech.com/reference). 
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.

## 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). See [Logging in Python](https://realpython.com/python-logging/) for a useful summary of the `logging` library's capabilities.

## API Documentation

For detailed information about the SigTech API, please refer to our official [API user guide](https://learn.sigtech.com/docs) and our interactive [API reference guide](https://learn.sigtech.com/reference).

## Contributing to the SigTech Python SDK

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).

## Reporting 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!\
>Please follow the instructions detailed. **Do not** publicly disclose the vulnerability in a Github Issue or on a public forum such as Discord or Twitter.

## Support

If you encounter any issues or have any questions regarding our API or SDK, you can reach out to us via our [Discord](https://discord.gg/ZcFeutSrWM) or [Twitter](https://twitter.com/sigtechltd/).

## 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/92/2a/f15ec6eddb9adbe8319051d34d8257b229948a8b2740689cef61cfbba999/sigtech-0.5.1.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://discord.gg/ZcFeutSrWM\">\n        <img src=\"https://img.shields.io/badge/CHAT-DISCORD-blue?style=for-the-badge&logo=discord&labelColor=rgb(55,55,55)&color=blueviolet\">\n    </a>\n    <a href=\"https://learn.sigtech.com/reference/\">\n        <img src=\"https://img.shields.io/badge/Docs-API_REFERENCE-1338be?&style=for-the-badge&logo=wiki&link=https://learn.sigtech.com/reference\" alt=\"Docs\" />\n    </a>\n     <a href=\"https://twitter.com/sigtechltd/\">\n        <img src=\"https://img.shields.io/badge/follow-%40sigtechltd-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 collection of historical performance data facilitating accurate backtesting. Explore the [SigTech API data catalog](https://sigtechapi.streamlit.app/) to see the library 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 with SigTech Python SDK\n\n### Authentication\n\n1. [Sign-up](https://dashboard.sigtech.com/register) for our API.\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://learn.sigtech.com/docs/auth).\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. Learn more about the API with the [reference guide](https://learn.sigtech.com/reference). \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.\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). See [Logging in Python](https://realpython.com/python-logging/) for a useful summary of the `logging` library's capabilities.\n\n## API Documentation\n\nFor detailed information about the SigTech API, please refer to our official [API user guide](https://learn.sigtech.com/docs) and our interactive [API reference guide](https://learn.sigtech.com/reference).\n\n## Contributing to the SigTech Python SDK\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## Reporting 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>Please follow the instructions detailed. **Do not** publicly disclose the vulnerability in a Github Issue or on a public forum such as Discord or Twitter.\n\n## Support\n\nIf you encounter any issues or have any questions regarding our API or SDK, you can reach out to us via our [Discord](https://discord.gg/ZcFeutSrWM) or [Twitter](https://twitter.com/sigtechltd/).\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.5.1",
    "project_urls": {
        "Homepage": "https://github.com/SIGTechnologies/sigtech-python"
    },
    "split_keywords": [
        "sigtech",
        " finance",
        " trading",
        " backtest",
        " quant"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8a24fc6c6b87a4b8d2f3c88983cdb84a44b87e5d5786a7bde7608d81752fc6a2",
                "md5": "09dac65161b756c2636bb1832a391d99",
                "sha256": "dfb23f5162b3f06e7cdebe8d1f3612ce9debcbf9a2cb76acf981ff3acdd32e13"
            },
            "downloads": -1,
            "filename": "sigtech-0.5.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "09dac65161b756c2636bb1832a391d99",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 40279,
            "upload_time": "2024-03-25T14:48:49",
            "upload_time_iso_8601": "2024-03-25T14:48:49.027285Z",
            "url": "https://files.pythonhosted.org/packages/8a/24/fc6c6b87a4b8d2f3c88983cdb84a44b87e5d5786a7bde7608d81752fc6a2/sigtech-0.5.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "922af15ec6eddb9adbe8319051d34d8257b229948a8b2740689cef61cfbba999",
                "md5": "07d02cefba01a2e271921d2a065c5f51",
                "sha256": "93fb06a2882e8680a34f7e3711ee3387b6940650f3a34f1f72efa95128abeddc"
            },
            "downloads": -1,
            "filename": "sigtech-0.5.1.tar.gz",
            "has_sig": false,
            "md5_digest": "07d02cefba01a2e271921d2a065c5f51",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 29412,
            "upload_time": "2024-03-25T14:48:51",
            "upload_time_iso_8601": "2024-03-25T14:48:51.650286Z",
            "url": "https://files.pythonhosted.org/packages/92/2a/f15ec6eddb9adbe8319051d34d8257b229948a8b2740689cef61cfbba999/sigtech-0.5.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-25 14:48:51",
    "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.21049s