mirror of
https://github.com/cmallwitz/Financials-Extension.git
synced 2026-08-25 10:04:10 -05:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46e6a68f6c | ||
|
|
ddaa4dc0aa | ||
|
|
9c8a80b1e3 | ||
|
|
e99a1109df | ||
|
|
372c878bad |
Binary file not shown.
@@ -24,7 +24,7 @@ On Debian 10, the following steps have worked for me (as root)
|
||||
Users on Windows 10 have reported this to work - as LibreOffice on Windows ships with its own, but minimal
|
||||
Python runtime a few more steps are required
|
||||
- Download the script https://bootstrap.pypa.io/get-pip.py to your computer
|
||||
- Start a Command Propmpt (CMD) as Administrator
|
||||
- Start a Command Prompt (CMD) as Administrator
|
||||
- on this command prompt run (change path as required)
|
||||
|
||||
"c:\Program Files\LibreOffice\program\python.exe" c:\temp\get-pip.py
|
||||
@@ -56,6 +56,14 @@ assets in other regions, drop me a line (best to include full URLs and possibly
|
||||
site for comparison). While data for last price is most likely consistent across sites, they may differ for other data
|
||||
points.
|
||||
|
||||
### LibreOffice: using , (comma) vs ; (semicolon) to separate arguments in formula
|
||||
|
||||
There is a setting in "Tools" / "Options..." / "LibreOffice Calc" / "Formula" called "Functions". Here the user can specify the character used to separate arguments in formula.
|
||||
|
||||
Mine is set to , (comma) - when I enter ; (semicolon) in a formula (Ubuntu / UK English), no error is reported but the semicolon is converted to , (comma)
|
||||
|
||||
Depending on your system's language and default LibreOffice settings, you maybe better off using ; instead of , in your formulas.
|
||||
|
||||
### List of supported data points
|
||||
|
||||
You can either specify numbers or names (lower or upper case) - not all bits are available from all sources and they are not necessarily consistent across sources either.
|
||||
|
||||
Binary file not shown.
+10
-3
@@ -222,9 +222,16 @@ class Yahoo(BaseClient):
|
||||
tick[Datacode.LAST_PRICE_DATE] = dt.date()
|
||||
tick[Datacode.LAST_PRICE_TIME] = dt.time()
|
||||
|
||||
tick[Datacode.TICKER] = str(price['symbol'])
|
||||
tick[Datacode.EXCHANGE] = str(price['exchange'])
|
||||
tick[Datacode.CURRENCY] = str(price['currency'])
|
||||
tick[Datacode.TICKER] = self.save_wrapper(lambda: str(price['symbol']))
|
||||
tick[Datacode.EXCHANGE] = self.save_wrapper(lambda: str(price['exchange']))
|
||||
tick[Datacode.CURRENCY] = self.save_wrapper(lambda: str(price['currency']))
|
||||
|
||||
# some Moscow symbols miss currency in data block but show it in text e.g. VTBBA.ME, TBIOA.ME
|
||||
if not tick[Datacode.CURRENCY]:
|
||||
r = r'Currency in ([A-Z]{3})\b'
|
||||
match = re.compile(r, flags=re.DOTALL).search(text)
|
||||
if match:
|
||||
tick[Datacode.CURRENCY] = match.group(1)
|
||||
|
||||
name = price['longName'] or price['shortName']
|
||||
if name:
|
||||
|
||||
@@ -14,7 +14,7 @@ import os
|
||||
cur_dir = os.getcwd()
|
||||
|
||||
addin_id = "com.financials.getinfo"
|
||||
addin_version = "2.5.0"
|
||||
addin_version = "2.5.1"
|
||||
addin_displayname = "Financial Market Extension"
|
||||
addin_publisher_link = "https://github.com/cmallwitz/Financials-Extension"
|
||||
addin_publisher_name = "The Publisher"
|
||||
|
||||
Reference in New Issue
Block a user