Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HtxChainToCurrency = map[string]string{
"btc": "BTC.Bitcoin",
"eth": "ETH.Ethereum",
"trx1": "TRX.Tron",
"trc20usdt": "USDT.Tron",
"usdterc20": "USDT.Ethereum",
"usdc": "USDC.Ethereum",
}
View Source
var HtxSupportedChains = map[string]struct{}{
"trc20usdt": {},
"usdterc20": {},
"trx1": {},
"btc": {},
"eth": {},
"usdc": {},
}
View Source
var OkxChainToCurrency = map[string]string{
"BTC-Bitcoin": "BTC.Bitcoin",
"ETH-ERC20": "ETH.Ethereum",
"TRX-TRC20": "TRX.Tron",
"USDT-TRC20": "USDT.Tron",
"USDT-ERC20": "USDT.Ethereum",
"USDC-ERC20": "USDC.Ethereum",
}
View Source
var OkxCurrencies = map[string]string{
"BTC.Bitcoin": "BTC",
"ETH.Ethereum": "ETH",
"TRX.Tron": "TRX",
"USDT.Tron": "USDT",
"USDT.Ethereum": "USDT",
"USDC.Ethereum": "USDC",
}
View Source
var OkxSupportedChains = map[string]struct{}{
"BTC-Bitcoin": {},
"ETH-ERC20": {},
"TRX-TRC20": {},
"USDT-TRC20": {},
"USDT-ERC20": {},
"USDC-ERC20": {},
}
Functions ¶
func GetCurrencyByID ¶
func GetCurrencyByID(exchange models.ExchangeSlug, id string) (string, error)
func GetIDByCurrency ¶
func GetIDByCurrency(exchange models.ExchangeSlug, currency string) (string, error)
func IsChainSupported ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.