ODINMarketFeedClient class

Constructors

ODINMarketFeedClient()

Properties

hashCode → int
The hash code for this object.
no setterinherited
onClose ↔ dynamic Function(int code, String reason)?
getter/setter pair
onError ↔ dynamic Function(String error)?
getter/setter pair
onMessage ↔ dynamic Function(String error)?
getter/setter pair
onOpen ↔ dynamic Function()?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

connect(String host, int port, bool useSSL, String userId, String apiKey) → Future<void>
disconnect() → Future<void>
dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseData(String data) → List<String>
Parse incoming data and extract complete messages @param data Raw data string @returns List of parsed messages
sendMessage(String message) → Future<void>
setCompression(bool enabled) → void
subscribeBestFive(String token, int marketSegmentId) → Future<void>
Subscribe to Best Five (top 5 bids/asks) for a specific token @param token Token to subscribe @param marketSegmentId Market segment ID
subscribeLTPTouchline(List<String> tokenList) → Future<void>
Subscribe to LTP Touchline data @param tokenList List of tokens in format "MarketSegmentID_Token"
subscribePauseResume(bool isPause) → Future<void>
This method can be used to pause or resume the broadcast subscription for user when portal / app is in minimize mode or broadcast is not needed temporarily. @param isPause true – Pause, false – Resume
subscribeTouchline(List<String> tokenList, {String responseType = "0", bool ltpChangeOnly = false}) → Future<void>
Send Touchline request for market data @param tokenList List of tokens to subscribe (1_22, 1_2885) @param responseType "1" = Touchline with fixed length native data, "0" = Normal touchline @param ltpChangeOnly Send Touchline Response on LTP change if true, otherwise send all market data response
toString() → String
A string representation of this object.
inherited
unsubscribeBestFive(String token, int marketSegmentId) → Future<void>
Unsubscribe from Best Five for a specific token @param token Token to unsubscribe @param marketSegmentId Market segment ID
unsubscribeLTPTouchline(List<String> tokenList) → Future<void>
Unsubscribe from LTP Touchline data @param tokenList List of tokens in format "MarketSegmentID_Token"
unsubscribeTouchline(List<String> tokenList) → Future<void>
Unsubscribe from Touchline data @param tokenList List of tokens in format "MarketSegmentID_Token"

Operators

operator ==(Object other) → bool
The equality operator.
inherited