Method | Description | |
---|---|---|
ApplyUpdate ( TopicUpdateType type, string currency, string targetCurrency, string bid, string ask ) : void |
This is used to apply topic stream updates to the local dictionary.
|
|
ClientConsumingRecordTopics ( string serverUrl, IRatesListener listener ) : System.Collections.Generic | ||
Close ( ) : void |
Close session.
|
|
GetRates ( string currency, string targetCurrency ) : Rates |
Returns the rates for a given base and target currency.
|
|
RemoveCurrency ( string currency ) : void |
This is used by the topic stream when notified of the unsubscription from a base currency topic. It will remove the base currency and all of its rates from the local dictionary.
|
|
RemoveRate ( string currency, string targetCurrency ) : void |
This is used by the topic stream when notification of the unsubscription from a target currency topic. It will remove the rates for the target currency under the base currency.
|
public static ApplyUpdate ( TopicUpdateType type, string currency, string targetCurrency, string bid, string ask ) : void | ||
type | TopicUpdateType | The update may be a snapshot or a delta. |
currency | string | The base currency. |
targetCurrency | string | The target currency. |
bid | string | The bid rate. |
ask | string | The ask rate. |
return | void |
public ClientConsumingRecordTopics ( string serverUrl, IRatesListener listener ) : System.Collections.Generic | ||
serverUrl | string | |
listener | IRatesListener | |
return | System.Collections.Generic |
public GetRates ( string currency, string targetCurrency ) : Rates | ||
currency | string | The base currency. |
targetCurrency | string | The target currency. |
return | Rates |
public static RemoveCurrency ( string currency ) : void | ||
currency | string | The currency to remove. |
return | void |
public static RemoveRate ( string currency, string targetCurrency ) : void | ||
currency | string | The base currency. |
targetCurrency | string | The target currency. |
return | void |