Skip to content
All library documents

Interpreting Available and Frozen Position Quantities in A-Shares

Article vn.py community

Summary

The discussion explains how several position fields can represent holdings and sellable quantity in an A-share account subject to T+1 settlement. In the cited stock gateway example, total volume is the full position, frozen volume is the portion unavailable for sale, and the difference between them is the available quantity. The field named yd_volume is populated from the interface’s can-use quantity, so in this implementation it tracks sellable holdings rather than strictly meaning the prior-day position.

The examples describe a purchase that cannot be sold on the same day, becoming available on the following day, and a remaining position after a partial sale. The explanation is specific to the cited gateway and stock interface: field semantics may differ between adapters. In futures, yd_volume commonly distinguishes yesterday’s holdings for close-today versus close-yesterday handling, so users should confirm the behavior of their own interface before relying on these fields for order sizing or position checks.

Key ideas

  • Total volume represents the full position in the described stock gateway.
  • Frozen volume is the portion unavailable for sale, making volume minus frozen the sellable quantity in that example.
  • The stock interface maps yd_volume to available quantity, despite the field’s name.
  • Position-field meanings vary by gateway and asset class, so interface behavior should be checked.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.