Ziplime extends the capabilities of the Zipline backtester by adding new functionality, including data ingestion for bundles and live trading directly from your local machine. This library provides advanced features for experienced users who wish to build and manage their own trading infrastructure.
Ziplime allows users to ingest data into bundles using an API key from Limex DataHub. This enables access to a wide range of financial datasets for backtesting. To obtain the necessary API key, visit Limex DataHub
After acquiring your key, set it as an environment variable:
Copy
export LIMEX_API_KEY=your_token
You can then use commands to ingest data, such as:
Copy
poetry run python -m ziplime ingest -b limex_us_all_in --period day --start-date 2005-01-01 --end-date 2025-01-01 --symbols AAPL,NVDA --fundamental-data roe,pe_ratio
The Ziplime library for live trading can be found on PyPI here, providing a robust and flexible toolset for building sophisticated trading systems.
For live trading, you do not need an API key from Limex DataHub as it does not rely on data bundles. However, you must have a Lime account and configure your credentials.json file with the necessary account information
Save this file as an environment variable (for Windows use SET command):