<filename>futuquant/examples/app/stock_alarm/config.py
# -*- coding: utf-8 -*-


class Config:
    def __init__(self):
        # wechat
        self.appid = ''       # AppID
        self.secrect = ''      # Secret

        # test_user_list
        self.test_user_list = {
                          ''  # lpt
                          }

        # test_user_nickname
        self.test_user_nickname = {'lpt'}

        # wechat token
        self.token = ''  # token

        # parameter: 越价率
        self.premium_rate = 0.005
        self.warning_threshold = 1000000
        self.large_threshold = 5000000
        self.warning_limit = 5

        # template_id
        self.template_id = ""

        # mysql
        # self.host = '127.0.0.1'
        # self.port = 3306
        # self.user = ''
        # self.passwd = ''
        # self.database = 'stock_alarm'

        # sqlite
        self.database = 'stock_alarm'

        # FutuOpenD
        self.host = '127.0.0.1'
        self.port = 11111


config = Config()