CoralFIX에는 즉시 사용할 수있는 서버 구현이 포함되어있어 FIX 클라이언트의 연결을 수락 할 수 있습니다. 그것은 당신의 테스트 당신이해야 할 모든 간단한 서버를 구현하기 등의 요청을 다시 로그온, 하트 비트, 시퀀스 리셋 같은 모든 FIX 세션 수준의 세부 정보를 처리 할 것은 :
import com.coralblocks.coralfix.FixMessage;
import com.coralblocks.coralreactor.client.Client;
import com.coralblocks.coralreactor.nio.NioReactor;
import com.coralblocks.coralreactor.util.Configuration;
import com.coralblocks.coralreactor.util.MapConfiguration;
public class SimpleFixApplicationServer extends FixApplicationServer {
public SimpleFixApplicationServer(NioReactor nio, int port, Configuration config) {
super(nio, port, config);
}
@Override
protected void handleFixApplicationMessage(Client client, FixMessage fixMsg, boolean possDupe) {
// do whatever you want to do with the application message received from this client...
}
public static void main(String[] args) {
NioReactor nio = NioReactor.create();
MapConfiguration config = new MapConfiguration();
// print all messages received and sent to STDOUT for debugging purposes
// (default is false)
config.add("debugMessages", "true");
// accept as the client inbound sequence whatever
// sequence I receive in the first message coming from the client
// (default is false)
config.add("acceptInboundSeqFromClient", "false");
Server server = new SimpleFixApplicationServer(nio, 45451, config);
server.open();
nio.start();
}
}
코드의 자세한 설명 위의 내용은 here입니다.
면책 조항 : 나는 CoralFIX 개발자 중 한 명입니다.
주문 취소 지원은 어떻습니까? – chrisapotek
아니요. 이 "서버"를 사용하여 연결 및 제한 주문 실행을 테스트 할 수 있습니다. – stexcec
이 FIXimulator를 사용하여 GUI를 통해 원하는대로 할 수 있다고 생각합니다. 이것이 사실이라면, 그것은 꽤 멋지다. – chrisapotek