API reference
POSThttps://ftl.fasttrack.net/v1/portfolios/momentummodel
Momentum Model
Get stats and historical performance on momentum portfolios with ease. Define a family of securities, set an algorithm and trading frequency, and dynamically rebalance your portfolio by selecting top-performing securities from the family based on the algorithm.
Legacy API: This read-only reference is preserved for existing v1 integrations. New integrations should use the current API documentation.
Parameters
| Name | In | Requirement | Type | Description |
|---|---|---|---|---|
appid | header | Required | string | 36 character GUID received from the welcome email. The header name must be sent exactly as lowercase appid. Sign up for a trial at http://apitrial.fasttrack.net |
token | header | Required | string | 36 character GUID returned by the auth/login endpoint. The header name must be sent exactly as lowercase token. |
Request body
Content type: application/json
{
"seedvalue": 1000,
"rebalanceperiod": "month",
"model": {
"universe": [
"string"
],
"number_holdings": "4",
"basis": "SPY",
"ranking_system": "return",
"ranking_period": "quarter",
"model": "momentum",
"tradedelay": "1"
}
}
Request example
curl --request POST \
--url 'https://ftl.fasttrack.net/v1/portfolios/momentummodel' \
--header 'appid: YOUR_APP_ID' \
--header 'token: YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{"seedvalue":1000,"rebalanceperiod":"month","model":{"universe":["string"],"number_holdings":"4","basis":"SPY","ranking_system":"return","ranking_period":"quarter","model":"momentum","tradedelay":"1"}}'
Responses
| Status | Description |
|---|---|
200 | OK |