finterion-logo

Search algorithms

/

Uploading Backtests (SDK)

Push backtest bundles from Python using the Finterion SDK


Uploading Backtests (SDK)

Upload backtest bundles directly from your own Python scripts using the Finterion SDK.

Make sure you've completed SDK Installation first.

Upload a single backtest file

from finterion import upload_backtests

upload_backtests(
    "./my-backtest.obtf",
    organization="My Organization",
    name="Momentum strategies Q1",
    tags=["momentum", "v2"],
)

Upload a directory of backtests

upload_backtests accepts a directory path just as well as a single file — every .obtf file inside is uploaded and grouped under one bundle.

from finterion import upload_backtests

upload_backtests(
    "./backtests/",
    organization="My Organization",
    name="Momentum strategies Q1",
    tags=["momentum", "v2"],
)

Append to an existing bundle

Pass the bundle's id (shown in its URL or Settings tab) as bundle_id instead of name to add runs to a bundle that already exists.

from finterion import upload_backtests

upload_backtests(
    "./more-backtests/",
    organization="My Organization",
    bundle_id="<bundle-id>",
)

Parameters

ParameterDescription
organizationYour organization's full name.
nameSets the backtest bundle's display name (ignored when bundle_id is set).
tagsList of tags attached to the bundle.
bundle_idAppends the upload to an existing bundle instead of creating a new one.

Next steps