Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
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.
pip install sigtech
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 variableSIGTECH_API_KEY
.
# 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())
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 in Jupyter Notebook format (.ipynb
). All you need to follow along is a SigTech API key.
Logs down to the debug
log level are available for all API requests. They can be accessed using the Python logging
library.
import logging
logging.basicConfig(level=logging.DEBUG)
For more information, please refer to the logging
library's documentation.
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.
Please remember that all contributors are expected to behave appropriately and abide by our Code of conduct.
If you believe you have discovered a security vulnerability in our repository please report it to us immediately following the instructions here.
Attention!
Do not publicly disclose the vulnerability in a Github Issue or on a public forum such as X/Twitter.
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.
The SigTech Python SDK is released under the MIT License.
FAQs
SigTech Python SDK
We found that sigtech demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.