preloader
blog-post

Start & End FIX API Starter Application

author image

This part includes the main function for initialization and the onExit function for destruction.

private static boolean devEnv = true;
private static boolean resetSeqData = true;
private static boolean resetSeqOrder = true;
private static String dataCfgFileName = "data.cfg";
private static String orderCfgFileName = "order.cfg";

private static SocketInitiator dataInitiator = null;
private static Data dataFIX = null;

private static SocketInitiator orderInitiator = null;
private static Order orderFIX = null;

public static void main(String[] args) {
  SpringApplication.run(FixapistarterApplication.class, args);

  logger.info("Opening......");

  startDataFix();
  startOrderFix();
}

@PreDestroy
public void onExit() {
  logger.info("Closing......");

  try {
    endDataFix();
    endOrderFix();
    Thread.sleep(5 * 1000);
  } catch (InterruptedException e) {
    logger.error(e.getMessage());
  }
}

Relevant Articles

Fintechee Online FIX API Parser

The received messages will output to the “orderlog” folder.

If you want to parse them, please use Fintechee Online FIX Parser.

Fintechee FIX API Trading Platform Individual Version

If you want to trade via FIX API, please use Fintechee FIX API Trading Platform Individual Version(Paid Version).

If you have a Github / Youtube account, you can get a free license for the paid version(No Charge)!

If you have no Github / Youtube account, you can still use Fintechee FIX API Trading Platform Bridge Version(Free Forever)!

If you are working for financial institutions, you can choose Fintechee FIX API Trading Platform Institution Version(White Label License).

Github Repository

Please access our Github repository to get the latest source codes.

Recent Articles

blog-post

FIX API Starter Application Class

This is the FIX API Starter Application Class. It includes: A method to be called to start FIX API Data session A …

Get Free Demo FIX API Account

We provide free demo FIX API accounts.

Book One
*