Versions in this module Expand all Collapse all v1 v1.0.0 Apr 24, 2021 Changes in this version + const ASC + const DESC + const SortByHighPrice + const SortByLTP + const SortByLowPrice + const SortByNumberOfTrades + const SortByOpeningPrice + const SortByPercentageChange + const SortByPriceChange + const SortByTradingCode + const SortByValue + const SortByVolumeOfShare + const SortByYCP + type CSE struct + func NewCSE() *CSE + func (c *CSE) GetAllListedCompanies() ([]*Company, error) + func (c *CSE) GetAllListedCompaniesByCategory() ([]*CompanyListingByCategory, error) + func (c *CSE) GetAllListedCompaniesByIndustry() ([]*CompanyListingByIndustry, error) + func (c *CSE) GetAllWeeklyReports(year int) (*WeeklyReports, error) + func (c *CSE) GetLatestPrices(by sortBy, order sortOrder) ([]*CSEShare, error) + func (c *CSE) GetMarketStatus() (*CseMarketStatus, error) + func (c *CSE) GetMarketSummary() (*Summary, error) + func (c *CSE) GetPriceEarningRatio(day, month, year string) (*PriceEarningRatios, error) + type CSEShare struct + High float64 + LTP float64 + Low float64 + Open float64 + SL int + Trade int64 + TradingCode string + ValueInMN float64 + Volume int64 + YCP float64 + type Company struct + CompanyName string + TradingCode string + type CompanyListingByCategory struct + Category string + List []*Company + type CompanyListingByIndustry struct + IndustryType string + List []*Company + type CseMarketStatus struct + IsOpen bool + type DSE struct + func NewDSE() *DSE + func (d *DSE) GetLatestPrices(by sortBy, order sortOrder) ([]*DSEShare, error) + func (d *DSE) GetLatestPricesByCategory(categoryName string, by sortBy, order sortOrder) ([]*DSEShare, error) + func (d *DSE) GetLatestPricesSortedByPercentageChange() ([]*LatestPricesWithPercentage, error) + func (d *DSE) GetMarketStatus() (*DseMarketStatus, error) + func (d *DSE) GetMarketSummary() (*MarketSummary, error) + type DSEShare struct + Change float64 + CloseP float64 + High float64 + ID int + LTP float64 + Low float64 + Trade int64 + TradingCode string + ValueInMN float64 + Volume int64 + YCP float64 + type DseMarketStatus struct + IsOpen bool + LastUpdatedOn struct{ ... } + type LatestPricesWithPercentage struct + CloseP float64 + High float64 + ID int + LTP float64 + Low float64 + PercentageChange float64 + Trade int64 + TradingCode string + ValueInMN float64 + Volume int64 + YCP float64 + type MarketSummary struct + Ds30 struct{ ... } + DseS struct{ ... } + DseX struct{ ... } + IssuesAdvanced int32 + IssuesDeclined int32 + IssuesUnchanged int32 + LastUpdatedOn struct{ ... } + TotalTrade int64 + TotalValueInMN float64 + TotalVolume int64 + type PriceEarningRatio struct + AnnualizedEPS float64 + ClosePrice float64 + EPSAsPerUpdatedUnAuditedAccounts struct{ ... } + EPSBasedOnLastAuditedAccounts float64 + FinancialYear struct{ ... } + PERatioBasedOnAnnualizedEPS float64 + PERatioBasedOnLastAuditedAccounts float64 + SL string + TradingCode string + type PriceEarningRatios struct + Date string + PriceEarningRatioArray []*PriceEarningRatio + type Summary struct + HighestRecords []*record + HistoricalSummaries []*market + type WeeklyReports struct + Reports []*report + Year int