This commit is contained in:
dsyoon
2025-04-27 15:55:15 +09:00
parent b726c32548
commit 8a064e61ea

View File

@@ -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()