Syntax
GetChartData (SymbolID As String, FromDate As String, ToDate As String, PeriodID As Long)
Description
The GetChartData operation is used to return a JSON object as a list (of type ChartCandle) which contains a given symbol
historical data based on the specified period identifier and date.
Request Parameters
| Name |
Description |
Required |
| SymbolID |
- symbol ID
- Type: String.
- Default: None.
- Constraints: Must be a valid Symbol and accessible by the logged-in clients.
|
Yes |
| FromDate |
- Starting date for the specified period.
- Type: String.
- Default:01/01/1900.
- Constraints: Must be in dd/MM/yyyy HH:mm:ss format.
|
No |
| ToDate |
- Starting date for the specified period.
- Type: String.
- Default:01/01/1900.
- Constraints: Must be in dd/MM/yyyy HH:mm:ss format.
|
No |
| PeriodID |
- can be one of the chart Periods.
- Type: Long.
- Default: None.
- Constraints: Must be a valid Period ID.
|
Yes |
Response Elements
| Name |
Description |
| Result |
This operation returns List(Of ChartCandle) upon success.
The following are the ChartCandle’s Data members:
- SymID: Candle symbol ID.
- OpenPrice: Candle open price.
- HighPrice: Candle high price.
- LowPrice: Candle low price.
- ClosePrice: Candle close price.
- CandleDate: Candle open date.
- CandleSym: Symbol name.
- Volume As Double.
Type: JSON Object as a list (of type ChartCandle),
Otherwise, an explicit error code is returned. |
See Also
VertexFX WCF Service Index