0
Follow
0
Followers
거래소에 영안시장 증권거래소를 추가한 후에도 not login이 표시되고, 실제로 거래소 검색에서 직접 추가하고, 다른 것을 수정하지 않고, 직접 계정 암호를 채우고, 추가한 후 성공했지만, 로봇을 실행하면 GetAccount: not login이 표시됩니다.
Related Recommendations
Advanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engineHow to install ta-lib on linux docker?5.5 Trading strategy optimization
Comment
All comments (6)
教程已经阅读过,现在的问题就是登陆不成功,所以想咨询为什么登陆不成功,exchange.GetAccount 显示not login 就是说没有登陆成功,但是我的账号密码都没有错误 在永安自己的软件都能登陆,教程里也写了,交易所里面能搜索到的 都是已经验证过api的所以直接填写账号密码就可以登陆了。 问题是运行策略就是显示没登录
6 years ago
登陆需要重试,教程里有说明,一般框架如下:
function main(){
_C(exchange.SetContractType,"MA888") //没登陆成功是无法订阅合约的,最好重试一下
while(true){
if(exchange.IO("status")){
var ticker = exchange.GetTicker()
Log("MA888 ticker:", ticker)
LogStatus(_D(), "已经连接CTP !")//_D获取事件
} else {
LogStatus(_D(), "未连接CTP !")
Sleep(1000)
}
}
}
6 years ago
- 1

