Provides commonly used currency pairs and symbols
More...
|
static bool | IsStableCoinWithoutPair (string symbol, string market) |
| Checks whether or not certain symbol is a StableCoin without pair in a given market More...
|
|
static string | GetCurrencySymbol (string currency) |
| Gets the currency symbol for the specified currency code More...
|
|
static decimal | Parse (string value) |
| Converts the string representation of number with currency in the format {currency}{value} to its decimal equivalent. It throws if the value cannot be converted to a decimal number. More...
|
|
static bool | TryParse (string value, out decimal parsedValue) |
| Converts the string representation of number with currency in the format {currency}{value} to its decimal equivalent. More...
|
|
|
const string | USD = "USD" |
| USD (United States Dollar) currency string More...
|
|
const string | EUR = "EUR" |
| EUR (Euro) currency string More...
|
|
const string | GBP = "GBP" |
| GBP (British pound sterling) currency string More...
|
|
const string | INR = "INR" |
| INR (Indian rupee) currency string More...
|
|
const string | IDR = "IDR" |
| IDR (Indonesian rupiah) currency string More...
|
|
const string | CNH = "CNH" |
| CNH (Chinese Yuan Renminbi) currency string More...
|
|
const string | CHF = "CHF" |
| CHF (Swiss Franc) currency string More...
|
|
const string | HKD = "HKD" |
| HKD (Hong Kong dollar) currency string More...
|
|
const string | NullCurrency = "QCC" |
| Null currency used when a real one is not required More...
|
|
static readonly IReadOnlyDictionary< string, string > | CurrencySymbols |
| A mapping of currency codes to their display symbols More...
|
|
static readonly HashSet< string > | StablePairsGDAX = StablePairsCoinbase |
| Stable pairs in GDAX. We defined them because they have different fees in GDAX market More...
|
|
static readonly HashSet< string > | StablePairsCoinbase |
| Stable pairs in Coinbase. We defined them because they have different fees in Coinbase market More...
|
|
Provides commonly used currency pairs and symbols
Definition at line 27 of file Currencies.cs.
◆ IsStableCoinWithoutPair()
static bool QuantConnect.Currencies.IsStableCoinWithoutPair |
( |
string |
symbol, |
|
|
string |
market |
|
) |
| |
|
static |
Checks whether or not certain symbol is a StableCoin without pair in a given market
- Parameters
-
symbol | The Symbol from wich we want to know if it's a StableCoin without pair |
market | The market in which we want to search for that StableCoin |
- Returns
- True if the given symbol is a StableCoin without pair in the given market
Definition at line 260 of file Currencies.cs.
◆ GetCurrencySymbol()
static string QuantConnect.Currencies.GetCurrencySymbol |
( |
string |
currency | ) |
|
|
static |
Gets the currency symbol for the specified currency code
- Parameters
-
currency | The currency code |
- Returns
- The currency symbol
Definition at line 274 of file Currencies.cs.
◆ Parse()
static decimal QuantConnect.Currencies.Parse |
( |
string |
value | ) |
|
|
static |
Converts the string representation of number with currency in the format {currency}{value} to its decimal equivalent. It throws if the value cannot be converted to a decimal number.
- Parameters
-
value | The value with currency |
- Returns
- The decimal equivalent to the value
Definition at line 290 of file Currencies.cs.
◆ TryParse()
static bool QuantConnect.Currencies.TryParse |
( |
string |
value, |
|
|
out decimal |
parsedValue |
|
) |
| |
|
static |
Converts the string representation of number with currency in the format {currency}{value} to its decimal equivalent.
- Parameters
-
value | The value with currency |
parsedValue | The decimal equivalent to the string value after conversion |
- Returns
- True if the value was succesfuly converted
Definition at line 308 of file Currencies.cs.
◆ USD
const string QuantConnect.Currencies.USD = "USD" |
|
static |
USD (United States Dollar) currency string
Definition at line 32 of file Currencies.cs.
◆ EUR
const string QuantConnect.Currencies.EUR = "EUR" |
|
static |
◆ GBP
const string QuantConnect.Currencies.GBP = "GBP" |
|
static |
GBP (British pound sterling) currency string
Definition at line 42 of file Currencies.cs.
◆ INR
const string QuantConnect.Currencies.INR = "INR" |
|
static |
INR (Indian rupee) currency string
Definition at line 47 of file Currencies.cs.
◆ IDR
const string QuantConnect.Currencies.IDR = "IDR" |
|
static |
IDR (Indonesian rupiah) currency string
Definition at line 52 of file Currencies.cs.
◆ CNH
const string QuantConnect.Currencies.CNH = "CNH" |
|
static |
CNH (Chinese Yuan Renminbi) currency string
Definition at line 57 of file Currencies.cs.
◆ CHF
const string QuantConnect.Currencies.CHF = "CHF" |
|
static |
CHF (Swiss Franc) currency string
Definition at line 62 of file Currencies.cs.
◆ HKD
const string QuantConnect.Currencies.HKD = "HKD" |
|
static |
HKD (Hong Kong dollar) currency string
Definition at line 67 of file Currencies.cs.
◆ NullCurrency
const string QuantConnect.Currencies.NullCurrency = "QCC" |
|
static |
Null currency used when a real one is not required
Definition at line 72 of file Currencies.cs.
◆ CurrencySymbols
readonly IReadOnlyDictionary<string, string> QuantConnect.Currencies.CurrencySymbols |
|
static |
A mapping of currency codes to their display symbols
Now used by Forex and CFD, should probably be moved out into its own class
Definition at line 80 of file Currencies.cs.
◆ StablePairsGDAX
Stable pairs in GDAX. We defined them because they have different fees in GDAX market
Definition at line 153 of file Currencies.cs.
◆ StablePairsCoinbase
readonly HashSet<string> QuantConnect.Currencies.StablePairsCoinbase |
|
static |
Initial value:= new()
{
"DAIUSDC",
"DAIUSD",
"GYENUSD",
"PAXUSD",
"PAXUSDT",
"MUSDUSD",
"USDCEUR",
"USDCGBP",
"USDTEUR",
"USDTGBP",
"USDTUSD",
"USDTUSDC",
"USTEUR",
"USTUSD",
"USTUSDT",
"WBTCBTC"
}
Stable pairs in Coinbase. We defined them because they have different fees in Coinbase market
Definition at line 158 of file Currencies.cs.
The documentation for this class was generated from the following file: