+
    Ȝi                         R t ^ RIt^ RItR	R R llt]R8X  d6   ]! RR7      t]! ]4       ]! RR7      t]! ]4       ]! RR7      t]! ]4       R# R# )
uT  
Date: 2025/5/3
Desc: 义乌小商品指数
目前可以通过这些接口直接请求到 JSON 数据
周价格指数：https://apiserver.chinagoods.com/yiwuindex/v1/active/industry/class/history/piweek?gcCode=
月价格指数：https://apiserver.chinagoods.com/yiwuindex/v1/active/industry/class/history/month?gcCode=
月景气指数：https://apiserver.chinagoods.com/yiwuindex/v1/active/industry/class/history/bi?gcCode=
上涨：https://apiserver.chinagoods.com/yiwuindex/v1/active/industry/class/get/rise
下跌：https://apiserver.chinagoods.com/yiwuindex/v1/active/industry/class/get/drop
N   月景气指数c                D    V ^8  d   QhR\         R\        P                  /# )   symbolreturn)strpd	DataFrame)formats   "_/Users/mibo/.openclaw/workspace/.venv-ak/lib/python3.14/site-packages/akshare/index/index_yw.py__annotate__r      s"     C CS C C    c                   ^ RI pVP                  VP                  P                  4       V R8X  Ed1   Rp\        P
                  ! VRR7      pVP                  4       p\        P                  ! VR,          4      pV. R"O,          p. R#OVn	        \        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&   VP                  R.RRR7       V# RRRR/pRW`,           R2p\        P
                  ! VRR7      pVP                  4       pRRRRRRRRRRRR /p\        P                  ! VR,          4      pVP                   Uu. uF  qV,          NK  	  upVn	        \        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P                  R.RRR!7       V# u upi )$u   
义乌小商品指数
https://www.ywindex.com/Home/Product/index/
:param symbol: choice of {"周价格指数", "月价格指数", "月景气指数"}
:type symbol: str
:return: 指数结果
:rtype: pandas.DataFrame
Nr   zVhttps://apiserver.chinagoods.com/yiwuindex/v1/active/industry/class/history/bi?gcCode=F)verifydataindextimeno   期数   景气指数   规模指数   效益指数   市场信心指数coerce)errorsT)inplaceignore_index   周价格指数piweek   月价格指数monthzLhttps://apiserver.chinagoods.com/yiwuindex/v1/active/industry/class/history/z?gcCode=totalpriceindexu   价格指数stockdealpriceindexu   场内价格指数netdealpriceindexu   网上价格指数orderdealpriceindexu   订单价格指数outdealpriceindexu   出口价格指数)byr   r   )r   
totalindex
scopeindexbenifitindexconfidentindex)r   r   r   r   r   )urllib3disable_warnings
exceptionsInsecureRequestWarningrequestsgetjsonr   r	   columnsto_datetimedtdate
to_numericsort_values)	r   r)   urlr	data_jsontemp_df
symbol_mapcolumns_namenames	   &        r   index_ywr=      s    W//FFG""fLLU+FFH	,,y01
 kNN78+<XNQQVV"$--0GPX"Y"$--0GPX"Y"$--0GPX"Y(*()()
$% 	XJ4H'3DgN
\]g]o\ppxyLLU+FFH	8~!#7!5!#7!5
 ,,y01:A//J/$--/JNN78+<XNQQVV"$--0GPX"Y(*()()
$% )+()()
$% )+()()
$% )+()()
$% 	z4dK! Ks   K%__main__r   )r   r   )r   )__doc__pandasr   r-   r=   __name__index_yw_dfprint r   r   <module>rE      sa   	  CL z"34K	+"34K	+"34K	+ r   