Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def greet_json():
|
|
11 |
@app.get("/kline")
|
12 |
def get_kline(symbol : str):
|
13 |
res = requests.get("https://api.binance.com/dapi/v1/klines?symbol="+symbol)
|
14 |
-
print(res.
|
15 |
if res.status_code == 200:
|
16 |
return res.json()
|
17 |
return {"error":res.text}
|
|
|
11 |
@app.get("/kline")
|
12 |
def get_kline(symbol : str):
|
13 |
res = requests.get("https://api.binance.com/dapi/v1/klines?symbol="+symbol)
|
14 |
+
print(res.headers)
|
15 |
if res.status_code == 200:
|
16 |
return res.json()
|
17 |
return {"error":res.text}
|