Definition and implementation of Tongdaxin interface

Tongdaxin believes that stockholders have heard of it more or less. It is a well-known market query software in the industry, so what does Tongdaxin interface mean? How to realize Tongdaxin interface? Today we will explain in detail.

Definition of Tongdaxin interface
Tongdaxin interface can be understood as using Tongdaxin market software as a database, and then integrating information as the basis of trading strategies, all trading behaviors are automated. The advantage of the Tongdaxin interface is that the buying and selling strategies are pre-set. Whether the transaction is based on market fluctuations can not be affected by personal emotions, which can greatly reduce trading mistakes due to personal reasons.

How to implement Tongdaxin interface
Tongdaxin interface is actually written by code, we can use java language, Python, c language, etc. Let's give an example below:

package com.caiex.vb.model;
 
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
 
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Result", propOrder = { "resultCode", "resultMsg" })
public class Result implements Serializable {
 private static final long serialVersionUID = 10L;
 protected int resultCode;
 protected String resultMsg;
 
 public int getResultCode() {
  return this.resultCode;
 }
 
 public void setResultCode(int value) {
  this.resultCode = value;
 }
 
 public String getResultMsg() {
  return this.resultMsg;
 }
 
 public void setResultMsg(String value) {
  this.resultMsg = value;
 }
}

Due to the characteristics of the Tongdaxin interface, there are some points that need to be paid attention to in the development and implementation. One is to write the document of the interface first, and the other is to pay attention to the type of returned data and see if there is any error.

Guess you like

Origin blog.csdn.net/qq1841085904/article/details/126500969
Recommended