Strategies
A strategy is a firm’s target mix: lines of investments and cash, each with a target weight. Portfolios follow a strategy; IDEALX measures how far each one has drifted and works out the trades that bring it back.
A strategy
Section titled “A strategy”| Field | Meaning |
|---|---|
id, name, objective |
Identity and what it is for |
riskLevel |
1 (lowest) to 7 (highest) |
currency |
The currency it is measured in |
benchmark |
The listing it is compared with, chosen by the firm (none by default) |
minInvestment |
Optional minimum, { amount, currency } |
rebalance |
{ "kind": "drift" }, or { "kind": "calendar", "every": "monthly" | "quarterly" | "half_yearly" | "yearly" } |
status |
draft, active or retired |
currentVersion |
The version portfolios move to by default |
items |
The lines of the current version |
Each line is { "kind": "instrument" | "cash", "refId", "weightBp", "bandBp"? }. Weights are basis points:
2500 is 25%; a version’s weights add up to 10,000. bandBp is how far the line may drift before it counts as
outside its band.
Versions
Section titled “Versions”Changing a strategy’s lines or its saved checks makes a new version; earlier versions are kept, and each follower
records the version it follows. GET …/strategies/{strategyId}/versions/diff?from=1&to=2 compares two versions.
A version can carry saved checks (constraints): the most in one line, the most or least in a kind or a region,
the most in a sector, the highest fee, the lowest yield, the most that is hard to sell.
Followers and drift
Section titled “Followers and drift”GET /v1/firms/{firmId}/strategies/{strategyId} returns the strategy with its versions and its followers: each
portfolio’s assignmentId, accountId, portfolioId, account name, version, total, driftBp and outside.
On the account side, GET /v1/accounts/{id}/strategies returns, for each portfolio following a strategy, every line
(targetBp, currentBp, driftBp, bandBp, outside, value, the change needed and its direction) and the
trades that would rebalance it, trimmed so no saved check is pushed past (capped says which).
Strategies are built, versioned and assigned to portfolios in Console’s strategy cockpit. The Console API reads them and lets you turn drift into a proposal: see Rebalance from drift.
Endpoints
Section titled “Endpoints”- GET
/v1/firms/{firmId}/strategiesYour firm's strategies - GET
/v1/firms/{firmId}/strategies/{strategyId}A strategy with its versions and the portfolios following it - GET
/v1/firms/{firmId}/strategies/{strategyId}/analysisBack-test, mix, liquidity and fee effect of a strategy version (D126) - GET
/v1/firms/{firmId}/strategies/{strategyId}/versions/diffTwo versions compared: weights that changed and the figures before and after - GET
/v1/firms/{firmId}/strategies/universeListed investments to build a strategy from, with fee, yield, region and liquidity - GET
/v1/firms/{firmId}/strategies/benchmarksListings a strategy can be compared with: the firm's country's indices, then world ones - GET
/v1/accounts/{id}/strategiesThe strategies this account's portfolios follow, and how close they are