init
This commit is contained in:
@@ -54,7 +54,7 @@ def check_bollinger_bands(symbol, data):
|
||||
def get_coin_data(symbol, retries=3):
|
||||
for attempt in range(retries):
|
||||
try:
|
||||
url = ('https://api.bithumb.com/v1/candles/minutes?market=KRW-{}&count=300').format(symbol)
|
||||
url = "https://api.bithumb.com/v1/candles/minutes/{}?market=KRW-{}&count=3000".format(60, symbol)
|
||||
headers = {"accept": "application/json"}
|
||||
response = requests.get(url, headers=headers)
|
||||
json_data = json.loads(response.text)
|
||||
@@ -226,4 +226,6 @@ def run_schedule():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
run_schedule()
|
||||
#run_schedule()
|
||||
|
||||
monitor_coins()
|
||||
|
||||
Reference in New Issue
Block a user