+
    Ȝi                        R t ^ RIt^ RIt^ RIHt R R ltR R ltR R ltR	 R
 lt	R R lt
R R ltR R ltR R ltR R ltRIR R lltRJR R lltRKR R lltR  R! ltR" R# ltRLR& R' lltRMR* R+ lltR, R- ltRNR. R/ lltROR1 R2 llt]R38X  Ed   ]! 4       t]! ]4       ]! 4       t]! ]4       ]! 4       t]! ]4       ]	! 4       t]! ]4       ]
! 4       t]! ]4       ]! 4       t ]! ] 4       ]! 4       t!]! ]!4       ]! 4       t"]! ]"4       ]! 4       t#]! ]#4       ]! 4       t$]! ]$4       ]! R4RR5R6R7R87      t%]! ]%4       ]! R9R)R:7      t&]! ]&4       ]! RR;7      t']! ]'4       ]! R$RRR%RR87      t(]! ](4       ]! R$RRR%R<R87      t)]! ])4       ]! R$RRR%R7R87      t*]! ]*4       ]! 4       t+]! ]+4       ]! R=RR>R?R<R87      t,]! ],4       ]! 4       t]! ]4       ]! R(R;7      t-]! ]-4       ]! 4       t+]! ]+4       ]! R=R;7      t.]! ].4       ]! R0R;7      t.]! ].4       ]! R@RARBRR7RC7      t&]! ]&4       ]! RDRRERFR7R87      t%]! ]%4       ]! R(R)RRARGRH7      t-]! ]-4       ]! 4       t"]! ]"4       R# R# )Pug   
Date: 2025/3/10 18:00
Desc: 东方财富网-行情首页-沪深京 A 股
https://quote.eastmoney.com/
N)fetch_paginated_datac                8    V ^8  d   QhR\         P                  /#    returnpd	DataFrame)formats   "l/Users/mibo/.openclaw/workspace/.venv-ak/lib/python3.14/site-packages/akshare/stock_feature/stock_hist_em.py__annotate__r           j jBLL j    c                 j   Rp RRRRRRRRRR	R
RRRRRRRRR/
p\        W4      p. RNRNRNRNRNRNRNRNRNRNRNRNRNRNR NR!NR"NR#NR$NR%NR&NR'NR(NR)NR*NR+NR+NR+NR+NR+NR+NR+NVn        VP                  RR,/R-R.7       V. R1O,          p\        P                  ! VR,          R/R07      VR&   \        P                  ! VR,          R/R07      VR&   \        P                  ! VR,          R/R07      VR&   \        P                  ! VR,          R/R07      VR&   \        P                  ! VR,          R/R07      VR&   \        P                  ! VR,          R/R07      VR&   \        P                  ! VR!,          R/R07      VR!&   \        P                  ! VR",          R/R07      VR"&   \        P                  ! VR#,          R/R07      VR#&   \        P                  ! VR$,          R/R07      VR$&   \        P                  ! VR,          R/R07      VR&   \        P                  ! VR,          R/R07      VR&   \        P                  ! VR,          R/R07      VR&   \        P                  ! VR(,          R/R07      VR(&   \        P                  ! VR%,          R/R07      VR%&   \        P                  ! VR&,          R/R07      VR&&   \        P                  ! VR',          R/R07      VR'&   \        P                  ! VR,          R/R07      VR&   \        P                  ! VR),          R/R07      VR)&   \        P                  ! VR*,          R/R07      VR*&   V# )2u   
东方财富网-沪深京 A 股-实时行情
https://quote.eastmoney.com/center/gridlist.html#hs_a_board
:return: 实时行情
:rtype: pandas.DataFrame
/https://82.push2.eastmoney.com/api/qt/clist/getpn1pz100ponput bd1d9ddb04089700cf9c27f6f7426281fltt2invtfidf12fsz1m:0 t:6,m:0 t:80,m:1 t:2,m:1 t:23,m:0 t:81 s:2048fieldsnf1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f12,f13,f14,f15,f16,f17,f18,f20,f21,f23,f24,f25,f22,f11,f62,f128,f136,f115,f152index_	   最新价	   涨跌幅	   涨跌额	   成交量	   成交额   振幅	   换手率   市盈率-动态   量比   5分钟涨跌   代码   名称   最高   最低   今开   昨收	   总市值   流通市值   涨速	   市净率   60日涨跌幅   年初至今涨跌幅-   序号T)columnsinplacecoerceerrorsr:   r-   r.   r#   r$   r%   r&   r'   r(   r/   r0   r1   r2   r+   r)   r*   r6   r3   r4   r5   r,   r7   r8   )r   r;   renamer   
to_numericurlparamstemp_dfs      r   stock_zh_a_spot_emrG      s    <Ccecc0uA >F #3/G!!! 	! 		!
 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	!  	!!" 	#!$ 	%!& 	'!( 	)!* 	+!, 	-!. 	/!0 	1!2 	 3!4 	5!6 	7!8 	9!: 	;!< 	=!> 	?!@ 	A!GOD NNGX.N=	
G6 ==)=hOGK==)=hOGK==)=hOGK==)=hOGK==)=hOGKgh&7IGHgh&7IGHgh&7IGHgh&7IGHgh&7IGHgh&7IGH==)=hOGK"$--8J0KT\"]G==)=hOGK==)=hOGK mmGN,CHUGNgh&7IGH!}}W_-EhWGO "g6F.GPX YG')}}'((G#$ Nr   c                8    V ^8  d   QhR\         P                  /# r   r   )r
   s   "r   r   r   |        i iBLL ir   c                 @   Rp RRRRRRRRRR	R
RRRRRRRRR/
p\        W4      p. RNRNRNRNRNRNRNRNRNRNRNRNRNRNR NR!NR"NR#NR$NR%NR&NR'NR(NR)NR*NR+NR+NR+NR+NR+NR+NR+NVn        V. R.O,          p\        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&   \        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$&   \        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%&   \        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   
东方财富网-沪 A 股-实时行情
https://quote.eastmoney.com/center/gridlist.html#hs_a_board
:return: 实时行情
:rtype: pandas.DataFrame
r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   zm:1 t:2,m:1 t:23r   r    r:   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r=   r>   r@   r   r;   r   rB   rC   s      r   stock_sh_a_spot_emrL   |   s    <Ccecc0u  2F #3/G!!! 	! 		!
 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	!  	!!" 	#!$ 	%!& 	'!( 	)!* 	+!, 	-!. 	/!0 	1!2 	 3!4 	5!6 	7!8 	9!: 	;!< 	=!> 	?!@ 	A!GOD 	
G6 ==)=hOGK==)=hOGK==)=hOGK==)=hOGK==)=hOGKgh&7IGHgh&7IGHgh&7IGHgh&7IGHgh&7IGHgh&7IGH==)=hOGK"$--8J0KT\"]G==)=hOGK==)=hOGK mmGN,CHUGNgh&7IGH!}}W_-EhWGO "g6F.GPX YG')}}'((G#$ Nr   c                8    V ^8  d   QhR\         P                  /# r   r   )r
   s   "r   r   r      rI   r   c                 @   Rp RRRRRRRRRR	R
RRRRRRRRR/
p\        W4      p. RNRNRNRNRNRNRNRNRNRNRNRNRNRNR NR!NR"NR#NR$NR%NR&NR'NR(NR)NR*NR+NR+NR+NR+NR+NR+NR+NVn        V. R.O,          p\        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&   \        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$&   \        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%&   \        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   
东方财富网-深 A 股-实时行情
https://quote.eastmoney.com/center/gridlist.html#hs_a_board
:return: 实时行情
:rtype: pandas.DataFrame
r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   zm:0 t:6,m:0 t:80r   r    r:   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r=   r>   r@   rK   rC   s      r   stock_sz_a_spot_emrO      s    <Ccecc0u  .F #3/G!!! 	! 		!
 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	!  	!!" 	#!$ 	%!& 	'!( 	)!* 	+!, 	-!. 	/!0 	1!2 	 3!4 	5!6 	7!8 	9!: 	;!< 	=!> 	?!@ 	A!GOD 	
G6 ==)=hOGK==)=hOGK==)=hOGK==)=hOGK==)=hOGKgh&7IGHgh&7IGHgh&7IGHgh&7IGHgh&7IGHgh&7IGH==)=hOGK"$--8J0KT\"]G==)=hOGK==)=hOGK mmGN,CHUGNgh&7IGH!}}W_-EhWGO "g6F.GPX YG')}}'((G#$ Nr   c                8    V ^8  d   QhR\         P                  /# r   r   )r
   s   "r   r   r   T  rI   r   c                 @   Rp RRRRRRRRRR	R
RRRRRRRRR/
p\        W4      p. RNRNRNRNRNRNRNRNRNRNRNRNRNRNR NR!NR"NR#NR$NR%NR&NR'NR(NR)NR*NR+NR+NR+NR+NR+NR+NR+NVn        V. R.O,          p\        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&   \        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$&   \        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%&   \        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   
东方财富网-京 A 股-实时行情
https://quote.eastmoney.com/center/gridlist.html#hs_a_board
:return: 实时行情
:rtype: pandas.DataFrame
r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   zm:0 t:81 s:2048r   r    r:   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r=   r>   r@   rK   rC   s      r   stock_bj_a_spot_emrR   T  s    <Ccecc0u /F #3/G!!! 	! 		!
 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	!  	!!" 	#!$ 	%!& 	'!( 	)!* 	+!, 	-!. 	/!0 	1!2 	 3!4 	5!6 	7!8 	9!: 	;!< 	=!> 	?!@ 	A!GOD 	
G6 ==)=hOGK==)=hOGK==)=hOGK==)=hOGK==)=hOGKgh&7IGHgh&7IGHgh&7IGHgh&7IGHgh&7IGHgh&7IGH==)=hOGK"$--8J0KT\"]G==)=hOGK==)=hOGK mmGN,CHUGNgh&7IGH!}}W_-EhWGO "g6F.GPX YG')}}'((G#$ Nr   c                8    V ^8  d   QhR\         P                  /# r   r   )r
   s   "r   r   r     s     n nR\\ nr   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\        W4      p. RNRNRNRNRNRNRNRNRNRNRNR NR!NRNR"NR#NR$NR%NR&NR'NR(NR)NR*NR+NR,NR-NR.NR.NR.NR.NR.NR.NR.NVn        V. R3O,          p\        P                  ! VR,          R/R07      VR&   \        P                  ! VR,          R/R07      VR&   \        P                  ! VR,          R/R07      VR&   \        P                  ! VR,          R/R07      VR&   \        P                  ! VR,          R/R07      VR&   \        P                  ! VR,          R/R07      VR&   \        P                  ! VR#,          R/R07      VR#&   \        P                  ! VR$,          R/R07      VR$&   \        P                  ! VR%,          R/R07      VR%&   \        P                  ! VR&,          R/R07      VR&&   \        P                  ! VR,          R/R07      VR&   \        P                  ! VR,          R/R07      VR&   \        P                  ! VR,          R/R07      VR&   \        P                  ! VR*,          R/R07      VR*&   \        P                  ! VR',          R/R07      VR'&   \        P                  ! VR(,          R/R07      VR(&   \        P                  ! VR),          R/R07      VR)&   \        P                  ! VR ,          R/R07      VR &   \        P                  ! VR+,          R/R07      VR+&   \        P                  ! VR,,          R/R07      VR,&   \        P                  ! VR-,          R1R27      P
                  P                  VR-&   V# )4u   
东方财富网-新股-实时行情
https://quote.eastmoney.com/center/gridlist.html#newshares
:return: 实时行情
:rtype: pandas.DataFrame
r   r   r   r   r   r   r   r   r   r   r   r   wbp2u
|0|0|0|webr   f26r   zm:0 f:8,m:1 f:8r   zrf1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f12,f13,f14,f15,f16,f17,f18,f20,f21,f23,f24,f25,f26,f22,f11,f62,f128,f136,f115,f152r:   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8      上市日期r9   r=   r>   z%Y%m%d)r
   )r:   r-   r.   r#   r$   r%   r&   r'   r(   r/   r0   r1   r2   r+   r)   r*   r6   rX   r3   r4   r5   r,   r7   r8   )r   r;   r   rB   to_datetimedtdaterC   s      r   stock_new_a_spot_emr\     s    <Ccecc0u 2F #3/G""" 	" 		"
 	" 	" 	" 	" 	" 	" 	" 	" 	" 	" 	"  	!"" 	#"$ 	%"& 	'"( 	)"* 	+", 	-". 	/"0 	1"2 	 3"4 	5"6 	7"8 	9": 	;"< 	="> 	?"@ 	A"B 	C"GOF 	
G8 ==)=hOGK==)=hOGK==)=hOGK==)=hOGK==)=hOGKgh&7IGHgh&7IGHgh&7IGHgh&7IGHgh&7IGHgh&7IGH==)=hOGK"$--8J0KT\"]G==)=hOGK==)=hOGK mmGN,CHUGNgh&7IGH!}}W_-EhWGO "g6F.GPX YG')}}'((G#$ !nnW^-DXVYY^^GNNr   c                8    V ^8  d   QhR\         P                  /# r   r   )r
   s   "r   r   r   1  r   r   c                 D   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\        W4      p. RNRNRNRNRNRNRNRNRNRNRNR NR!NRNR"NR#NR$NR%NR&NR'NR(NR)NR*NR+NR,NR-NR-NR-NR-NR-NR-NR-NVn        V. R0O,          p\        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&   \        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&&   \        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'&   \        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# )1u   
东方财富网-创业板-实时行情
https://quote.eastmoney.com/center/gridlist.html#gem_board
:return: 实时行情
:rtype: pandas.DataFrame
.https://7.push2.eastmoney.com/api/qt/clist/getr   r   r   r   r   r   r   r   r   r   r   rU   rV   r   r   r   zm:0 t:80r   r    r:   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r=   r>   r@   rK   rC   s      r   stock_cy_a_spot_emr`   1  s    ;Ccecc0uj 6F #3/G!!! 	! 		!
 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	!  	!!" 	#!$ 	%!& 	'!( 	)!* 	+!, 	-!. 	/!0 	1!2 	 3!4 	5!6 	7!8 	9!: 	;!< 	=!> 	?!@ 	A!GOD 	
G6 ==)=hOGK==)=hOGK==)=hOGK==)=hOGK==)=hOGKgh&7IGHgh&7IGHgh&7IGHgh&7IGHgh&7IGHgh&7IGH==)=hOGK"$--8J0KT\"]G==)=hOGK==)=hOGK mmGN,CHUGNgh&7IGH!}}W_-EhWGO "g6F.GPX YG')}}'((G#$ Nr   c                8    V ^8  d   QhR\         P                  /# r   r   )r
   s   "r   r   r     r   r   c                 D   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\        W4      p. RNRNRNRNRNRNRNRNRNRNRNR NR!NRNR"NR#NR$NR%NR&NR'NR(NR)NR*NR+NR,NR-NR-NR-NR-NR-NR-NR-NVn        V. R0O,          p\        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&   \        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&&   \        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'&   \        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# )1u   
东方财富网-科创板-实时行情
https://quote.eastmoney.com/center/gridlist.html#kcb_board
:return: 实时行情
:rtype: pandas.DataFrame
r_   r   r   r   r   r   r   r   r   r   r   r   rU   rV   r   r   r   zm:1 t:23r   r    r:   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r=   r>   r@   rK   rC   s      r   stock_kc_a_spot_emrc     s    ;Ccecc0uj :F #3/G!!! 	! 		!
 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	!  	!!" 	#!$ 	%!& 	'!( 	)!* 	+!, 	-!. 	/!0 	1!2 	 3!4 	5!6 	7!8 	9!: 	;!< 	=!> 	?!@ 	A!GOD 	
G6 ==)=hOGK==)=hOGK==)=hOGK==)=hOGK==)=hOGKgh&7IGHgh&7IGHgh&7IGHgh&7IGHgh&7IGHgh&7IGH==)=hOGK"$--8J0KT\"]G==)=hOGK==)=hOGK mmGN,CHUGNgh&7IGH!}}W_-EhWGO "g6F.GPX YG')}}'((G#$ Nr   c                8    V ^8  d   QhR\         P                  /# r   r   )r
   s   "r   r   r     s     > >2<< >r   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/ RRbRRbRRbRRbRRbRRbRRbR R!bR"RbR#R$bR%R&bRR'bR(RbR)R*bR+RbR,R-bp\        W4      pVP                  VR.7      pVP                  4        UUu. uF  w  rEVR/8w  g   K  VNK  	  pppW6,          pV. R2O,          p\        P                  ! VR,          R0R17      ^d,          VR&   \        P                  ! VR,          R0R17      ^d,          VR&   \        P                  ! VR$,          R0R17      ^d,          VR$&   \        P                  ! VR&,          R0R17      ^d,          VR&&   \        P                  ! VR',          R0R17      ^d,          VR'&   V# u uppi )3u   
东方财富网-行情中心-沪深京个股-AB股比价-全部AB股比价
https://quote.eastmoney.com/center/gridlist.html#ab_comparison
:return: 实时行情
:rtype: pandas.DataFrame
z,https://push2.eastmoney.com/api/qt/clist/getr   r   r   r   r   r   zm:1+b:BK0498,m:0+b:BK0498r   z?f201,f202,f203,f196,f200,f197,f152,f12,f13,f14,f1,f2,f4,f3,f199r   f199r   r   r   r   dectrU   rV   r!   r:   f1r9   f2
   最新价Bf3
   涨跌幅Bf4r   
   A股代码f13f14
   A股名称f152f196
   最新价Af197
   涨跌幅A   比价f200f201
   B股代码f202f203
   B股名称)r;   r"   r=   r>   )
r:   rz   r}   rj   rl   rn   rq   rt   rv   rw   )r   rA   itemsr   rB   )rD   rE   columns_maprF   keyvalue	list_names          r   stock_zh_ab_comparison_emr     s    9Cc)SvcecFc 	l 	l	
 	c 	| 	s 	| 	 	 	 	 	 	 	  	!K$ #3/Gnn[n1G)4):):)<M)<:3)<IM G	
G MM',*?QTWWGLMM',*?QTWWGLMM',*?QTWWGLMM',*?QTWWGLgh&7ICOGHN+ Ns   =E8E8c                8    V ^8  d   QhR\         P                  /# r   r   )r
   s   "r   r   r   L  rI   r   c                 @   Rp RRRRRRRRRR	R
RRRRRRRRR/
p\        W4      p. RNRNRNRNRNRNRNRNRNRNRNRNRNRNR NR!NR"NR#NR$NR%NR&NR'NR(NR)NR*NR+NR+NR+NR+NR+NR+NR+NVn        V. R.O,          p\        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&   \        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$&   \        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%&   \        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   
东方财富网- B 股-实时行情
https://quote.eastmoney.com/center/gridlist.html#hs_a_board
:return: 实时行情
:rtype: pandas.DataFrame
z/https://28.push2.eastmoney.com/api/qt/clist/getr   r   r   r   r   r   r   r   r   r   r   r   r   r   zm:0 t:7,m:1 t:3r   r    r:   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r=   r>   r@   rK   rC   s      r   stock_zh_b_spot_emr   L  s    <Ccecc0u ;F #3/G!!! 	! 		!
 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	!  	!!" 	#!$ 	%!& 	'!( 	)!* 	+!, 	-!. 	/!0 	1!2 	 3!4 	5!6 	7!8 	9!: 	;!< 	=!> 	?!@ 	A!GOD 	
G6 ==)=hOGK==)=hOGK==)=hOGK==)=hOGK==)=hOGKgh&7IGHgh&7IGHgh&7IGHgh&7IGHgh&7IGHgh&7IGH==)=hOGK"$--8J0KT\"]G==)=hOGK==)=hOGK mmGN,CHUGNgh&7IGH!}}W_-EhWGO "g6F.GPX YG')}}'((G#$ Nr   000001daily19700101 c                    V ^8  d   QhR\         R\         R\         R\         R\         R\        R\        P                  /# )r   symbolperiod
start_dateend_dateadjusttimeoutr   )strfloatr   r	   )r
   s   "r   r   r     s[     W WWW W 	W
 W W \\Wr   c                <   V P                  R4      '       d   ^M^ pRRRRRR/pRR	R
RRR/pRp	RRRRRRRW,          RWt,          RV RV  2RVRV/p
\        P                  ! WVR7      pVP                  4       pVR,          '       d   VR,          R,          '       g   \        P
                  ! 4       # \        P
                  ! VR,          R,           Uu. uF  qP                  R4      NK  	  up4      pWR&   . 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$&   \        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)&   \        P                  ! VR*,          R+R,7      VR*&   V. R.O,          pV# u upi )/u=  
东方财富网-行情首页-沪深京 A 股-每日行情
https://quote.eastmoney.com/concept/sh603777.html?from=classic
:param symbol: 股票代码
:type symbol: str
:param period: choice of {'daily', 'weekly', 'monthly'}
:type period: str
:param start_date: 开始日期
:type start_date: str
:param end_date: 结束日期
:type end_date: str
:param adjust: choice of {"qfq": "前复权", "hfq": "后复权", "": "不复权"}
:type adjust: str
:param timeout: choice of None or a positive float number
:type timeout: float
:return: 每日行情
:rtype: pandas.DataFrame
6qfqr   hfqr   r   0r   101weekly102monthly1035https://push2his.eastmoney.com/api/qt/stock/kline/getfields1f1,f2,f3,f4,f5,f6fields2z0f51,f52,f53,f54,f55,f56,f57,f58,f59,f60,f61,f116r    7eea3edcaed734bea9cbfc24409ed989kltfqtsecid.begendrE   r   dataklines,   股票代码   日期   开盘   收盘r/   r0   r&   r'   r(   r$   r%   r)   r=   r>   )r   r   r   r/   r0   r&   r'   r(   r$   r%   r)   r   )r   r   r   r   r/   r0   r&   r'   r(   r$   r%   r)   )
startswithrequestsgetjsonr   r	   splitr;   rY   rZ   r[   rB   )r   r   r   r   r   r   market_codeadjust_dictperiod_dictrD   rE   r	data_jsonitemrF   s   &&&&&&         r   stock_zh_a_histr     sS   4 ((--!1K#uc2s3KE8UIuEK
AC&E0{"{"K=&*zx	F 	S9AIf)F"3H"="=||~ll	&8I(8ST8SJJsO8STUG$NGO wx'8JMMRRGHgh&7IGHgh&7IGHgh&7IGHgh&7IGH==)=hOGK==)=hOGKgh&7IGH==)=hOGK==)=hOGK==)=hOGK	
G  NW Us   J5c                t    V ^8  d   QhR\         R\         R\         R\         R\         R\        P                  /# )r   r   r   r   r   r   r   r   r   r	   )r
   s   "r   r   r     sP     } }}} } 	}
 } \\}r   c                   V P                  R4      '       d   ^M^ pRRRRRR/pVR8X  Ed   RpR	R
RRRRRRRRRV RV  2/p\        P                  ! V^VR7      p	V	P                  4       p
\        P
                  ! V
R,          R,           Uu. uF  qP                  R4      NK  	  up4      p. R1OVn        \        P                  ! VR,          4      Vn	        WV pVP                  R R R!7       \        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&   \        P                  ! VR,          R"R#7      VR&   \        P                  ! VR,          R"R#7      VR&   \        P                  ! VR,          4      P                  \        4      VR&   V# R$pR	R%RR&RRR'VR(Wd,          RV RV  2R)RR*R+/p\        P                  ! V^VR7      p	V	P                  4       p
\        P
                  ! V
R,          R,,           Uu. uF  qP                  R4      NK  	  up4      p. R2OVn        \        P                  ! VR,          4      Vn	        WV pVP                  R R R!7       \        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&   \        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R0,          R"R#7      VR0&   \        P                  ! VR,          4      P                  \        4      VR&   V. R3O,          pV# u upi u upi )4u  
东方财富网-行情首页-沪深京 A 股-每日分时行情
https://quote.eastmoney.com/concept/sh603777.html?from=classic
:param symbol: 股票代码
:type symbol: str
:param start_date: 开始日期
:type start_date: str
:param end_date: 结束日期
:type end_date: str
:param period: choice of {'1', '5', '15', '30', '60'}
:type period: str
:param adjust: choice of {'', 'qfq', 'hfq'}
:type adjust: str
:return: 每日分时行情
:rtype: pandas.DataFrame
r   r   r   r   r   r   r   7https://push2his.eastmoney.com/api/qt/stock/trends2/getr   *f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13r   f51,f52,f53,f54,f55,f56,f57,f58r   r   ndaysr   iscrr   r   r   rE   r   trendsr      时间r   r   r/   r0   r&   r'      均价Tdropr<   r=   r>   r   r   +f51,f52,f53,f54,f55,f56,f57,f58,f59,f60,f61r   r   r   r   20500000r   r(   r$   r%   r)   )r   r   r   r/   r0   r&   r'   r   r   r   r   r/   r0   r&   r'   r(   r$   r%   r)   r   r   r   r/   r0   r$   r%   r&   r'   r(   r)   )r   r   r   r   r   r	   r   r;   rY   r!   reset_indexrB   astyper   )r   r   r   r   r   r   
adjust_maprD   rE   r   r   r   rF   s   &&&&&        r   stock_zh_a_hist_min_emr     s   . ((--!1K
CssJ
 }GC84SC}AfX.
 LLb8FFH	,,)26):8)DE)DZZ_)DE
	
 wx'89X.t4MM'(*;HMMM'(*;HMMM'(*;HMMM'(*;HM!}}W[-A(S!}}W[-A(SMM'(*;HMNN78+<=DDSIE*D46:%}AfX.3:	
 LLb8FFH	,,)26):8)DE)DZZ_)DE

 wx'89X.t4MM'(*;HMMM'(*;HMMM'(*;HMMM'(*;HM!}}W[-A(S!}}W[-A(SMM'(*;HM!}}W[-A(S!}}W[-A(S!}}W[-A(SNN78+<=DDSI
 g FN Fs   Q1;Q6c                \    V ^8  d   QhR\         R\         R\         R\        P                  /# )r   r   
start_timeend_timer   r   )r
   s   "r   r   r     s4     4 444 4 \\	4r   c                   V P                  R4      '       d   ^M^ pRpRRRRRRR	RR
RRV RV  2/p\        P                  ! V^VR7      pVP                  4       p\        P
                  ! VR,          R,           Uu. uF  qP                  R4      NK  	  up4      p	. ROV	n        \        P                  ! V	R,          4      V	n	        V	P                  ^ ,          P                  4       P                  4       p
WR,           V,           V
R,           V,            p	V	P                  RRR7       \        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&   \        P                  ! V	R,          RR7      V	R&   \        P                  ! V	R,          RR7      V	R&   \        P                  ! V	R,          4      P                  \        4      V	R&   V	# u upi ) uo  
东方财富网-行情首页-沪深京 A 股-每日分时行情包含盘前数据
https://quote.eastmoney.com/concept/sh603777.html?from=classic
:param symbol: 股票代码
:type symbol: str
:param start_time: 开始时间
:type start_time: str
:param end_time: 结束时间
:type end_time: str
:return: 每日分时行情包含盘前数据
:rtype: pandas.DataFrame
r   z4https://push2.eastmoney.com/api/qt/stock/trends2/getr   r   r   r   r   r   r   isccar   r   r   r   r   r   r   r   r   r   r/   r0   r&   r'   r#    Tr   r=   r>   r   r   r   r/   r0   r&   r'   r#   )r   r   r   r   r   r	   r   r;   rY   r!   r[   	isoformatr   rB   r   r   )r   r   r   r   rD   rE   r   r   r   rF   date_formats   &&&        r   stock_zh_a_hist_pre_min_emr     s   " ((--!1K
@C?4K=&*F 	S"V4AIll	&8I(8ST8SJJsO8STUG	GO NN78#45GM--"'')335KC'*4{S7H87STGT40gh&7IGHgh&7IGHgh&7IGHgh&7IGH==)=hOGK==)=hOGK==)=hOGKwx'89@@EGHN/ Us   <Ic                8    V ^8  d   QhR\         P                  /# r   r   )r
   s   "r   r   r     s     R R",, Rr   c                    Rp RRRRRRRRRR	R
RRRRRRRRR/
p\        W4      p. RNRNRNRNRNRNRNRNRNRNRNRNRNRNRNR NR!NR"NR#NRNRNRNR$NRNRNRNRNRNRNRNRNRNVn        V. R'O,          p\        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"&   \        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://quote.eastmoney.com/center/gridlist.html#hk_stocks
:return: 港股-实时行情
:rtype: pandas.DataFrame
/https://72.push2.eastmoney.com/api/qt/clist/getr   r   r   r   r   r   r   r   r   r   r   r   r   r   z'm:128 t:3,m:128 t:4,m:128 t:1,m:128 t:2r   r    r:   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r-   r.   r/   r0   r1   r2   r6   r=   r>   r:   r-   r.   r#   r%   r$   r1   r/   r0   r2   r&   r'   rK   rC   s      r   stock_hk_spot_emr     s    <Ccecc0u7 :F #3/G!!! 	! 		!
 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	!  	!!" 	#!$ 	%!& 	'!( 	)!* 	+!, 	-!. 	/!0 	1!2 	3!4 	5!6 	7!8 	9!: 	;!< 	=!> 	?!@ 	A!GOD 	
G  gh&7IGH==)=hOGK==)=hOGK==)=hOGKgh&7IGHgh&7IGHgh&7IGHgh&7IGH==)=hOGK==)=hOGKNr   c                8    V ^8  d   QhR\         P                  /# r   r   )r
   s   "r   r   r     s     R RR\\ Rr   c                    Rp RRRRRRRRRR	R
RRRRRRRRR/
p\        W4      p. RNRNRNRNRNRNRNRNRNRNRNRNRNRNRNR NR!NR"NR#NRNRNRNR$NRNRNRNRNRNRNRNRNRNVn        V. R'O,          p\        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"&   \        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://quote.eastmoney.com/center/gridlist.html#hk_mainboard
:return: 港股-主板-实时行情
:rtype: pandas.DataFrame
z/https://81.push2.eastmoney.com/api/qt/clist/getr   r   r   r   r   r   r   r   r   r   r   r   r   r   z	m:128 t:3r   r    r:   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r-   r.   r/   r0   r1   r2   r6   r=   r>   r   rK   rC   s      r   stock_hk_main_board_spot_emr     s    <Ccecc0uk :F #3/G!!! 	! 		!
 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	!  	!!" 	#!$ 	%!& 	'!( 	)!* 	+!, 	-!. 	/!0 	1!2 	3!4 	5!6 	7!8 	9!: 	;!< 	=!> 	?!@ 	A!GOD 	
G  gh&7IGH==)=hOGK==)=hOGK==)=hOGKgh&7IGHgh&7IGHgh&7IGHgh&7IGH==)=hOGK==)=hOGKNr   0059322220101c                t    V ^8  d   QhR\         R\         R\         R\         R\         R\        P                  /# r   r   r   r   r   r   r   r   )r
   s   "r   r   r   s  sP     E EEE E 	E
 E \\Er   c                   RRRRRR/pRRR	R
RR/pRpRRV  2RRRRRWa,          RWT,          RRRR/p\         P                  ! V^VR7      p	V	P                  4       p
\        P                  ! V
R,          R,           Uu. uF  qP                  R4      NK  	  up4      pVP                  '       d   \        P                  ! 4       # . R-OVn        \        P                  ! VR,          R)R*7      Vn	        WV pVP                  '       d   \        P                  ! 4       # VP                  R+R+R,7       \        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#&   \        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(&   \        P                  ! VR,          R)R*7      P                  P                  VR&   V# u upi ).u  
东方财富网-行情-港股-每日行情
https://quote.eastmoney.com/hk/08367.html
:param symbol: 港股-每日行情
:type symbol: str
:param period: choice of {'daily', 'weekly', 'monthly'}
:type period: str
:param start_date: 开始日期
:type start_date: str
:param end_date: 结束日期
:type end_date: str
:param adjust: choice of {"qfq": "1", "hfq": "2", "": "不复权"}
:type adjust: str
:return: 每日行情
:rtype: pandas.DataFrame
r   r   r   r   r   r   r   r   r   r   r   r   z8https://33.push2his.eastmoney.com/api/qt/stock/kline/getr   116.r   r   r   r   r   r   r   r   lmt1000000r   r   r   r   r   r   r   r/   r0   r&   r'   r(   r$   r%   r)   r=   r>   Tr<   r   r   r   r   r/   r0   r&   r'   r(   r$   r%   r)   )r   r   r   r   r	   r   emptyr;   rY   r!   r   rB   rZ   r[   )r   r   r   r   r   r   r   rD   rE   r   r   r   rF   s   &&&&&        r   stock_hk_histr   s  sR   . #uc2s3KE8UIuEK
DC4x&@{"{"zyF 	S"V4AIll	&8I(8ST8SJJsO8STUG}}}||~GO NN78#4XFGM*G}}}||~40gh&7IGHgh&7IGHgh&7IGHgh&7IGH==)=hOGK==)=hOGKgh&7IGH==)=hOGK==)=hOGK==)=hOGKwx'8JMMRRGHNA Us   =J;01611r   c                t    V ^8  d   QhR\         R\         R\         R\         R\         R\        P                  /# )r   r   r   r   r   r   r   r   )r
   s   "r   r   r     sP     { {{{ { 	{
 { \\{r   c                   RRRRRR/pVR8X  Ed   RpRR	R
RRRRRRRV  2/p\         P                  ! V^VR7      pVP                  4       p	\        P                  ! V	R,          R,           U
u. uF  qP                  R4      NK  	  up
4      p. R0OVn        \        P                  ! VR,          4      Vn        WV pVP                  RRR7       \        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&   \        P                  ! VR,          RR 7      VR&   \        P                  ! VR,          RR 7      VR&   \        P                  ! VR,          4      P                  \        4      VR&   V# R!pRR"R
R#R$R%R&VR'WR,          RRV  2R(RR)R*/p\         P                  ! V^VR7      pVP                  4       p	\        P                  ! V	R,          R+,           U
u. uF  qP                  R4      NK  	  up
4      p. R1OVn        \        P                  ! VR,          4      Vn        WV pVP                  RRR7       \        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&   \        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/&   \        P                  ! VR,          4      P                  \        4      VR&   V. R2O,          pV# u up
i u up
i )3u  
东方财富网-行情-港股-每日分时行情
https://quote.eastmoney.com/hk/00948.html
:param symbol: 股票代码
:type symbol: str
:param period: choice of {'1', '5', '15', '30', '60'}
:type period: str
:param adjust: choice of {'', 'qfq', 'hfq'}
:type adjust: str
:param start_date: 开始日期
:type start_date: str
:param end_date: 结束日期
:type end_date: str
:return: 每日分时行情
:rtype: pandas.DataFrame
r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r/   r0   r&   r'   r#   Tr   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	   r   r;   rY   r!   r   rB   r   r   )r   r   r   r   r   r   rD   rE   r   r   r   rF   s   &&&&&       r   stock_hk_hist_min_emr     s   0 	CssJ
 }GC8CStF8_
 LLb8FFH	,,)26):8)DE)DZZ_)DE
	
 wx'89X.t4MM'(*;HMMM'(*;HMMM'(*;HMMM'(*;HM!}}W[-A(S!}}W[-A(S!}}W[-A(SNN78+<=DDSIE*D46:%tF8_3:	
 LLb8FFH	,,)26):8)DE)DZZ_)DE

 wx'89X.t4MM'(*;HMMM'(*;HMMM'(*;HMMM'(*;HM!}}W[-A(S!}}W[-A(SMM'(*;HM!}}W[-A(S!}}W[-A(S!}}W[-A(SNN78+<=DDSI
 Ng FN Fs   -QQc                8    V ^8  d   QhR\         P                  /# r   r   )r
   s   "r   r   r   9  s     \ \",, \r   c                    Rp RRRRRRRRRR	R
RRRRRRRRR/
p\        W4      p. RNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNR NR!NR"NR#NRNRNRNRNRNRNRNRNR$NRNRNRNRNRNVn        VR,          P                  \        4      R%,           VR,          ,           VR&&   V. R)O,          p\        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&   \        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&   \        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://quote.eastmoney.com/center/gridlist.html#us_stocks
:return: 美股-实时行情; 延迟 15 min
:rtype: pandas.DataFrame
r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   zm:105,m:106,m:107r   zvf1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f12,f13,f14,f15,f16,f17,f18,f20,f21,f23,f24,f25,f26,f22,f33,f11,f62,f128,f136,f115,f152r:   r"   r#   r$   r%   r&   r'   r(   r)   u   简称u   编码r.   	   最高价	   最低价	   开盘价	   昨收价r3   	   市盈率r   r-   r=   r>   )r:   r.   r#   r%   r$   r   r   r   r   r3   r   r&   r'   r(   r)   r-   )r   r;   r   r   r   rB   rC   s      r   stock_us_spot_emr   9  sG    <Ccecc0u! BF #3/G### 	# 		#
 	# 	# 	# 	# 	# 	# 	# 	# 	# 	# 	#  	!#" 	##$ 	%#& 	'#( 	)#* 	+#, 	-#. 	/#0 	1#2 	3#4 	5#6 	7#8 	9#: 	;#< 	=#> 	?#@ 	A#B 	C#D 	E#GOH  )005;gh>OOGH	
G( ==)=hOGK==)=hOGK==)=hOGK==)=hOGK==)=hOGK==)=hOGK==)=hOGK==)=hOGK==)=hOGK==)=hOGK==)=hOGKgh&7IGH==)=hOGKNr   c                t    V ^8  d   QhR\         R\         R\         R\         R\         R\        P                  /# r   r   )r
   s   "r   r   r     sP     C CCC C 	C
 C \\Cr   c                   RRRRRR/pRRR	R
RR/pRpRV  RRRRRWQ,          RWd,          RRRR/p\         P                  ! V^VR7      p	V	P                  4       p
V
R,          R,          '       g   \        P                  ! 4       # \        P                  ! V
R,          R,           Uu. uF  qP                  R4      NK  	  up4      p. R-OVn        \        P                  ! VR,          R(R)7      Vn        WV pVP                  R*R*R+7       \        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"&   \        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://quote.eastmoney.com/us/ENTX.html#fullScreenChart
:param symbol: 股票代码; 此股票代码需要通过调用 ak.stock_us_spot_em() 的 `代码` 字段获取
:type symbol: str
:param period: choice of {'daily', 'weekly', 'monthly'}
:type period: str
:param start_date: 开始日期
:type start_date: str
:param end_date: 结束日期
:type end_date: str
:param adjust: choice of {"qfq": "1", "hfq": "2", "": "不复权"}
:type adjust: str
:return: 每日行情
:rtype: pandas.DataFrame
r   r   r   r   r   r   r   r   r   r   r   r   z8https://63.push2his.eastmoney.com/api/qt/stock/kline/getr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r/   r0   r&   r'   r(   r$   r%   r)   r=   r>   Tr   )r<   ignore_indexr   )r   r   r   r   r	   r   r;   rY   r!   r   rB   sort_values)r   r   r   r   r   r   r   rD   rE   r   r   r   rF   s   &&&&&        r   stock_us_histr    s0   . E8UIuEK#uc2s3K
DCF8&@{"{"zyF 	S"V4AIVX&&||~ll	&8I(8ST8SJJsO8STUGGO NN78#4XFGM*G40gh&7IGHgh&7IGHgh&7IGHgh&7IGH==)=hOGK==)=hOGKgh&7IGH==)=hOGK==)=hOGK==)=hOGK
DtDN9 Us   &I5105.ATERc                \    V ^8  d   QhR\         R\         R\         R\        P                  /# )r   r   r   r   r   r   )r
   s   "r   r   r     s4     3 333 3 \\	3r   c                   RpRRRRRRRR	R
V P                  R4      ^ ,           RV P                  R4      ^,           2/p\        P                  ! W4^R7      pVP                  4       pVR,          R,          '       g   \        P
                  ! 4       # \        P
                  ! VR,          R,           Uu. uF  qwP                  R4      NK  	  up4      p. ROVn        \        P                  ! VR,          RR7      Vn        WV pVP                  RRR7       \        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&   \        P                  ! VR,          RR7      VR&   \        P                  ! VR,          RR7      VR&   \        P                  ! VR,          RR7      P                  \        4      VR&   V# u upi )u,  
东方财富网-行情首页-美股-每日分时行情
https://quote.eastmoney.com/us/ATER.html
:param symbol: 股票代码
:type symbol: str
:param start_date: 开始日期
:type start_date: str
:param end_date: 结束日期
:type end_date: str
:return: 每日分时行情
:rtype: pandas.DataFrame
r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r/   r0   r&   r'   r#   r=   r>   Tr   r   )r   r   r   r   r   r	   r;   rY   r!   r   rB   r   r   )	r   r   r   rD   rE   r   r   r   rF   s	   &&&      r   stock_us_hist_min_emr    s   " DC?4FLL%a()6<<+<Q+?*@AF 	S4AIVX&&||~ll	&8I(8ST8SJJsO8STUG	GO NN78#4XFGM*GT40gh&7IGHgh&7IGHgh&7IGHgh&7IGH==)=hOGK==)=hOGK==)=hOGKwx'8JQQRUVGHN- Us   5H>__main__6007342005050120250304r   )r   r   r   r   r   603777)r   r   )r   r   z106.TTE2020010120240414300364z2025-03-07 09:30:00z2025-03-07 15:00:00)r   r   r   r   r   8334542017030120241115z2025-03-07 18:32:00)r   r   r   r   r   )r   r   r   20500101r   N)r   1979-09-01 09:32:002222-01-01 09:32:00r   r   )r   z09:00:00z15:50:00)r   r   r   r   r   )r   r   r   r  r  )z105.MSFTr   r   r   r   )r  r  r  )/__doc__pandasr   r   akshare.utils.funcr   rG   rL   rO   rR   r\   r`   rc   r   r   r   r   r   r   r   r   r   r   r  r  __name__stock_zh_a_spot_em_dfprintstock_sh_a_spot_em_dfstock_sz_a_spot_em_dfstock_bj_a_spot_em_dfstock_new_a_spot_em_dfstock_cy_a_spot_em_dfstock_kc_a_spot_em_dfstock_zh_b_spot_em_dfstock_hk_spot_em_dfstock_hk_main_board_spot_em_dfstock_zh_a_hist_dfstock_zh_a_hist_min_em_dfstock_zh_a_hist_pre_min_em_dfstock_hk_hist_dfstock_hk_hist_qfq_dfstock_hk_hist_hfq_dfstock_us_spot_em_dfstock_us_hist_dfstock_hk_hist_min_em_dfstock_us_hist_min_em_df r   r   <module>r/     s1     3jZiXiXiXnbjZjZ>BiXWt}@4nRjRjEP{|\~CL3l z.0	
 .0	
 .0	
 .0	
 02	
 !.0	
 .0	
 .0	
 *,	
%@%B"	
()( 

 6hs S	
#$$>h$O!	
'($ 

( 

( 

*,	
$ 

.0	
 2'B	
!"*,	
2)D	
!"2*E	
!" 6(&! 

#$( 

2(& 

!".0	
 A r   