Skip to content

Commit

Permalink
#67 readmes were updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim55667757 committed Nov 13, 2022
1 parent 5dead09 commit 3bb097d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2902,7 +2902,7 @@ for ticker in TICKERS_LIST_FOR_TRADING:
uLogger.info("Ticker [{}]: no current open positions with that instrument, checking opens rules...".format(trader.ticker))

# Так как инструмента нет среди открытых позиций, то получаем данные по инструменту и его валюте у брокера:
rawIData = trader.SearchByTicker(requestPrice=False, show=False, debug=False) # TKSBrokerAPI: https://tim55667757.github.io/TKSBrokerAPI/docs/tksbrokerapi/TKSBrokerAPI.html#TinkoffBrokerServer.SearchByTicker
rawIData = trader.SearchByTicker(requestPrice=False, show=False) # TKSBrokerAPI: https://tim55667757.github.io/TKSBrokerAPI/docs/tksbrokerapi/TKSBrokerAPI.html#TinkoffBrokerServer.SearchByTicker
iCurr = rawIData["currency"] # валюта текущего инструмента

# Получаем аналитику портфеля: распределение активов по валютам, стоимость ранее купленных активов и доступный свободный остаток:
Expand Down
2 changes: 1 addition & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2881,7 +2881,7 @@ for ticker in TICKERS_LIST_FOR_TRADING:
uLogger.info("Ticker [{}]: no current open positions with that instrument, checking opens rules...".format(trader.ticker))

# Getting instrument's data and its currency:
rawIData = trader.SearchByTicker(requestPrice=False, show=False, debug=False) # TKSBrokerAPI: https://tim55667757.github.io/TKSBrokerAPI/docs/tksbrokerapi/TKSBrokerAPI.html#TinkoffBrokerServer.SearchByTicker
rawIData = trader.SearchByTicker(requestPrice=False, show=False) # TKSBrokerAPI: https://tim55667757.github.io/TKSBrokerAPI/docs/tksbrokerapi/TKSBrokerAPI.html#TinkoffBrokerServer.SearchByTicker
iCurr = rawIData["currency"] # currency of current instrument

# Getting distribution by currencies, cost of previously purchased assets and free money in that currency:
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/scenario1.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,14 @@
# - if the buyers volumes in the DOM are at least 10% higher than the sellers volumes, then buy 1 share on the market
# and place the take profit as a stop order 3% higher than the current buy price with expire in 1 hour;

# Checks if instrument (defined by it's `ticker`) is in portfolio:
# Checks if instrument (defined by its `ticker`) is in portfolio:
isInPortfolio = trader.IsInPortfolio(portfolio) # TKSBrokerAPI: https://tim55667757.github.io/TKSBrokerAPI/docs/tksbrokerapi/TKSBrokerAPI.html#TinkoffBrokerServer.IsInPortfolio

if not isInPortfolio:
uLogger.info("Ticker [{}]: no current open positions with that instrument, checking opens rules...".format(trader.ticker))

# Getting instrument's data and its currency:
rawIData = trader.SearchByTicker(requestPrice=False, show=False, debug=False) # TKSBrokerAPI: https://tim55667757.github.io/TKSBrokerAPI/docs/tksbrokerapi/TKSBrokerAPI.html#TinkoffBrokerServer.SearchByTicker
rawIData = trader.SearchByTicker(requestPrice=False, show=False) # TKSBrokerAPI: https://tim55667757.github.io/TKSBrokerAPI/docs/tksbrokerapi/TKSBrokerAPI.html#TinkoffBrokerServer.SearchByTicker
iCurr = rawIData["currency"] # currency of current instrument

# Getting distribution by currencies, cost of previously purchased assets and free money in that currency:
Expand Down

0 comments on commit 3bb097d

Please sign in to comment.