addedOutput schema / $defs / PlanOut
Added value: +{
+ "additionalProperties": true,
+ "properties": {
+ "created_at": {
+ "description": "When it was set, ISO 8601 UTC",
+ "title": "Created At",
+ "type": "string"
+ },
+ "created_by": {
+ "description": "Agent id that set the plan, or person",
+ "title": "Created By",
+ "type": "string"
+ },
+ "deprecation": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Present only while this tool is deprecated: replacement, removal_date, changelog",
+ "title": "Deprecation"
+ },
+ "plan_id": {
+ "description": "Plan id",
+ "title": "Plan Id",
+ "type": "string"
+ },
+ "rules": {
+ "description": "The rules, each fired at most once",
+ "items": {
+ "$ref": "#/$defs/PlanRuleOut"
+ },
+ "title": "Rules",
+ "type": "array"
+ },
+ "status": {
+ "description": "active, done, ended, replaced or cancelled",
+ "title": "Status",
+ "type": "string"
+ },
+ "symbol": {
+ "description": "Base coin",
+ "title": "Symbol",
+ "type": "string"
+ },
+ "thesis": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Why the position is held, as its author wrote it; present only for the agent that wrote it and the person",
+ "title": "Thesis"
+ },
+ "venue": {
+ "description": "Venue name",
+ "title": "Venue",
+ "type": "string"
+ }
+ },
+ "required": [
+ "plan_id",
+ "venue",
+ "symbol",
+ "rules",
+ "created_by",
+ "created_at",
+ "status"
+ ],
+ "title": "PlanOut",
+ "type": "object"
+}
addedOutput schema / $defs / PlanRuleOut
Added value: +{
+ "additionalProperties": true,
+ "properties": {
+ "action": {
+ "description": "notify or close",
+ "title": "Action",
+ "type": "string"
+ },
+ "close_pct": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "close: percent of the position it closes",
+ "title": "Close Pct"
+ },
+ "deprecation": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Present only while this tool is deprecated: replacement, removal_date, changelog",
+ "title": "Deprecation"
+ },
+ "fired_at": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "When it fired, ISO 8601 UTC; null while waiting",
+ "title": "Fired At"
+ },
+ "outcome": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "notified, closed, or the error code that stopped the close",
+ "title": "Outcome"
+ },
+ "value": {
+ "description": "price_*: USD per coin; held_hours: hours since the plan was set; funding_above: yearly rate this position pays, as a fraction (0.5 = 50%)",
+ "title": "Value",
+ "type": "number"
+ },
+ "when": {
+ "description": "price_above, price_below, held_hours or funding_above",
+ "title": "When",
+ "type": "string"
+ }
+ },
+ "required": [
+ "when",
+ "value",
+ "action"
+ ],
+ "title": "PlanRuleOut",
+ "type": "object"
+}
addedOutput schema / $defs / PositionOut / properties / plan
Added value: +{
+ "anyOf": [
+ {
+ "$ref": "#/$defs/PlanOut"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The trade plan on this position (set_position_plan_close_or_notify_later), if any"
+}