v gui runu vstup local market time

This commit is contained in:
David Brazda
2023-11-16 10:30:31 +01:00
parent b6e73c05a1
commit ce24c43218
3 changed files with 6 additions and 5 deletions

View File

@ -24,7 +24,7 @@ from alpaca.trading.models import Order, TradeUpdate
import numpy as np
import pandas as pd
from collections import deque
import socket
import numpy as np
def slice_dict_lists(d, last_item, to_tmstp = False):
@ -312,6 +312,7 @@ def send_to_telegram(message):
chatID = '5029424778'
apiURL = f'https://api.telegram.org/bot{apiToken}/sendMessage'
message = socket.gethostname() + " " + message
try:
response = requests.post(apiURL, json={'chat_id': chatID, 'text': message})
print(response.text)