This event is fired when an FCM changes a currency rate.
Visual Basic |
---|
Public Event CurrencyRatesChanged( _ ByVal cqg_currency_rates As CQGCurrencyRates _ ) |
- cqg_currency_rates
- Collection of changed currency rates represented as CQGCurrencyRates.
No CurrencyRatesChanged event is fired if account subscription level is set to aslNone.
Note: if currency rate is changed, account summaries will be recalculated. However no AccountChanged event will be fired in that case.
The following example shows the usage of currency rates via CQG API.
VB
CS
Private Sub CEL_CurrencyRatesChanged(ByVal CurrencyRates As CQGCurrencyRates) Dim rate As CQGCurrencyRate For Each rate In CurrencyRates Debug.Print rate.rate & " rate was declared by FCM #" & rate.fcmID & " for " & rate.CurrencyName & " and " & rate.BaseCurrencyName & " currencies." Next End Sub
void cel_CurrencyRatesChanged(CQGCurrencyRates CurrencyRates) { foreach (CQGCurrencyRate rate in CurrencyRates) { Console.WriteLine("{0} rate was declared by FCM #{1} for {2} and {3} currencies.", rate.Rate, rate.fcmID, rate.CurrencyName, rate.BaseCurrencyName); } }