Constructor
new module:ct-chart /series /Series Request(config)
Constructs a new SeriesRequest
object from a map of
configuration properties.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Map |
The configuration properties for the request object. Properties
|
Members
(static) REQUEST _BOTH :String
Request both historic and real-time chart series data.
Type:
- String
(static) REQUEST _HISTORIC :String
Request historic chart series data.
Type:
- String
(static) REQUEST _REALTIME :String
Request real-time chart series data.
Type:
- String
Methods
(static) deserialize(xml) → {module:ct-chart /series /Series Request}
Creates a new instance of module:ct-chart/series/SeriesRequest
based
on the values in the serialised XML.
Parameters:
Name | Type | Description |
---|---|---|
xml |
Element | A XML element representing the state of the
|
Returns:
The deserialised instance.
(static) is Valid Request Type(request Type) → {Boolean}
Checks if requestType
is valid. Valid request types are:
- module:ct-chart/series/SeriesRequest.REQUEST_HISTORIC
- module:ct-chart/series/SeriesRequest.REQUEST_REALTIME
- module:ct-chart/series/SeriesRequest.REQUEST_BOTH
Parameters:
Name | Type | Description |
---|---|---|
requestType |
String | The request type to check. |
Returns:
Returns true
if the passed request type is
valid, false
otherwise.
- Type
- Boolean
get Begin() → {String}
Returns the Unix time-stamp that indicates how far back historic data should be requested.
Returns:
The string representation of the time-stamp.
- Type
- String
get Creation Timestamp() → {Number}
Returns:
The series creation timestamp (milliseconds).
- Type
- Number
get Display Name() → {String}
Returns:
The display name for the series.
- Type
- String
get End() → {String}
Returns the Unix time-stamp that indicates the point in time up until which historic data should be requested.
Returns:
The string representation of the time-stamp.
- Type
- String
get Id() → {String}
Returns the unique identifier for this request.
Returns:
The request id.
- Type
- String
get Instrument() → {String}
Returns the instrument that this request relates to.
Returns:
The instrument for this request.
- Type
- String
get Interval() → {String}
Returns the interval to be requested.
Returns:
The interval to be requested.
- Type
- String
get Series Type() → {String}
Returns the series type required for the request.
Returns:
The series type.
- Type
- String
get Timeout() → {Number}
Returns the timeout (in milliseconds) for this request.
Returns:
The timeout in milliseconds.
- Type
- Number
get Type() → {String}
Returns the type of this request. Possible return values:
module:ct-chart/series/SeriesRequest.REQUEST_HISTORIC
,
module:ct-chart/series/SeriesRequest.REQUEST_REALTIME
or
module:ct-chart/series/SeriesRequest.REQUEST_BOTH
.
Returns:
- Type
- String
is Intraperiod() → {Boolean}
Returns true
if this is a intraperiod request,
false
otherwise..
Returns:
- Type
- Boolean
serialize() → {String}
Returns the serialised representation of the Request
object,
which can be later used to recreate the object (using
module:ct-chart/series/SeriesRequest.deserialize
).
Returns:
The XML representation of the object.
- Type
- String