All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m42s
24 lines
589 B
Python
24 lines
589 B
Python
import datetime
|
|
|
|
import akshare as ak
|
|
|
|
import pushplus
|
|
import sz159745
|
|
import util
|
|
|
|
if __name__ == '__main__':
|
|
print(ak.__version__)
|
|
now = datetime.datetime.now()
|
|
print(f"当前时间: {now.strftime('%Y-%m-%d %H:%M:%S')}")
|
|
|
|
# flag = util.is_trading_time_akshare()
|
|
# print(f"是否为开市时间: {'是' if flag else '否'}")
|
|
# if flag:
|
|
cost = "0.66"
|
|
price = sz159745.price()
|
|
print("sz159745 price:", price)
|
|
pushplus.send_msg(now.strftime('%Y-%m-%d %H:%M:%S'),
|
|
f"sz159745 cost {cost} price: {price}"
|
|
)
|
|
|