Skip to documentation
Screebits Docs
Flow Editor
Open Screebits
  • Screebits
  • Flow Editor documentation
  • Blueprints
  • Your first steps in Screebits
  • Workspace, strategies and account
  • Get started with the Flow Editor
  • Build an RSI Momentum Alert
  • Flow Editor concepts
  • How a strategy starts and continues
  • Control and data connections
  • Nodes, parameters, outcomes, and ports
  • Plans and feature availability
  • Saves, versions, and checkpoints
  • Tactical and Portfolio strategies
  • Validation and readiness
  • Flow Editor mode guides
  • Build Portfolio strategies
  • Build Tactical strategies
  • Flow Editor guides
  • Add a Quant Hub metric
  • Configure a node
  • Configure Settings and visual preferences
  • Connect nodes
  • Create a strategy
  • Create checkpoints and restore versions
  • Reset a Flow safely
  • Debug and replay a Backtest
  • Fix validation issues
  • Use keyboard shortcuts
  • Manage variables
  • Run a Backtest
  • Save and resolve conflicts
  • Work on tablet and mobile
  • Use Quick add
  • Use the Inspector
  • Add, move, duplicate, and remove nodes
  • Flow Editor examples
  • Portfolio rebalance with risk limits
  • Tactical order and position monitoring
  • Use Backtest Center
  • Read a Backtest result
  • Compare and export Backtests
  • Explore Quant Hub
  • Metric parameters, charts and overlays
  • Flow Editor node reference
  • Margin State Field
  • Flow Editor troubleshooting
  • Troubleshoot activation and validation
  • Troubleshoot Backtests and replay
  • Troubleshoot compact layouts
  • Troubleshoot connections and data types
  • Troubleshoot plans and locked features
  • Troubleshoot Quant Hub in the Flow Editor
  • Troubleshoot save, offline, and conflicts
  • Backtests and responsible use
  • Flow Editor glossary
  1. Screebits
  2. /Flow Editor documentation
  3. /Flow Editor node reference
  4. /Margin State Field
IntermediateLast verified Sep 30, 2026

Margin State Field

Extracts one field from a margin state value.

On this page
  1. When to use
  2. Example
  3. Compare fields with their units
  4. Common problems
  5. Next steps

Extracts one field from a margin state value.

When to use

Use it when a comparison or message needs a scalar margin measure from Leverage Monitor.

Example

Extract a margin ratio and compare it with an additional threshold.

Try it here

Explore Margin State Field

Extracts one field from a margin state value.

Exercise steps
  1. Choose a different field in Inspector.
  2. Observe how the active output and its type change; the connected input keeps its structured value.
Event TriggerLeverage MonitorMargin State Field
Graph preview — a diagram of the example

Compare fields with their units

Connect a Margin State payload from the supporting Tactical margin-monitoring path and select one field. Margin Used and Margin Available are amounts; Current Leverage is a ratio; Liquidation Price is a price level; Timestamp is a time. For an illustrative state with 300 used and 500 available, do not compare the number 300 with a leverage threshold of 2 as though they shared a unit. Choose the field that matches the downstream Condition and confirm that the state belongs to the same run and instrument context.

Common problems

Choose a field that is present in the connected state. Keep control handling for warning and liquidation-risk outcomes separate.

Next steps

Review the generated Parameters, Outcomes, and Data Ports on this page, then open the related guides for the complete workflow.

Node facts

These facts come from the current Flow Editor node catalog.

Node type
Margin State Field
Activation role
No activation role
Category
Field
Availability
Tactical only
Modes
Tactical
Required plan
None
Behavior
Transforms a value
Control inputs
0
Output data types
Number, leverage Ratio, price, datetime

Parameters

NameInput typeRequirementDefaultOptions and constraints
Margin state fieldSelection listRequiredmarginRatioOptions: Margin ratio, Current leverage, Margin used, Margin available, Liquidation price, Distance to liquidation, Timestamp

Primary parameters

  • Margin state field

Outcomes

None

Data inputs

  • Margin Statemargin State · Required

Data outputs

  • Margin RatioNumberShown when Margin state field is marginRatio
  • Current Leverageleverage RatioShown when Margin state field is currentLeverage
  • Margin UsedNumberShown when Margin state field is marginUsed
  • Margin AvailableNumberShown when Margin state field is marginAvailable
  • Liquidation PricepriceShown when Margin state field is liquidationPrice
  • Distance To LiquidationNumberShown when Margin state field is distanceToLiquidation
  • TimestampdatetimeShown when Margin state field is timestamp

Related documentation

  • Leverage MonitorEmits margin-warning and liquidation-risk branches for a leveraged position.
  • ConditionCompares values and selects Match or No Match.
  • Tactical order and position monitoringUnderstand a Tactical pattern that sizes an order, checks margin, tracks its lifecycle, and monitors the position.

On this page

1 / 5
  1. When to use
  2. Example
  3. Compare fields with their units
  4. Common problems
  5. Next steps

Practical guidance for strategies, historical simulations and metric research in Screebits.

Responsible useGlossary