init
This commit is contained in:
@@ -54,7 +54,7 @@ def check_bollinger_bands(symbol, data):
|
|||||||
def get_coin_data(symbol, retries=3):
|
def get_coin_data(symbol, retries=3):
|
||||||
for attempt in range(retries):
|
for attempt in range(retries):
|
||||||
try:
|
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"}
|
headers = {"accept": "application/json"}
|
||||||
response = requests.get(url, headers=headers)
|
response = requests.get(url, headers=headers)
|
||||||
json_data = json.loads(response.text)
|
json_data = json.loads(response.text)
|
||||||
|
|||||||
Reference in New Issue
Block a user