vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 1
声望: 0

Log内容如下
time,msg,gateway_name
19:30:48.336,触发异常,状态码:<class 'websocket._exceptions.WebSocketProxyException'>,信息:Connection is already closed.,BITMEX
19:30:48.334,REST API启动成功,BITMEX

在VNPY的bitmex连接里面设置了代理
代理地址是127.0.0.1 端口是1080

翻墙服务用的pandafan,然后用shadowsocks设置的代理
{
"server":"xxx.xxx.xxx",
"server_port":xxxxx,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"xxxxxxx",
"timeout":300,
"method":"chacha20",
"fast_open":false
}

测试了一下google是可以连上的,代理应该是生效的
ProxyChains-3.1 (http://proxychains.sf.net)
--2019-05-11 19:42:31-- http://www.google.com/
Resolving www.google.com (www.google.com)... |DNS-request| www.google.com
|S-chain|-<>-127.0.0.1:1080-<><>-4.2.2.2:53-<><>-OK
|DNS-response| www.google.com is 172.217.0.36
172.217.0.36
Connecting to www.google.com (www.google.com)|172.217.0.36|:80... |S-chain|-<>-127.0.0.1:1080-<><>-172.217.0.36:80-<><>-OK
connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html.2’

index.html.2 [ <=> ] 12.27K --.-KB/s in 0.1s

2019-05-11 19:42:32 (123 KB/s) - ‘index.html.2’ saved [12569]

Administrator
avatar
加入于:
帖子: 1408
声望: 63

推荐使用shadowsocks.la,这家的服务器以及相关安装使用说明

© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3