+
    Ȝi                         R t ^ RIt^ RIt^ RIHt R R ltR
R R llt]R8X  d#   ]! 4       t	]
! ]	4       ]! RR	7      t]
! ]4       R# R# )u   
Date: 2025/3/7 17:00
Desc: 东方财富网-行情中心-全球指数
https://quote.eastmoney.com/center/gridlist.html#global_qtzs
N)index_global_em_symbol_mapc                8    V ^8  d   QhR\         P                  /# )   return)pd	DataFrame)formats   "f/Users/mibo/.openclaw/workspace/.venv-ak/lib/python3.14/site-packages/akshare/index/index_global_em.py__annotate__r
      s     M Mbll M    c                    Rp RRRRRRRRR	R
RRRRRRRRRRRR/p\         P                  ! WR7      pVP                  4       p\        P                  ! VR,          R,          4      P
                  pVP                  RR7       VR,          P                  \        4      ^,           VR&   VP                  RRRRRRRR R!R"RR#R$R%R&R'R(R)R*R+R,R-R.R//RR07       V. R7O,          p\        P                  ! VR/,          R1RR2R37      P                  P                  R44      VR/&   VR/,          P                  P                  R54      VR/&   \        P                  ! VR%,          R2R67      ^d,          VR%&   \        P                  ! VR",          R2R67      ^d,          VR"&   \        P                  ! VR#,          R2R67      ^d,          VR#&   \        P                  ! VR ,          R2R67      ^d,          VR &   \        P                  ! VR',          R2R67      ^d,          VR'&   \        P                  ! VR),          R2R67      ^d,          VR)&   \        P                  ! VR+,          R2R67      ^d,          VR+&   \        P                  ! VR-,          R2R67      ^d,          VR-&   V# )8u   
东方财富网-行情中心-全球指数-实时行情数据
https://quote.eastmoney.com/center/gridlist.html#global_qtzs
:return: 实时行情数据
:rtype: pandas.DataFrame
z,https://push2.eastmoney.com/api/qt/clist/getnp2fltt1invtfsag  i:1.000001,i:0.399001,i:0.399005,i:0.399006,i:1.000300,i:100.HSI,i:100.HSCEI,i:124.HSCCI,i:100.TWII,i:100.N225,i:100.KOSPI200,i:100.KS11,i:100.STI,i:100.SENSEX,i:100.KLSE,i:100.SET,i:100.PSI,i:100.KSE100,i:100.VNINDEX,i:100.JKSE,i:100.CSEALL,i:100.SX5E,i:100.FTSE,i:100.MCX,i:100.AXX,i:100.FCHI,i:100.GDAXI,i:100.RTS,i:100.IBEX,i:100.PSI20,i:100.OMXC20,i:100.BFX,i:100.AEX,i:100.WIG,i:100.OMXSPI,i:100.SSMI,i:100.HEX,i:100.OSEBX,i:100.ATX,i:100.MIB,i:100.ASE,i:100.ICEXI,i:100.PX,i:100.ISEQ,i:100.DJIA,i:100.SPX,i:100.NDX,i:100.TSX,i:100.BVSP,i:100.MXX,i:100.AS51,i:100.AORD,i:100.NZ50,i:100.UDI,i:100.BDI,i:100.CRBfieldsz9f12,f13,f14,f292,f1,f2,f4,f3,f152,f17,f18,f15,f16,f7,f124fidf3pnpz200podectwbp2uz
|0|0|0|weburlparamsdatadiffT)inplaceindex   序号f12   代码f14   名称f17	   开盘价f4	   涨跌额	   涨跌幅f2	   最新价f15	   最高价f16	   最低价f18	   昨收价f7   振幅f124   最新行情时间)columnsr!   scoerce)unitutcerrorszAsia/Shanghaiz%Y-%m-%d %H:%M:%Sr>   )r#   r%   r'   r.   r+   r,   r)   r0   r2   r4   r6   r8   )requestsgetjsonr   r   Treset_indexastypeintrenameto_datetimedt
tz_convertstrftime
to_numeric)r   r   r	data_jsontemp_dfs        r	   index_global_spot_emrP      s    9Cc ^ 	Mtcec#F& 	,AIll9V,V4577G%w'..s3a7GGNNX88;+++;;;((
   " 	
G  %'NN$%CT(%bO	$  ! %,,@$A$D$D$M$MNa$bG !==)=hORUUGK==)=hORUUGK==)=hORUUGK==)=hORUUGK==)=hORUUGK==)=hORUUGK==)=hORUUGKgh&7ICOGHNr      美元指数c                D    V ^8  d   QhR\         R\        P                  /# )r   symbolr   )strr   r   )r   s   "r	   r
   r
   _   s"     @ @ @",, @r   c                   RpR\         V ,          R,           R\         V ,          R,           2RRRR	R
RRRRR	RRRRRRRR	/
p\        P                  ! WR7      pVP                  4       p\        P
                  ! VR,          R,           Uu. uF  qUP                  R4      NK  	  up4      pVR,          R,          VR&   VR,          R,          VR&   . R#OVn        V. R$O,          p\        P                  ! VR,          R!R"7      P                  P                  VR&   \        P                  ! VR,          R!R"7      VR&   \        P                  ! VR,          R!R"7      VR&   \        P                  ! VR,          R!R"7      VR&   \        P                  ! VR,          R!R"7      VR&   \        P                  ! VR ,          R!R"7      VR &   V# u upi )%u   
东方财富网-行情中心-全球指数-历史行情数据
https://quote.eastmoney.com/gb/zsUDI.html
:param symbol: 指数名称；可以通过 ak.index_global_spot_em() 获取
:type symbol: str
:return: 历史行情数据
:rtype: pandas.DataFrame
z5https://push2his.eastmoney.com/api/qt/stock/kline/getsecidmarket.codeklt101fqtr   lmt50000end20500000isccafields1zf1,f2,f3,f4,f5,f6,f7,f8fields2z7f51,f52,f53,f54,f55,f56,f57,f58,f59,f60,f61,f62,f63,f64ut f057cbcbce2a86e2866ab8877db1d059forcectr   r   klines,name   日期   今开r.      最高   最低r6   r;   r?   )rj   rk   r.   rl   rm   -rn   r6   rn   rn   rn   rn   rn   rn   r%   r'   )rj   r%   r'   rk   r.   rl   rm   r6   )r   r@   rA   rB   r   r   splitr9   rH   rI   daterL   )rS   r   r   rM   rN   itemrO   s   &      r	   index_global_hist_emrr   _   s    BC.v6x@AC]^dCeflCmBnouswz,L03F 	,AIll	&8I(8ST8SJJsO8STUG'/GFO'/GFOGO$ 		
G wx'8JMMRRGHgh&7IGH==)=hOGKgh&7IGHgh&7IGHgh&7IGHNO Us   G__main__)rS   )rQ   )__doc__pandasr   r@   akshare.index.consr   rP   rr   __name__index_global_spot_em_dfprintindex_global_hist_em_df r   r	   <module>r|      sX      9M`@F z24	
!"2.I	
!" r   