diff --git a/.travis.yml b/.travis.yml index 91cb76e..c8cff6d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ branches: only: - master - /^release-.*$/ -# - develop + - develop stages: - env-test-build-publish diff --git a/tksbrokerapi/TKSBrokerAPI.py b/tksbrokerapi/TKSBrokerAPI.py index 004f0d6..0f1ea6e 100644 --- a/tksbrokerapi/TKSBrokerAPI.py +++ b/tksbrokerapi/TKSBrokerAPI.py @@ -1978,10 +1978,10 @@ def Overview(self, show: bool = False, details: str = "full", onlyFiles=False) - # update dict with free funds for trading (total - blocked) by currencies # e.g. {"rub": {"total": 10000.99, "totalCostRUB": 10000.99, "free": 1234.56, "freeCostRUB": 1234.56}, "usd": {"total": 250.55, "totalCostRUB": 15375.80, "free": 125.05, "freeCostRUB": 7687.50}} view["stat"]["funds"][currency] = { - "total": round(volume, 6), - "totalCostRUB": round(costRUB * volume, 6), # total volume cost in rubles - "free": round(volume - blocked, 6), - "freeCostRUB": round(costRUB * (volume - blocked), 6), # free volume cost in rubles + "total": round(statData["volume"], 6), + "totalCostRUB": round(statData["cost"], 6), # total volume cost in rubles + "free": round(statData["volume"] - statData["blocked"], 6), + "freeCostRUB": round(statData["currentPrice"] * (statData["volume"] - statData["blocked"]), 6), # free volume cost in rubles } elif item["instrumentType"] == "share":