Instrument price store
Project description
Tradingo
declarative signal and portfolio construction framework evaluated on a dag.
Create a yaml file 'config.yaml' like so
signals:
signals.intraday_momentum.im-multi-asset-3:
depends_on: ["sample.im-multi-asset-3"]
function: "tradingo.signals.intraday_momentum"
symbols_out:
- "signals/intraday_momentum.im-multi-asset-3"
- "signals/intraday_momentum.z_score.im-multi-asset-3"
- "signals/intraday_momentum.short_vol.im-multi-asset-3"
- "signals/intraday_momentum.long_vol.im-multi-asset-3"
- "signals/intraday_momentum.previous_close_px.im-multi-asset-3"
symbols_in:
bid_close: "prices/im-multi-asset-3.bid.close"
ask_close: "prices/im-multi-asset-3.ask.close"
params:
calendar: "NYSE"
frequency: "15min"
long_vol: 64
short_vol: 6
threshold: 1
cap: 2
close_offset_periods: 1
monotonic: true
vol_floor_window: 120
only_with_close: false
close_overrides:
CC.D.CC.UMP.IP:
hours: 18
minutes: 0
timezone: "Europe/London"
CC.D.S.UMP.IP:
hours: 19
minutes: 0
timezone: "Europe/London"
prices:
include: "file://{{ TP_TEMPLATES }}/instruments.yaml"
variables:
include: "file://{{ TP_CONFIG_HOME }}/universes/im-multi-asset-3.yaml"
start_date: "{{ data_interval_start }}"
end_date: "{{ data_interval_end }}"
portfolio:
include: "file://{{ TP_TEMPLATES }}/portfolio_construction.yaml"
variables:
backtest:
price_ffill_limit: 5
universe_name: im-multi-asset-3
name: intraday
model_weights:
"intraday_momentum.im-multi-asset-3": 1.0
portfolio:
aum: 10000
multiplier: 5
trading:
include: "file://{{ TP_TEMPLATES }}/downstream_tasks.yaml"
variables:
portfolio_name: intraday
universe_name: im-multi-asset-3
and $TP_CONFIG_HOME/universes/im-multi-asset-3.yaml
universe_name: im-multi-asset-3
raw_prices_lib: prices_igtrading
epics:
- "CC.D.NG.UMP.IP"
- "IX.D.SPTRD.IFS.IP"
- "CC.D.LCO.UMP.IP"
- "IR.D.10YEAR100.FWM2.IP"
- "CC.D.CC.UMP.IP"
- "CC.D.S.UMP.IP"
- "IX.D.NASDAQ.IFS.IP"
- "CS.D.CFPGOLD.CFP.IP"
interval: 15min
start_date: "2017-01-01 00:00:00+00:00"
end_date: "{{ data_interval_end }}"
Set the following:
- TP_CONFIG_HOME
- TP_ARCTIC_URI
- IG_SERVICE_API_KEY
- IG_SERVICE_ACC_TYPE
- IG_SERVICE_USERNAME
- IG_SERVICE_PASSWORD
And run
tradingo-cli --config ./config.yaml task run backtest --end-date "2025-04-04 00:00:00+00:00"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tradingo-0.0.37.tar.gz
(355.8 kB
view details)
File details
Details for the file tradingo-0.0.37.tar.gz.
File metadata
- Download URL: tradingo-0.0.37.tar.gz
- Upload date:
- Size: 355.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b0fc5c3d2628885578b277ad43797031856b42e006a9c660bbeda3fa90537cb
|
|
| MD5 |
5a9bfe3cc128b5676fc6397536d03043
|
|
| BLAKE2b-256 |
5a1c8a6cd7344d3dfd2ab98e41502730271827667111771b24f3bb3966e11710
|
Provenance
The following attestation bundles were made for tradingo-0.0.37.tar.gz:
Publisher:
test-build-deploy.yml on rorymcstay/etf-alloc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tradingo-0.0.37.tar.gz -
Subject digest:
3b0fc5c3d2628885578b277ad43797031856b42e006a9c660bbeda3fa90537cb - Sigstore transparency entry: 202876451
- Sigstore integration time:
-
Permalink:
rorymcstay/etf-alloc@be791589d7b0bf7dd7228fc136e14bd420c4b323 -
Branch / Tag:
refs/tags/0.0.37 - Owner: https://github.com/rorymcstay
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test-build-deploy.yml@be791589d7b0bf7dd7228fc136e14bd420c4b323 -
Trigger Event:
push
-
Statement type: