app_config.py 1.2 KB

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