Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取AMD数据错误,埃蒙迪是什么鬼? #30

Open
xinmans opened this issue Jan 5, 2024 · 0 comments
Open

获取AMD数据错误,埃蒙迪是什么鬼? #30

xinmans opened this issue Jan 5, 2024 · 0 comments

Comments

@xinmans
Copy link

xinmans commented Jan 5, 2024

chip_stocks = [
"INTC", # 英特尔公司 (Intel Corporation)
"QCOM", # 高通公司 (Qualcomm Incorporated)
"NVDA", # 英伟达公司 (NVIDIA Corporation)
"TXN", # 德州仪器公司 (Texas Instruments Incorporated)
"AAPL", # 苹果公司 (Apple Inc.)
"TSM", # 台积电公司 (Taiwan Semiconductor Manufacturing Company Limited)
"AVGO", # 博通公司 (Broadcom Inc.)
"MU", # 美光科技公司 (Micron Technology, Inc.)
"AMD", # AMD公司 (Advanced Micro Devices, Inc.)
"NXPI" # 恩智浦半导体公司 (NXP Semiconductors N.V.)
]

for stock in chip_stocks:
    df = qs.get_data(stock)
    print(df.tail())



       name    code  open  high   low  close  volume   turnover  turnover_rate

date
2022-12-21 埃蒙迪 831969 4.95 4.95 4.95 4.95 3 1485.00 0.00
2023-01-09 埃蒙迪 831969 5.50 5.50 5.50 5.50 10 5500.00 0.01
2023-02-17 埃蒙迪 831969 2.80 2.81 2.80 2.81 10 2800.01 0.01
2023-06-20 埃蒙迪 831969 5.35 5.35 2.01 2.01 2 1072.01 0.00
2023-06-21 埃蒙迪 831969 4.02 4.02 4.02 4.02 1002 402804.00 0.54
100%|████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 4.28it/s]
name code open high low close volume turnover turnover_rate
date
2023-12-28 恩智浦半导体 NXPI 233.17 233.37 230.64 231.07 946434 218997111.0 0.37
2023-12-29 恩智浦半导体 NXPI 231.07 231.96 227.73 229.68 1105152 253725682.0 0.43
2024-01-02 恩智浦半导体 NXPI 227.26 227.26 218.57 221.18 2668473 591569744.0 1.04
2024-01-03 恩智浦半导体 NXPI 217.58 218.25 214.08 216.08 1924012 415734848.0 0.75
2024-01-04 恩智浦半导体 NXPI 204.31 210.54 204.12 207.76 3880677 805691696.0 1.51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant