304NotModified · Schema

PositionIn

Artificial IntelligenceKnowledge BaseFrenchFact Checking

Properties

Name Type Description
equity number Capital total du compte.
cash object Liquidités disponibles (par défaut : le capital).
direction string
entry_price number
stop_distance object Distance du stop en prix ; sinon calculée par l'ATR des bougies.
candles object
atr_period integer
atr_multiplier number
risk_pct number Part du capital risquée si le stop est touché.
take_profit_r number
max_notional_pct number
commission_bps number
spread_bps number
slippage_bps number
View JSON Schema on GitHub

JSON Schema

304notfound-com-position-in-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/304notfound-com/json-schema/304notfound-com-position-in-schema.json",
  "title": "PositionIn",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/304notfound-com-openapi.json#/components/schemas/PositionIn",
  "properties": {
    "equity": {
      "type": "number",
      "exclusiveMinimum": 0.0,
      "title": "Equity",
      "description": "Capital total du compte."
    },
    "cash": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Cash",
      "description": "Liquidités disponibles (par défaut : le capital)."
    },
    "direction": {
      "type": "string",
      "enum": [
        "LONG",
        "SHORT"
      ],
      "title": "Direction"
    },
    "entry_price": {
      "type": "number",
      "exclusiveMinimum": 0.0,
      "title": "Entry Price"
    },
    "stop_distance": {
      "anyOf": [
        {
          "type": "number",
          "exclusiveMinimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Stop Distance",
      "description": "Distance du stop en prix ; sinon calculée par l'ATR des bougies."
    },
    "candles": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/CandleIn"
          },
          "type": "array",
          "maxItems": 5000,
          "minItems": 2
        },
        {
          "type": "null"
        }
      ],
      "title": "Candles"
    },
    "atr_period": {
      "type": "integer",
      "maximum": 200.0,
      "minimum": 2.0,
      "title": "Atr Period",
      "default": 14
    },
    "atr_multiplier": {
      "type": "number",
      "maximum": 20.0,
      "exclusiveMinimum": 0.0,
      "title": "Atr Multiplier",
      "default": 1.5
    },
    "risk_pct": {
      "type": "number",
      "maximum": 0.2,
      "exclusiveMinimum": 0.0,
      "title": "Risk Pct",
      "description": "Part du capital risquée si le stop est touché.",
      "default": 0.01
    },
    "take_profit_r": {
      "type": "number",
      "maximum": 50.0,
      "exclusiveMinimum": 0.0,
      "title": "Take Profit R",
      "default": 2.0
    },
    "max_notional_pct": {
      "type": "number",
      "maximum": 10.0,
      "exclusiveMinimum": 0.0,
      "title": "Max Notional Pct",
      "default": 0.25
    },
    "commission_bps": {
      "type": "number",
      "maximum": 1000.0,
      "minimum": 0.0,
      "title": "Commission Bps",
      "default": 5.0
    },
    "spread_bps": {
      "type": "number",
      "maximum": 1000.0,
      "minimum": 0.0,
      "title": "Spread Bps",
      "default": 2.0
    },
    "slippage_bps": {
      "type": "number",
      "maximum": 1000.0,
      "minimum": 0.0,
      "title": "Slippage Bps",
      "default": 3.0
    }
  },
  "type": "object",
  "required": [
    "equity",
    "direction",
    "entry_price"
  ],
  "$defs": {
    "CandleIn": {
      "properties": {
        "time": {
          "type": "integer",
          "title": "Time",
          "description": "Horodatage Unix (secondes) de l'ouverture de la bougie."
        },
        "open": {
          "type": "number",
          "exclusiveMinimum": 0.0,
          "title": "Open"
        },
        "high": {
          "type": "number",
          "exclusiveMinimum": 0.0,
          "title": "High"
        },
        "low": {
          "type": "number",
          "exclusiveMinimum": 0.0,
          "title": "Low"
        },
        "close": {
          "type": "number",
          "exclusiveMinimum": 0.0,
          "title": "Close"
        },
        "volume": {
          "type": "number",
          "minimum": 0.0,
          "title": "Volume",
          "default": 0.0
        }
      },
      "type": "object",
      "required": [
        "time",
        "open",
        "high",
        "low",
        "close"
      ],
      "title": "CandleIn"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/304notfound-com-position-in"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.