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
| Parameter | Description |
|---|---|
organization | Your organization's full name. |
name | Sets the backtest bundle's display name (ignored when bundle_id is set). |
tags | List of tags attached to the bundle. |
bundle_id | Appends the upload to an existing bundle instead of creating a new one. |
Next steps
- See Uploading Backtests (CLI) if you'd rather upload from your terminal or CI pipeline.
- See Bot SDK for building and testing trading bots.