Raw schema
{
"type": "object",
"properties": {
"positions": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"items": {},
"type": "array"
}
],
"description": "The user's positions: {\"NVDA\": \"long\", \"TSLA\": \"short\"} or [{\"symbol\": \"NVDA\", \"side\": \"long\"}]. Up to 25. Sizes are not needed.",
"title": "Positions"
},
"bars_by_timeframe": {
"additionalProperties": {
"additionalProperties": {
"items": {},
"type": "array"
},
"type": "object"
},
"description": "Bars per timeframe, then per symbol: {\"M\": {\"NVDA\": [...], \"VIXY\": [...], \"SPY\": [...]}, \"W\": {...}, \"D\": {...}, \"60\": {...}}. Each position on the user's timeframes (investor Y; position trader Q M; swing or day trader W D 60). VIX or a VIX ETN (VIXY, VXX, UVXY) and SPY QQQ IWM DIA on M W D 60 for the market condition. The last bar of each timeframe must be the current bar (its open is the open). 60 symbols and 500 bars per symbol per timeframe; 10 to 50 bars are enough.",
"title": "Bars By Timeframe",
"type": "object"
},
"etf_baskets": {
"anyOf": [
{
"additionalProperties": {
"additionalProperties": {
"items": {},
"type": "array"
},
"type": "object"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional, up to 3: the holdings of an ETF the user owns, {\"WGMI\": {\"IREN\": [...], ...}}, on etf_timeframe. For the concentration check.",
"title": "Etf Baskets"
},
"etf_timeframe": {
"default": "D",
"description": "Timeframe of the etf_baskets bars: D (default) or W.",
"title": "Etf Timeframe",
"type": "string"
},
"vix_curve": {
"anyOf": [
{
"additionalProperties": {
"type": "number"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional VIX futures prices {\"front\": 18.2, \"second\": 19.0}. Front over second = backwardation. Leave out if you have no curve data (the reply then says: no data).",
"title": "Vix Curve"
},
"position_timeframes": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "The user's timeframes for the positions: [\"Y\"] investor, [\"Q\", \"M\"] position trader, [\"W\", \"D\", \"60\"] swing or day trader. Positions are checked only on these. Ask the user.",
"title": "Position Timeframes"
},
"now": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Current time, ISO 8601. Decides if the last bar is still open. Default: the server clock.",
"title": "Now"
},
"as_of": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional ISO time. Use only bars that start at or before this time (replay a past bar).",
"title": "As Of"
}
},
"required": [
"positions",
"bars_by_timeframe"
],
"title": "portfolio_checkArguments"
}