# AG **Repository Path**: zhaocaiall/ag ## Basic Information - **Project Name**: AG - **Description**: 白银期货数据仓库 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-09-23 - **Last Updated**: 2022-12-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 白银数据 #### 介绍 1. 配置python环境获取数据 ```bash git clone https://gitee.com/zhaocaiall/efinance.git cd efinance pip install setuptools pip install -e . ``` 2. 获取AG2212当日交易明细 ```python import efinance as ef futures_df = ef.futures.get_deal_detail('113.ag2212',100000) df = futures_df df.to_csv("AG2212明细.csv",mode='a', encoding='utf-8-sig',header=0,index=0) ``` 3. 获取AG2212日线 ```python import efinance as ef futures_df = ef.futures.get_quote_history('113.ag2212') df = futures_df df.to_csv("AG2212日线.csv", encoding='utf-8-sig',index=0) ``` 4. 安装tableau ``` https://www.tableau.com/zh-cn/support/releases ``` 5. 可视化数据使用教程可参考 ``` http://www.zhaocai.live:8889/posts/jr/ ``` 6. 使用创建好的数据 ``` git clone https://gitee.com/zhaocaiall/ag.git cd ag 双击 JR.twb ``` 7.