+
    Ȝ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://finance.sina.com.cn/stock/globalindex/quotes/UKX
N)index_global_sina_symbol_mapc                8    V ^8  d   QhR\         P                  /# )   return)pd	DataFrame)formats   "h/Users/mibo/.openclaw/workspace/.venv-ak/lib/python3.14/site-packages/akshare/index/index_global_sina.py__annotate__r
      s           c                     \         P                  P                  \        RR.R7      p RV P                  n        V P                  RR7       V # )u   
新浪财经-行情中心-环球市场-名称代码映射表
https://finance.sina.com.cn/stock/globalindex/quotes/UKX
:return: 名称代码映射表
:rtype: pandas.DataFrame
indexu   代码)orientcolumnsu   指数名称T)inplace)r   r   	from_dictr   r   namereset_index)temp_dfs    r	   index_global_name_tabler      sJ     ll$$$Wxj % G (GMM%Nr   c                D    V ^8  d   QhR\         R\        P                  /# )r   symbolr   )strr   r   )r   s   "r	   r
   r
      s     , ,3 ,2<< ,r   c                   RpR\         V ,          RR/p\        P                  ! WR7      pVP                  4       p\        P
                  ! VR,          R,          4      pVP                  RR	R
RRRRRRRRR/RR7       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
  
新浪财经-行情中心-环球市场-历史行情
https://finance.sina.com.cn/stock/globalindex/quotes/UKX
:param symbol: 指数名称；可以通过 ak.index_global_name_table() 获取
:type symbol: str
:return: 环球市场历史行情
:rtype: pandas.DataFrame
z'https://gi.finance.sina.com.cn/hq/dailyr   num10000)urlparamsresultdataddateoopenhhighllowcclosevvolumeT)r   r   coerce)errors)r!   r#   r%   r'   r)   r+   )r   requestsgetjsonr   r   renameto_datetimedtr!   
to_numeric)r   r   r   r	data_jsonr   s   &     r	   index_global_hist_sinar7      sD    4C.v6wF 	,AIll9X.v67GNN
   
 	
	G nnWV_XFIINNGFOmmGFOHEGFOmmGFOHEGFO]]75>(CGEN}}WW%5hGGGgh&7IGHNr   __main__u   瑞士股票指数)r   )OMX)__doc__pandasr   r.   akshare.index.consr   r   r7   __name__index_global_name_table_dfprintindex_global_hist_sina_df r   r	   <module>rB      sV      ;,^ z!8!:	
$% 6>R S	
#$ r   