OEC Application Programming Interface

OECClient.RequestBars Method (Contract, DateTime, Int32, SubscriptionType, Int32, Boolean)

Requests price historical information in form of various bars.

public Subscription RequestBars(
   Contract contract,
   DateTime EndDate,
   Int32 Amount,
   SubscriptionType Type,
   Int32 Interval,
   Boolean IgnoreSessionBoundaries
);

Parameters

contract
Contract to request bars
EndDate
End of time range for bars series
Amount
Amount of bars to load (Not applicable for Range and Momentum bars when IgnoreSessionBoundaries = true)
Type
Type of bars
Interval
Bar interval
IgnoreSessionBoundaries
Indicates whether to ignore session boundaries

Return Value

See Also

OECClient Class | OEC.API Namespace | OECClient.RequestBars Overload List