Skip to content

Commit

Permalink
new interest rate in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
holohup committed Sep 15, 2023
1 parent dabe84e commit 0a609d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bot/scanner/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ async def scan_spreads(self):
sell_price = self._orderbooks[sell_leg.uid].sell_price
buy_price = self._orderbooks[buy_leg.uid].buy_price
days_till_expiration = (
buy_leg.expiration_date - datetime.now(tz=timezone.utc)
buy_leg.last_trade_date - datetime.now(tz=timezone.utc)
).days

time_adjusted_sell_price = (
Expand Down
2 changes: 1 addition & 1 deletion bot/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from dotenv import load_dotenv
from tinkoff.invest.retrying.settings import RetryClientSettings

CURRENT_INTEREST_RATE = '12'
CURRENT_INTEREST_RATE = '13'

# place stops and shorts

Expand Down

0 comments on commit 0a609d8

Please sign in to comment.