SymbolStatus enum
Symbol trading status enumeration.
Represents the current trading status of a symbol on an exchange.
Example:
final status = SymbolStatus.trading;
print(status.value); // 'TRADING'
print(status.isActive); // true
Values
- trading → const SymbolStatus
-
Symbol is actively trading - normal operations allowed.
const SymbolStatus('TRADING') - break_ → const SymbolStatus
-
Trading is temporarily paused - will resume.
const SymbolStatus('BREAK') - halt → const SymbolStatus
-
Trading is halted - no orders allowed.
const SymbolStatus('HALT') - haltBuyOnly → const SymbolStatus
-
Only selling is allowed - no new buys.
const SymbolStatus('HALT_BUY_ONLY') - haltSellOnly → const SymbolStatus
-
Only buying is allowed - no new sells.
const SymbolStatus('HALT_SELL_ONLY') - auctionMatch → const SymbolStatus
-
Auction matching period - special order matching.
const SymbolStatus('AUCTION_MATCH') - preTrading → const SymbolStatus
-
Pre-trading period - before market opens.
const SymbolStatus('PRE_TRADING') - postTrading → const SymbolStatus
-
Post-trading period - after market closes.
const SymbolStatus('POST_TRADING') - endOfDay → const SymbolStatus
-
End of trading day - market closed.
const SymbolStatus('END_OF_DAY')
Properties
- canBuy → bool
-
Whether buying is allowed.
no setter
- canSell → bool
-
Whether selling is allowed.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isActive → bool
-
Whether the symbol allows trading (fully or partially).
no setter
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
The string value used in API responses.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromString(
String value) → SymbolStatus - Parse a string to SymbolStatus.
Constants
-
values
→ const List<
SymbolStatus> - A constant List of the values in this enum, in order of their declaration.