GetBarsAsync Method (2)
GetBarsAsync (1 of 2)
Summary
The asynchronous method to get the bars for the specific timeframe for the specific symbol.
Signature
| public abstract void GetBarsAsync(TimeFrame timeFrame, Action<Bars> callback)
|
Parameters
Name | Type | Description |
timeFrame | TimeFrame | The bars time frame |
callback | Action | The callback that will be called after getting the bars |
Return Value
void
Declaring Type
cAlgo.API.Internals.MarketData
Examples
GetBarsAsync (2 of 2)
Summary
The asynchronous method to get the specific bars for the specific timeframe for the specific symbol.
Signature
| public abstract void GetBarsAsync(TimeFrame timeFrame, string symbolName, Action<Bars> callback)
|
Parameters
Name | Type | Description |
timeFrame | TimeFrame | The bars time frame |
symbolName | string | The bars symbol name |
callback | Action | The callback that will be called after getting the bars |
Return Value
void
Declaring Type
cAlgo.API.Internals.MarketData
Examples
Last update: February 6, 2023