Skip to content

Commit 68ff1be

Browse files
not deployable
1 parent af822fa commit 68ff1be

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Trading-Automation/trading_automation.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
JobQueue,
1818
)
1919
import apscheduler.util
20-
21-
API_KEY = os.environ['BINANCE_KEY']
22-
API_SECRET = os.environ['BINANCE_SECRET']
23-
TELEGRAM_TOKEN = os.environ['TELEGRAM_TOKEN']
24-
TELEGRAM_CHAT_ID = int(os.environ['TELEGRAM_CHAT_ID'])
20+
from secrets import API_KEY, API_SECRET, TELEGRAM_TOKEN, TELEGRAM_CHAT_ID
21+
# API_KEY = os.environ['BINANCE_KEY']
22+
# API_SECRET = os.environ['BINANCE_SECRET']
23+
# TELEGRAM_TOKEN = os.environ['TELEGRAM_TOKEN']
24+
# TELEGRAM_CHAT_ID = int(os.environ['TELEGRAM_CHAT_ID'])
2525

2626
def patched_get_localzone():
2727
return pytz.UTC

Trading-Automation/update_symbols.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
from statistics import stdev
55
from binance.client import Client
66
from pycoingecko import CoinGeckoAPI
7-
API_KEY = os.environ['BINANCE_KEY']
8-
API_SECRET = os.environ['BINANCE_SECRET']
7+
from secrets import API_KEY, API_SECRET # Ensure you have a secrets.py file with these variables
8+
# API_KEY = os.environ['BINANCE_KEY']
9+
# API_SECRET = os.environ['BINANCE_SECRET']
910

1011
OUTPUT_FILE = "symbols.yaml"
1112
UPDATE_INTERVAL = 180

0 commit comments

Comments
 (0)