veighna-global/vnpy_okx

缺少default_name导致会出现找不到gateway的错误

Closed this issue · 2 comments

缺少default_name导致会出现找不到gateway的错误
应该加上:

class OkexGateway(BaseGateway):

default_name: str = "OKEX"

default_setting = {
    "API Key": "",
    "Secret Key": "",
    "Passphrase": "",
    "会话数": 3,
    "代理地址": "",
    "代理端口": "",
    "服务器": ["REAL", "TEST"]
}

看了下 所有的gateway都漏掉了default_name