This commit is contained in:
dsyoon
2025-04-27 15:45:29 +09:00
parent 2686a41b14
commit aa3c15d924

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/days?market=KRW-{}&count=100').format(symbol)
url = ('https://api.bithumb.com/v1/candles/minutes?market=KRW-{}&count=300').format(symbol)
headers = {"accept": "application/json"}
response = requests.get(url, headers=headers)
json_data = json.loads(response.text)