Message: CurrencyRateSource

File: WebAPI/trading_account_2.proto

Used in

BrokerageCurrencyRateSources

Fields

base_currency

Type: string

Description: Base currency code (ISO-4217-based). Note that cryptocurrencies use codes that are ISO-4217-style, though usually not actual ISO codes (e.g., can be longer than 3 characters).

Required: yes.

quote_currency

Type: string

Description: Quote currency code (ISO-4217-based). Note that cryptocurrencies use codes that are ISO-4217-style, though usually not actual ISO codes (e.g., can be longer than 3 characters).

Required: yes.

rate_source_contract_id

Type: uint32

Description: Realtime rate source contract for these base and quote currencies. E.g. for “X.US.USDJPY”, “USD” is the base currency and “JPY” is the quote currency. Might be omitted if const_currency_rate has a value.

const_currency_rate

Type: double

Description: Constant currency rate. If the field is not empty use it instead of subscribing to rate_source_contract_id.