Zum Inhalt
HALOWERK

Finopswerk

daily futures variation ledger

Original signed daily futures fills and settlement captures determine rounded one-contract money values, carried positions, daily variation, deposited-cash balances and hypothetical account-threshold topup requirements. Normal rounding is half away from zero at each price before multiplying by quantity. Input prices are thousandths of a quote currency unit; money outputs are hundredths; multiplier is integer. Own finite linear-contract profile, initially flat. Constant account thresholds.

POST https://finops.halowerk.com/v1/daily-futures-variation-ledger

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
multiplierintegerJa
opening_cashintegerJa
initial_targetintegerJa
maintenanceintegerJa
daysarrayJa
reportobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "multiplier": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "opening_cash": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    },
    "initial_target": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    },
    "maintenance": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    },
    "days": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "settlement_domain": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": -1000000,
              "maximum": 1000000
            },
            "minItems": 1,
            "maxItems": 2
          },
          "deposit": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "trades": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "quantity": {
                  "type": "integer",
                  "minimum": -10,
                  "maximum": 10
                },
                "price_milli": {
                  "type": "integer",
                  "minimum": -1000000,
                  "maximum": 1000000
                }
              },
              "required": [
                "quantity",
                "price_milli"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 4
          }
        },
        "required": [
          "settlement_domain",
          "deposit",
          "trades"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 4
    },
    "report": {
      "type": "object",
      "properties": {
        "contract_values": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -1000000000000,
                "maximum": 1000000000000
              },
              {
                "type": "null"
              }
            ]
          },
          "minItems": 1,
          "maxItems": 4
        },
        "positions": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -1000000000000,
                "maximum": 1000000000000
              },
              {
                "type": "null"
              }
            ]
          },
          "minItems": 1,
          "maxItems": 4
        },
        "variation": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -1000000000000,
                "maximum": 1000000000000
              },
              {
                "type": "null"
              }
            ]
          },
          "minItems": 1,
          "maxItems": 4
        },
        "balances": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -1000000000000,
                "maximum": 1000000000000
              },
              {
                "type": "null"
              }
            ]
          },
          "minItems": 1,
          "maxItems": 4
        },
        "required_topups": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -1000000000000,
                "maximum": 1000000000000
              },
              {
                "type": "null"
              }
            ]
          },
          "minItems": 1,
          "maxItems": 4
        },
        "trade_values": {
          "type": "array",
          "items": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": -1000000000000,
                  "maximum": 1000000000000
                },
                {
                  "type": "null"
                }
              ]
            },
            "minItems": 0,
            "maxItems": 4
          },
          "minItems": 1,
          "maxItems": 4
        },
        "total_variation": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -1000000000000,
              "maximum": 1000000000000
            },
            {
              "type": "null"
            }
          ]
        },
        "total_deposits": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -1000000000000,
              "maximum": 1000000000000
            },
            {
              "type": "null"
            }
          ]
        },
        "ending_balance": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -1000000000000,
              "maximum": 1000000000000
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "contract_values",
        "positions",
        "variation",
        "balances",
        "required_topups",
        "trade_values",
        "total_variation",
        "total_deposits",
        "ending_balance"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "multiplier",
    "opening_cash",
    "initial_target",
    "maintenance",
    "days",
    "report"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "multiplier": 10,
  "opening_cash": 1000,
  "initial_target": 1000,
  "maintenance": 500,
  "days": [
    {
      "settlement_domain": [
        1000
      ],
      "deposit": 0,
      "trades": [
        {
          "quantity": 2,
          "price_milli": 900
        }
      ]
    },
    {
      "settlement_domain": [
        1200
      ],
      "deposit": 0,
      "trades": [
        {
          "quantity": -1,
          "price_milli": 1100
        }
      ]
    }
  ],
  "report": {
    "contract_values": [
      1000,
      1200
    ],
    "positions": [
      2,
      1
    ],
    "variation": [
      200,
      300
    ],
    "balances": [
      1200,
      1500
    ],
    "required_topups": [
      0,
      0
    ],
    "trade_values": [
      [
        900
      ],
      [
        1100
      ]
    ],
    "total_variation": 500,
    "total_deposits": 0,
    "ending_balance": 1500
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-07, 02:42 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →