+
    Ȝi                     ^    R t ^ RIt^ RItRR R llt]R8X  d   ]! RR7      t]! ]4       R# R# )u{   
Date: 2024/12/26 18:30
Desc: 商品现货价格指数
https://finance.sina.com.cn/futuremarket/spotprice.shtml#titlePos_0
N   波罗的海干散货指数c                D    V ^8  d   QhR\         R\        P                  /# )   symbolreturn)strpd	DataFrame)formats   "a/Users/mibo/.openclaw/workspace/.venv-ak/lib/python3.14/site-packages/akshare/index/index_spot.py__annotate__r      s      s r||     c                l   RpRRRRRR/pRW ,          R	R
/p\         P                  ! WR7      pRVn        VP                  4       p\        P
                  ! VR,          R,          R,          4      pV. RO,          p. ROVn        \        P                  ! VR,          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&   VP                  RRR7       V# )u#  
新浪财经-商品现货价格指数
https://finance.sina.com.cn/futuremarket/spotprice.shtml#titlePos_0
:param symbol: choice of {"波罗的海干散货指数", "钢坯价格指数", "澳大利亚粉矿价格"}
:type symbol: str
:return: 商品现货价格指数
:rtype: pandas.DataFrame
z[https://stock.finance.sina.com.cn/futures/api/openapi.php/GoodsIndexService.get_goods_indexr   BDIu   钢坯价格指数GPu   澳大利亚粉矿价格PBr   table0)paramsgbkresultdata   日期   指数	   涨跌额	   涨跌幅z%Y-%m-%dcoerce)r
   errors)r   T)inplaceignore_index)opendatepricezdezdf)r   r   r   r   )requestsgetencodingjsonr   r	   columnsto_datetimedtdate
to_numericdropna)r   urlsymbol_url_dictr   r	data_jsontemp_dfs   &      r   
spot_goodsr3      s    hC%ud"DO
 /#>FS(AAJIll9X.v6v>?G9:GDGO*Xb H gh&7IGH==)=hOGK==)=hOGKNN4dN3Nr   __main__)r   )r   )__doc__pandasr   r$   r3   __name__spot_goods_dfprint r   r   <module>r;      s:     @ z&CDM	- r   