Skip to content

Commit

Permalink
Merge pull request #34 from ricardospinoza/main
Browse files Browse the repository at this point in the history
build (3.11) failed 4 hours ago in
  • Loading branch information
ricardospinoza authored Nov 21, 2023
2 parents 2910eeb + 56ee217 commit 7e375b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions example/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async def trade_and_check():
balance = await client.get_balance()
print(colored("[INFO]: ", "blue"), "Balance: ", balance)
global lastAction
global countSequenceLoss
global countSequenceLoss
while balance >= 1:
amount = 1
if countSequenceLoss > 0:
Expand Down Expand Up @@ -148,7 +148,7 @@ async def trade_and_check():
print(colored("[INFO]: ", "blue"), "Waiting for result...")
print(colored("[INFO]: ", "blue"), f"Side: {action}, countSequenceLoss: {countSequenceLoss}")
#print(f"id checking {trade_info[asset]['id']}")

if await client.check_win(asset, trade_info[asset]["id"]):
print(colored("[INFO]: ", "green"), f"Win -> Profit: {client.get_profit()}")
lastAction = action
Expand Down Expand Up @@ -251,7 +251,7 @@ async def get_candle_v2():

for candle in candles:
print(candle)
timestamp = candle[0]
timestamp = candle[0]
data = datetime.datetime.fromtimestamp(timestamp).strftime('%d/%m/%Y %H:%M:%S')
print(data)
client.close()
Expand Down
2 changes: 1 addition & 1 deletion quotexpy/stable_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ async def start_remaing_time(self):
except Exception as e:
print(e)
return True

async def check_win(self, asset, id_number):
"""Check win based id"""
self.logger.debug(f"begin check wind {id_number}")
Expand Down

0 comments on commit 7e375b6

Please sign in to comment.