developers:chart

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
developers:chart [2026/07/01 19:04] juandevelopers:chart [2026/07/31 17:09] (current) – [Enumerations] frank
Line 20: Line 20:
 **What changed in this revision** \\ **What changed in this revision** \\
 This page documents the **open-source decoder libraries** that consume the chart API's compact binary response: This page documents the **open-source decoder libraries** that consume the chart API's compact binary response:
-  * A top-level section **[[#Decoder Libraries]]** documenting the JavaScript (``@t4/chart-decoder``), Python (``t4login``) and .NET (``T4APIDemo``) reference decoders, including the streaming handler interface, the ``ChartDataState`` field reference, and the ``ChartDataChange`` / ``MarketMode`` / ``BidOffer`` enumerations.+  * A top-level section **[[#Decoder Libraries]]** documenting the JavaScript (``@t4/chart-decoder``), Python (``t4login``) and .NET reference decoders, including the streaming handler interface, the ``ChartDataState`` field reference, and the ``ChartDataChange`` / ``MarketMode`` / ``BidOffer`` enumerations.
  
 See **[[#Revision Notes / Changelog]]** at the bottom for the detailed list. See **[[#Revision Notes / Changelog]]** at the bottom for the detailed list.
Line 446: Line 446:
 </code> </code>
  
-==== .NET: T4APIDemo ====+==== .NET ====
  
 The .NET reference decoder can be found at [[https://www.nuget.org/packages/Plus500US.T4ChartDecoder]]. It mirrors the JavaScript and Python decoders (same class, handler and ``ChartDataState`` field names) for 1:1 parity across all implementations. The .NET reference decoder can be found at [[https://www.nuget.org/packages/Plus500US.T4ChartDecoder]]. It mirrors the JavaScript and Python decoders (same class, handler and ``ChartDataState`` field names) for 1:1 parity across all implementations.
Line 485: Line 485:
 === MarketMode === === MarketMode ===
 Exchange session lifecycle state (the ``marketMode`` field in JSON, and ``state.Mode`` / ``onModeChange`` in binary). Exchange session lifecycle state (the ``marketMode`` field in JSON, and ``state.Mode`` / ``onModeChange`` in binary).
- +^ Value ^ Name             Description 
-^ Value ^ Name               ^ Value ^ Name             +| 0     | ``Undefined``      No mode known yet (initial state, or an unrecognized value from the feed — the get() helpers map anything unknown here). | 
-| 0     | ``Undefined``          | ``Failed``       +| 1     | ``PreOpen``        | Pre-open session: the exchange accepts, modifies, and cancels orders but does no matching. Precedes the open (often with an opening auction). 
-    | ``PreOpen``            | ``PreCross``     +    | ``Open``           Normal continuous trading — orders are matched in real time. | 
-    | ``Open``           10    | ``Cross``        +| 3     | ``RestrictedOpen`` | Market is open but with restrictions on activity (e.g. limited order types or actions allowed, reduced trading session). 
-    | ``RestrictedOpen`` |  11    | ``Expired``      +    | ``PreClosed``      Pre-close phase: the wind-down period just before the session closes, typically with restricted activity ahead of the closing process. | 
-    | ``PreClosed``      12    | ``Rejected``     +| 5     | ``Closed``         | Session is closed — no order entry or matching. 
-5     | ``Closed``         13    | ``Unavailable``  +    | ``Suspended``      Trading temporarily suspended by the exchange (an administrative pause, expected to resume). | 
-6     | ``Suspended``      14    | ``NoPermission`` | +| 7     | ``Halted``         | Trading halted — typically a volatility/circuit-breaker or regulatory halt on the instrument. 
-7     | ``Halted``       |   | 15    | ``TrialExpired`` |+    | ``Failed``         The market is in a failure state (exchange or system problem; data/trading not functioning normally). | 
 +| 9     | ``PreCross``       | Pre-cross auction phase: orders accumulate in the book ahead of a cross (opening/closing auction), no continuous matching. 
 +10    | ``Cross``          The cross/auction itself is executing — orders are being matched at the auction price. | 
 +| 11    | ``Expired``        | The contract has expired and is no longer tradable. 
 +12    | ``Rejected``       The market subscription/request was rejected by the server. | 
 +| 13    | ``Unavailable``    | The market is unavailable — no data can be provided for it. 
 +14    | ``NoPermission``   | Your login doesn't have permission to view or trade this market. | 
 +| 15    | ``TrialExpired``   | Trial access to this market's data has expired. |
  
 === BidOffer === === BidOffer ===
  • developers/chart.1782932665.txt.gz
  • Last modified: 2026/07/01 19:04
  • by juan