0
Follow
0
Followers
En la plataforma de prueba de los indicadores de la base de datos TA, Log mostró el valor del indicador de PERIOD<unk>M5 con un conjunto de registros, que se actualiza al llegar al punto de tiempo, pero en el disco real se encontró que cada ciclo de tiempo transcurrido aproximadamente de 3 a 4 segundos se actualiza el valor del ciclo anterior.
Ali Cloud, un alquiler en el sur de China, conectado a los futuros de okex.
En las pruebas de GetRecords, la latencia no supera los 100 ms, ¿dónde está la pregunta?
function main(){
while(true){
exchange.SetMarginLevel(10);
exchange.SetContractType("quarter");
var beginTime = new Date().getTime()
var records = exchange.GetRecords(PERIOD_M5)
var endTime = new Date().getTime()
LogStatus("GetRecords 接口延迟时间:", endTime - beginTime, "毫秒。")
Sleep(500)
}
}
Related Recommendations
in main TypeError: IO() takes at most 3 arguments (5 given)symbol not setGetTicker: 400: {"code": 2, "data": {}, "message": "invalid params"}gateio getdepth 502Decrypt: Secret key decrypt failedGetOrders: 400: {"code":-1121,"msg":"Invalid symbol."}HTTP 403 errorBitcoin trading by using botsPlease translate the buy plan pageRunning botvs docker on android
Comment
All comments (8)
“然而实盘中发现每次过了时间周期大约3到4秒才会更新出上一周期的数值。” 这个再描述下 , 没明白 意思, 更新出上一周期数值? 应该是 更新出最新周期的Bar么?
8 years ago
- 1
