Package markets.alpaca.client.ws.model
Record Class StockTradingStatus
java.lang.Object
java.lang.Record
markets.alpaca.client.ws.model.StockTradingStatus
- Record Components:
symbol- ticker symbolstatusCode- status code (tape-dependent; see above)statusMessage- human-readable status descriptionreasonCode- halt/resume reason code (may be null)reasonMessage- human-readable reason (may be null)timestamp- RFC-3339 timestamptape- consolidated tape identifier
public record StockTradingStatus(String symbol, String statusCode, String statusMessage, String reasonCode, String reasonMessage, String timestamp, String tape)
extends Record
A trading status update for a security (
T: "s").
Available from any {source} regardless of subscription plan.
Status codes by tape:
- Tape A & B (CTA):
2Halt,3Resume,5Price Indication,6Range Indication,7Market Imbalance Buy,8Market Imbalance Sell,EShort Sale Restriction,FLULD, etc. - Tape C & O (UTP):
HHalt,QQuotation Resumption,TTrading Resumption,PVolatility Trading Pause.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thereasonCoderecord component.Returns the value of thereasonMessagerecord component.Returns the value of thestatusCoderecord component.Returns the value of thestatusMessagerecord component.symbol()Returns the value of thesymbolrecord component.tape()Returns the value of thetaperecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StockTradingStatus
public StockTradingStatus(String symbol, String statusCode, String statusMessage, String reasonCode, String reasonMessage, String timestamp, String tape) Creates an instance of aStockTradingStatusrecord class.- Parameters:
symbol- the value for thesymbolrecord componentstatusCode- the value for thestatusCoderecord componentstatusMessage- the value for thestatusMessagerecord componentreasonCode- the value for thereasonCoderecord componentreasonMessage- the value for thereasonMessagerecord componenttimestamp- the value for thetimestamprecord componenttape- the value for thetaperecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
symbol
Returns the value of thesymbolrecord component.- Returns:
- the value of the
symbolrecord component
-
statusCode
Returns the value of thestatusCoderecord component.- Returns:
- the value of the
statusCoderecord component
-
statusMessage
Returns the value of thestatusMessagerecord component.- Returns:
- the value of the
statusMessagerecord component
-
reasonCode
Returns the value of thereasonCoderecord component.- Returns:
- the value of the
reasonCoderecord component
-
reasonMessage
Returns the value of thereasonMessagerecord component.- Returns:
- the value of the
reasonMessagerecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
tape
Returns the value of thetaperecord component.- Returns:
- the value of the
taperecord component
-