public method O2GRequestFactory.fillMarketDataSnapshotRequestTime
Brief
Fills the date/time range of the market data snapshot.
Declaration | ||||
|
Parameters | |
request |
The request object previously created
using the |
timeFrom |
The date and time to get the snapshot from. |
timeTo |
The date and time to get the snapshot to. |
isIncludeWeekends |
Defines whether weekend price data will be requested from the server.
If the value is If the value is |
Details
fillMarketDataSnapshotRequestTime
is the last step to get historic prices and used after
createMarketDataSnapshotRequestInstrument
.
fillMarketDataSnapshotRequestTime [hide]
O2GRequestFactory factory = mSession.getRequestFactory(); O2GTimeframeCollection timeFrames = factory.Timeframes; O2GTimeframe timeFrame = timeFrames["m1"]; O2GRequest request = factory.createMarketDataSnapshotRequestInstrument("EUR/USD", timeFrame, 300); factory.fillMarketDataSnapshotRequestTime(request, factory.ZERODATE, factory.ZERODATE, false);
The date/time is in the UTC time zone.
If timeTo is ZERODATE
, the server will send most recent data.
If timeFrom is ZERODATE
, the server will send the maximum number of bars specified in the request.
If timeFrom is not ZERODATE
but the chosen date range contains more bars than the maximum number of bars,
the maximum number of bars will be returned ending at the specified dateTo.
Declared in O2GRequestFactory