
    fi                     |    d Z ddlZddlZddlZd	dedej        fdZedk    r ed          Z	 e
e	           dS dS )
uQ   
Date: 2026/2/22 15:45
Desc: 金十数据-期货手续费
https://www.jin10.com/
    N20260213datereturnc                    dddddd}d}d                     | d	d
         | d
d         | dd	         g          }dt          j        | d| dd          dd}t          j        |||          }|                                }t          j        |d                   }|                    i ddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7i8          }|                    g d9d:;          }t          j	        |d         d<=          j
        j        |d<   t          j        |d         d<=          |d<   t          j        |d!         d<=          |d!<   t          j        |d#         d<=          |d#<   t          j        |d+         d<=          |d+<   t          j        |d3         d<=          |d3<   t          j        |d5         d<=          |d5<   |S )>u   
    金十财经-期货手续费
    https://www.jin10.com/
    :param date: 日期; 格式为 YYYYMMDD，例如 "20250213"
    :type date: str
    :return: 期货手续费数据
    :rtype: pandas.DataFrame
    zoMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36fiXF2nOnDycGutVAz1.0zhttps://www.jin10.com/zhttps://www.jin10.com)z
user-agentzx-app-idz	x-versionrefereroriginz/https://mp-api.jin10.com/api/dynamic-data/child-N      _vir_26,   )z
range,datestatusz	date,desc)tb_namesearchorder)paramsheadersdatar   u   日期
heyue_nameu   合约品种
heyue_codeu   合约代码pub_date_commissionu   手续费公布时间pub_date_priceu   价格公布时间heyue_priceu   现价up_limit_numu	   涨停板down_limit_numu	   跌停板	buy_ratiou   保证金/买开
sell_ratiou   保证金/卖开per_lot_priceu   保证金/每手	per_ratiou   每手跳数buy_commissionu   开仓sell_yesterday_commissionu   平昨sell_cur_commissionu   平今per_commission_priceu   每跳毛利per_net_profitu   每跳净利jysu	   交易所)columns)idr   
created_at
updated_at_date_pub_date_commission_pub_date_priceignore)r(   errorscoerce)r0   )joinjsondumpsrequestsgetpd	DataFramerenamedropto_datetimedtr   
to_numeric)r   r   urlformatted_dater   r	data_jsontemp_dfs           J/usr/local/lib/python3.11/dist-packages/akshare/futures/futures_comm_js.pyfutures_comm_jsrD      s   7&+) G <CXXtBQBxacDH=>>N*~,P,P,P,P\]^^__ F
 	S999AIl9V,--Gnn
H
.
 .
 "#:	

 2
 8
 K
 k
 +
 ,
 /
 
 h
 (
 "8
  #N!
" n#
$ ;%
 
   G, llppp   G wx'8JJJMRGHgh&7IIIGH=)=hOOOGK=)=hOOOGK mGN,CHUUUGN mGN,CHUUUGN mGN,CHUUUGNN    __main__)r   )r   )__doc__r3   pandasr7   r5   strr8   rD   __name__futures_comm_js_dfprint rE   rC   <module>rN      s    
      ; ;# ;r| ; ; ; ;| z(j999	E
 rE   