All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.moomoo.openapi.MMSPI_Conn Maven / Gradle / Ivy

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) {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy