Skip to content

Compatibility of AI-generated strategies with legacy Zipline #2869

@arbuzovv

Description

@arbuzovv

I'm experiencing some compatibility issues and validaton errors when trying to run code generated by https://github.com/Limex-com/ziplime AI assistant inside the original Zipline environment.

The AI generates valid Python code that runs perfectly in Ziplime (which uses Python 3.12), but fails here. It seems the AI "knows" about updated APIs and potentially new live-trading hooks that don't exist in this repo.

Does anyone know a quick way to "downgrade" the syntax to make it compatible with this repo? Or has the divergence (Polars support, new assets db etc.) made them completely incompatible?

It's a bit confusing because the AI writes the code incorrectly for this repo, but correctly for the modern fork.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions