mirror of
https://github.com/glanceapp/glance.git
synced 2025-08-20 04:28:49 +02:00
Remove currency symbol for LSE stocks
This commit is contained in:
@@ -106,6 +106,7 @@ type marketResponseJson struct {
|
|||||||
Symbol string `json:"symbol"`
|
Symbol string `json:"symbol"`
|
||||||
RegularMarketPrice float64 `json:"regularMarketPrice"`
|
RegularMarketPrice float64 `json:"regularMarketPrice"`
|
||||||
ChartPreviousClose float64 `json:"chartPreviousClose"`
|
ChartPreviousClose float64 `json:"chartPreviousClose"`
|
||||||
|
ExchangeName string `json:"exchangeName"`
|
||||||
ShortName string `json:"shortName"`
|
ShortName string `json:"shortName"`
|
||||||
PriceHint int `json:"priceHint"`
|
PriceHint int `json:"priceHint"`
|
||||||
} `json:"meta"`
|
} `json:"meta"`
|
||||||
@@ -174,6 +175,11 @@ func fetchMarketsDataFromYahoo(marketRequests []marketRequest) (marketList, erro
|
|||||||
currency = result.Meta.Currency
|
currency = result.Meta.Currency
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// See https://github.com/glanceapp/glance/issues/757
|
||||||
|
if result.Meta.ExchangeName == "LSE" {
|
||||||
|
currency = ""
|
||||||
|
}
|
||||||
|
|
||||||
markets = append(markets, market{
|
markets = append(markets, market{
|
||||||
marketRequest: marketRequests[i],
|
marketRequest: marketRequests[i],
|
||||||
Price: result.Meta.RegularMarketPrice,
|
Price: result.Meta.RegularMarketPrice,
|
||||||
|
Reference in New Issue
Block a user