· 8 years ago · Feb 10, 2018, 09:58 AM
1from time import localtime, sleep, strftime
2
3from binance.client import Client
4from binance.exceptions import BinanceAPIException
5
6import psycopg2.extras
7
8
9API_KEY = '<API_KEY>'
10API_SECRET = '<API_SECRET>'
11
12# How often the data should be gathered (in seconds)
13DATA_GATHERING_SLEEP = 5
14
15# The percentage (%) that sets when the user should be announced of a change
16PERCENTAGE_THRESHOLD = 3.00
17
18DB_NAME = 'binance'
19DB_USER = 'postgres'
20DB_PASS = 'postgres'
21
22
23class Colors:
24 GREEN = '