com.moomoo.openapi.MMSPI_Conn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moomoo-api Show documentation
Show all versions of moomoo-api Show documentation
Moomoo OpenAPI quantitative transaction interface for Java.
The newest version!
package com.moomoo.openapi;
/***
* 连接状态变化的回调
*/
public interface MMSPI_Conn {
/***
* InitConnect协议返回。如果返回成功,则可以发起行情或交易请求。
* @param client
* @param errCode 错误码。当高32位为ConnectFailType类型时,低32位为0;当高32位等于FTAPI.INIT_FAIL,则低32位为InitFailType类型。
* @param desc 错误描述
*/
default void onInitConnect(MMAPI_Conn client, long errCode, String desc) {}
/***
* 与OpenD的连接断开
* @param client
* @param errCode
*/
default void onDisconnect(MMAPI_Conn client, long errCode) {}
}