Beispiel #1
0
        public async Task <ApiMarketCapitalizationData> GetMarketCapitalization(string market)
        {
            var amount = await _marketCapitalizationService.GetCapitalization(market);

            return(new ApiMarketCapitalizationData {
                Amount = amount
            });
        }
        public async Task <CompanyInfoModels> GetOwnershipStructure()
        {
            var tradingWalletCoins = await _marketCapitalizationService.GetCapitalization(LykkeConstants.LykkeAssetId);

            var privateWalletCoins = _companyInfo.LkkTotalAmount - tradingWalletCoins -
                                     _companyInfo.LkkCompanyTreasuryAmount;

            return(new CompanyInfoModels
            {
                TotalLykkeCoins = _companyInfo.LkkTotalAmount,
                TradingWalletsCoins = tradingWalletCoins,
                PrivateWalletsCoins = privateWalletCoins,
                TreasuryCoins = _companyInfo.LkkCompanyTreasuryAmount
            });
        }