```
我把positon换成wallet后,经常报错:错误 TypeError: cannot read property 'write' of null at main (FILE:8)
2019-06-03 12:09:30,错误 websocket: bad handshake
```
回复的是你的这个问题,麻烦看下。
2019-06-03 14:50:44
小草
应该是请求成功了,remaining是剩余websocket连接次数,不能太频繁。
2019-06-03 14:38:53
Han_nuo_ta
答非所问
2019-06-03 14:16:09
发明者量化-小小梦
TypeError: cannot read property 'write' of null at main (FILE:8) 这个报错是 程序错误,估计是您改了什么代码导致的。
另外 请先确保您的 托管者所在服务器 可以访问到 OKEX 接口。
目前 只有海外服务器才能访问到OKEX 了。
2019-06-03 13:15:27
Han_nuo_ta
我已经把自己的API替换了 ,在循环中的那个sleep如果使用,对程序应该没有影响吧?
2019-06-03 12:19:27
Han_nuo_ta
/upload/asset/1405cf4702c6364a8e6e.png 我把positon换成wallet后,经常报错:错误 TypeError: cannot read property 'write' of null at main (__FILE__:8)
2019-06-03 12:09:30,错误 websocket: bad handshake
2019-06-03 12:13:21
Han_nuo_ta
2019-06-03 12:00:52 信息 {"info":"Welcome to the BitMEX Realtime API.","version":"2019-05-29T18:35:35.000Z","timestamp":"2019-06-03T04:00:51.178Z","docs":"https://www.bitmex.com/app/wsAPI","limit":{"remaining":37}}
2019-06-03 12:00:50 信息 {"info":"Welcome to the BitMEX Realtime API.","version":"2019-05-29T18:35:35.000Z","timestamp":"2019-06-03T04:00:49.503Z","docs":"https://www.bitmex.com/app/wsAPI","limit":{"remaining":38}}
2019-06-03 12:00:49 信息 {"success":true,"request":{"args":["Zp8Ub0Iom7SxwDXuB5oXetWV",1559534457,"1cf5ce9c114b6991bfde394cdfebab3b36db9ea0e7a365ed7c4328a6f3ce4efe"],"op":"authKeyExpires"}}
2019-06-03 12:00:48 信息 {"info":"Welcome to the BitMEX Realtime API.","version":"2019-05-29T18:35:35.000Z","timestamp":"2019-06-03T04:00:47.720Z","docs":"https://www.bitmex.com/app/wsAPI","limit":{"remaining":39}} 这是不是提示需要重连?