| 12345678910111213141516171819202122 |
- # 设置查询文件夹路径
- from services.quote_query_entity import QuoteQueryEntity
- # 网站端口号
- SERVICE_PORT = 8086 #
- UPLOAD_FOLDER = 'static/quote_data'
- DEFAULT_PARAM = QuoteQueryEntity()
- DEFAULT_PARAM.host = '192.168.31.204' # 主机IP
- DEFAULT_PARAM.port = 5025 # 主机端口号
- DEFAULT_PARAM.username = 'quote_test01' # mongodb用户名
- DEFAULT_PARAM.password = '123456' # mongodb用户密码
- DEFAULT_PARAM.db_name = 'HistoryQuote' # mongodb 数据库名
- DEFAULT_PARAM.col_name = 'quotetik' # mongodb 集合名称
- DEFAULT_PARAM.goods_code = 'AU01' # 商品代码
- DEFAULT_PARAM.query_type = 1 # 查询类型 1-按价格点差(买价) # 2-按行情时间(s)
- DEFAULT_PARAM.start_time = '' # 开始时间# current_date.strftime('%Y-%m-%d') + " 00:00:01",
- DEFAULT_PARAM.end_time = '' # 结束时间 # current_date.strftime('%Y-%m-%d') + " 23:59:59",
- DEFAULT_PARAM.diff_value = 10 # 差值(价差、时差)
- DEFAULT_PARAM.record_num = 1000 # 取前N条 - 为 none 或 0时取所有
- DEFAULT_PARAM.files_num = 10 # 文件显示数
|