Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Array of item = {
- # "time": datetime,
- # "price": float,
- # }
- # {'time': datetime.datetime(2023, 3, 6, 0, 0,
- # tzinfo=<DstTzInfo 'Europe/Stockholm' CET+1:00:00 STD>),
- # 'price': 146.96}
- if platform == PLATFORM_TGE:
- if item["price"] is not None and isinstance(item["time"], datetime):
- item_new = {}
- item_new["value"] = item["price"]
- item_new["start"] = item["time"]
- item_new["end"] = item["time"] + timedelta(hours=1)
- return item_new
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement