8
Follow
1370
Followers
Nueva función de Inventor Quant: "Enviar comandos a WeChat/Controlar transacciones reales en WeChat"
Created 2019-07-19 11:49:28 Updated 2021-09-15 09:56:28
5
4535
Nueva función de Inventor Quant: "Enviar comandos a WeChat/Controlar transacciones reales en WeChat"
-
WeChat también puede enviar instrucciones para operar el disco duro.
-
La siguiente imagen muestra el comando de edición en WeChat:
-
Por ejemplo:
/send id cmdOferta firme
idSe puede hacer por:/list 查看运行的实盘/listall 查看所有的实盘Encuentra más información aquí.
-
prueba
/send id cmdEl código de la directiva para la política de disco duro:function main() { while(true){ // 处理交互 var cmd = GetCommand() if(cmd){ Log("cmd:", cmd) // 测试 } Sleep(2000) } } -
Configuración de la interfaz
-
usar
/send id cmdLa instrucción, el registro en disco duro muestra:Se puede ver que el disco duro ha recibido lo enviado.
UpdateAmount:1El intercambio de órdenes.
-
-
重启/停止Oferta firme/start idIniciar el disco duro indicado/stop id: Detener el disco duro especificado
-
Especificación de la consulta
idEl disco duro/list idVer el disco duro especificado:
Related Recommendations
Get 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 optimization5.4 Why do we need an off-sample test5.3 How to read the strategy backtest performance report
Comment
All comments (5)
发送交互给实例
/send id cmd
这里的cmd是可以任意自定义的命令内容吗?比如例子中的UpdateAmount,是发明者平台的内置函数,还是某个策略代码自定义的变量或函数?
机器人收到这个cmd交互命令之后,具体会怎样做?
刚结合了API文档中的例子来理解,搞懂了。
例子:策略中设计交互代码
https://www.fmz.com/api#getcommand
6 years ago
- 1






