Skip to content

Commit

Permalink
#80 little typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim55667757 committed Nov 17, 2022
1 parent de46b0e commit 4b6b98b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2862,10 +2862,10 @@ Download script here: [./docs/examples/scenario1.py](./docs/examples/scenario1.p
from datetime import datetime, timedelta
from dateutil.tz import tzlocal, tzutc
from math import ceil
from tksbrokerapi.TKSBrokerAPI import TinkoffBrokerServer, uLogger # main module for trading operations
from tksbrokerapi.TKSBrokerAPI import TinkoffBrokerServer, uLogger # Main module for trading operations: https://tim55667757.github.io/TKSBrokerAPI/docs/tksbrokerapi/TKSBrokerAPI.html

uLogger.level = 10 # DEBUG (10) log level recommended by default for file `TKSBrokerAPI.log`
uLogger.handlers[0].level = 20 # log level for STDOUT, INFO (20) recommended by default
uLogger.handlers[0].level = 20 # Log level for STDOUT, INFO (20) recommended by default

start = datetime.now(tzutc())

Expand Down Expand Up @@ -3084,7 +3084,7 @@ from datetime import datetime, timedelta
from dateutil.tz import tzlocal, tzutc
from math import ceil

from tksbrokerapi.TKSBrokerAPI import TinkoffBrokerServer, uLogger # main module for trading operations: https://tim55667757.github.io/TKSBrokerAPI/docs/tksbrokerapi/TKSBrokerAPI.html
from tksbrokerapi.TKSBrokerAPI import TinkoffBrokerServer, uLogger # Main module for trading operations: https://tim55667757.github.io/TKSBrokerAPI/docs/tksbrokerapi/TKSBrokerAPI.html
from tksbrokerapi.TKSEnums import TKS_PRINT_DATE_TIME_FORMAT


Expand Down Expand Up @@ -3210,7 +3210,7 @@ class TradeScenario(TinkoffBrokerServer):

buyResponse = self.Buy(lots=self.lots, tp=targetStop, sl=0, expDate=localAliveTo) # TKSBrokerAPI: https://tim55667757.github.io/TKSBrokerAPI/docs/tksbrokerapi/TKSBrokerAPI.html#TinkoffBrokerServer.Buy

if "message" in buyResponse.keys():
if "message" in buyResponse.keys() and buyResponse["message"]:
uLogger.warning("Server message: {}".format(buyResponse["message"]))

else:
Expand Down Expand Up @@ -3265,7 +3265,7 @@ class TradeScenario(TinkoffBrokerServer):
# Opening SELL pending limit order:
sellResponse = self.SellLimit(lots=self._lotsToSell, targetPrice=self._targetLimit) # TKSBrokerAPI: https://tim55667757.github.io/TKSBrokerAPI/docs/tksbrokerapi/TKSBrokerAPI.html#TinkoffBrokerServer.SellLimit

if "message" in sellResponse.keys():
if "message" in sellResponse.keys() and sellResponse["message"]:
uLogger.warning("Server message: {}".format(sellResponse["message"]))

else:
Expand Down Expand Up @@ -3343,7 +3343,7 @@ def TimerDecorator(func):

def Wrapper():
uLogger.level = 10 # DEBUG (10) log level recommended by default for file `TKSBrokerAPI.log`
uLogger.handlers[0].level = 20 # log level for STDOUT, INFO (20) recommended by default
uLogger.handlers[0].level = 20 # Log level for STDOUT, INFO (20) recommended by default

start = datetime.now(tzutc())

Expand Down Expand Up @@ -3380,7 +3380,7 @@ def Trade():
)

# --- Set here any parameters you need for trading:
trader.tickers = ["YNDX", "IBM", "GOOGL"] # You can define the list of instruments in any way: by enumeration directly or as a result of a filtering function according to some analytic algorithm
trader.tickers = ["YNDX", "IBM", "GAZP"] # You can define the list of instruments in any way: by enumeration directly or as a result of a filtering function according to some analytic algorithm
trader.reserve = 0.05 # We reserve some money when open positions, 5% by default
trader.lots = 1 # Minimum lots to buy or sell
trader.tpStopDiff = 0.03 # 3% TP by default for stop-orders
Expand Down

0 comments on commit 4b6b98b

Please sign in to comment.