Spaces:
Sleeping
Sleeping
cyberosa
commited on
Commit
·
fa68d78
1
Parent(s):
4cb55cc
cleaning
Browse files- app.py +0 -2
- scripts/live_markets_data.py +1 -1
app.py
CHANGED
|
@@ -3,7 +3,6 @@ import gradio as gr
|
|
| 3 |
import pandas as pd
|
| 4 |
import duckdb
|
| 5 |
import logging
|
| 6 |
-
import plotly.express as px
|
| 7 |
|
| 8 |
from tabs.tokens_dist import (
|
| 9 |
get_extreme_cases,
|
|
@@ -61,7 +60,6 @@ def prepare_data():
|
|
| 61 |
|
| 62 |
demo = gr.Blocks()
|
| 63 |
markets_data = prepare_data()
|
| 64 |
-
print(f"markets data")
|
| 65 |
markets_data["sample_date"] = pd.to_datetime(markets_data["sample_datetime"]).dt.date
|
| 66 |
live_markets_data = markets_data.loc[markets_data["open"] == True]
|
| 67 |
# filter only those with trades
|
|
|
|
| 3 |
import pandas as pd
|
| 4 |
import duckdb
|
| 5 |
import logging
|
|
|
|
| 6 |
|
| 7 |
from tabs.tokens_dist import (
|
| 8 |
get_extreme_cases,
|
|
|
|
| 60 |
|
| 61 |
demo = gr.Blocks()
|
| 62 |
markets_data = prepare_data()
|
|
|
|
| 63 |
markets_data["sample_date"] = pd.to_datetime(markets_data["sample_datetime"]).dt.date
|
| 64 |
live_markets_data = markets_data.loc[markets_data["open"] == True]
|
| 65 |
# filter only those with trades
|
scripts/live_markets_data.py
CHANGED
|
@@ -23,7 +23,7 @@ from typing import Optional, Generator, Callable
|
|
| 23 |
import os
|
| 24 |
import logging
|
| 25 |
import pandas as pd
|
| 26 |
-
from datetime import datetime,
|
| 27 |
import requests
|
| 28 |
from tqdm import tqdm
|
| 29 |
from typing import List, Dict
|
|
|
|
| 23 |
import os
|
| 24 |
import logging
|
| 25 |
import pandas as pd
|
| 26 |
+
from datetime import datetime, UTC
|
| 27 |
import requests
|
| 28 |
from tqdm import tqdm
|
| 29 |
from typing import List, Dict
|