com.moomoo.openapi.MMAPI 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;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import java.security.Security;
public class MMAPI {
static NetEventListener netEventListener = new NetEventListener() {
};
public static void init() {
Security.addProvider(new BouncyCastleProvider());
}
public static void unInit() {
}
public static void setNetEventListener(NetEventListener listener) {
if (listener != null) {
netEventListener = listener;
} else {
netEventListener = new NetEventListener() {
};
}
}
}