Pezh commited on
Commit
6e7cb61
1 Parent(s): 9d94dbd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import requests
2
  import json
3
-
4
  # Replace 'YOUR_ACCESS_ID' and 'YOUR_SECRET_ID' with your actual access and secret IDs from CoinEx
5
  access_id = 'D94B4CB6F92B48B981187C1B573DD3C2'
6
  secret_id = 'D94B4CB6F92B48B981187C1B573DD3C2'
@@ -19,6 +19,7 @@ response = requests.get(url, headers=headers)
19
  if response.status_code == 200:
20
  data = response.json()
21
  # Process the data as per your requirements
22
- print(data)
 
23
  else:
24
  print('Error fetching data. Status code:', response.status_code)
 
1
  import requests
2
  import json
3
+ import streamlit as st
4
  # Replace 'YOUR_ACCESS_ID' and 'YOUR_SECRET_ID' with your actual access and secret IDs from CoinEx
5
  access_id = 'D94B4CB6F92B48B981187C1B573DD3C2'
6
  secret_id = 'D94B4CB6F92B48B981187C1B573DD3C2'
 
19
  if response.status_code == 200:
20
  data = response.json()
21
  # Process the data as per your requirements
22
+ #print(data)
23
+ st.write(data)
24
  else:
25
  print('Error fetching data. Status code:', response.status_code)