new DhelmGfeed(params)
- Source:
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object
|
|
Methods
(static) setAutoReconnectStatus(isTrue)
Set auto reconnection status.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
isTrue |
boolean
|
Auto reconnection status will be true if set true, else false. |
(static) setFunctionReleaseTime(value)
Set function release time.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number
|
function release value. |
(static) setMultiplier(value)
Set multiplier value to increase delay.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number
|
multiplier Multiplier value. |
(static) setSynchronizationDelay(value)
Set synchronization delay.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
number
|
delay value. |
connected() → {bool}
Check if the web socket is connected
- Source:
Returns:
- Type:
-
bool
disconnect(force_disconnect)
Disconnects the web socket connection
- Source:
Parameters:
Name | Type | Description |
---|---|---|
force_disconnect |
boolean
|
User promted disconnect |
getExchangeMessage(param, callback)
Get exchange message for the given exchange
- Source:
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
param |
object
|
|
||||||
callback |
function
|
The callback function |
getExchanges(callback)
Get the list of subscribed exchanges
- Source:
Parameters:
Name | Type | Description |
---|---|---|
callback |
function
|
The callback function |
getExpiryDates(param, callback)
Get the list of expiry dates for different products for the given exchange
- Source:
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
param |
object
|
|
||||||||||||
callback |
function
|
The callback function |
getHistoricalOHLC(param, callback)
Returns array with historical data (array of OHLC)
- Source:
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
param |
object
|
|
|||||||||||||||||||||
callback |
function
|
The callback function |
getHistoricalTick(param, callback)
Returns array with historical data (array of Ticks)
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
param |
object
|
|
||||||||||||||||||
callback |
function
|
The callback function |
getInstruments(param, callback)
Returns array of instruments (properties) by selected exchange.
- Source:
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
param |
object
|
|
|||||||||||||||||||||
callback |
function
|
The callback function |
getInstrumentsOnSearch(param, callback)
Returns array of max. 20 instruments (properties) by selected exchange and ‘search word’
- Source:
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
param |
object
|
|
|||||||||
callback |
function
|
The callback function |
getInstrumentTypes(param, callback)
Get the list of instrument types for the given exchange
- Source:
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
param |
object
|
|
||||||
callback |
function
|
The callback function |
getLastQuote(param, callback)
Returns detailed information about Last Trade Price (LTP)
- Source:
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
param |
object
|
|
|||||||||
callback |
function
|
The callback function |
getLastQuoteArray(param, callback)
Returns detailed information about Last Trade Price (LTP) of Multiple Symbols (max 25 in single call)
- Source:
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
param |
object
|
|
|||||||||
callback |
function
|
The callback function |
getLimitation(callback)
Get limitations of your subscription plan
- Source:
Parameters:
Name | Type | Description |
---|---|---|
callback |
function
|
The callback function |
getMarketMessage(param, callback)
Get market message for the given exchange
- Source:
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
param |
object
|
|
||||||
callback |
function
|
The callback function |
getOptionTypes(param, callback)
Get the list of option types for the given exchange
- Source:
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
param |
object
|
|
|||||||||||||||
callback |
function
|
The callback function |
getProducts(param, callback)
Get the list of products for the given exchange
- Source:
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
param |
object
|
|
|||||||||
callback |
function
|
The callback function |
getServerInfo(callback)
Get server information
- Source:
Parameters:
Name | Type | Description |
---|---|---|
callback |
function
|
The callback function |
getSnapshot(param, callback)
Returns last snapshot of Multiple Symbols (max 25 instruments in single call)
- Source:
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
param |
object
|
|
|||||||||||||||
callback |
function
|
The callback function |
getStrikePrices(param, callback)
Get the list of strike prices for the given exchange
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
param |
object
|
|
||||||||||||||||||
callback |
function
|
The callback function |
subscribeRealTime(param, callback)
Subscribe to Realtime data, returns market data every tick.
- Source:
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
param |
object
|
|
||||||||||||
callback |
function
|
The callback function |
subscribeRealTimeSnapshot(param, callback)
Subscribe to Realtime data, returns data at snapshot periodicity.
- Source:
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
param |
object
|
|
|||||||||||||||
callback |
function
|
The callback function |