Use of servers in quantitative transactions

Author: The Little Dream, Created: 2020-09-20 08:42:17, Updated: 2023-09-27 19:37:25

img

Use of servers in quantitative transactions

While it is possible to run a quantitative trading program using any device (a robotic program that operates the account according to a certain trading strategy), it is more secure to use a server in a certain operator's machine room. Network communications and power supply are both more secure. After all, the basic security to be achieved should be done as much as possible, using your own computer and other equipment to run the quantitative trading program, the loss of the power grid at a critical time, relative to the server's cost can be said to be due to small losses.

What is the quantum trading robot's hash server hash?

A server is simply a computer device running in a server provider's machine room. Like a normal computer, it has memory, CPU, hard drive. The server provider guarantees a stable power supply, network communication, etc. We as server provider users pay the server provider a fee. Of course, there may also be some free, usually paid, and the server is provided to us for use.

Choice of server provider

  • Ali Yun
  • vultr
  • The Amazon
  • Linode

There are many server providers, and you can search for them yourself. Depending on the payment method, the location of the machine room (the closer the server is to the location of the exchange, after all, the faster the future program will run on the server, the better it will be to access the exchange).

Server operating system selected

  • The Windows operating system, which is simple to operate, is basically the same as the Windows operating system on your own computer, but is not recommended, as Linux is more stable in performance.
  • Linux is more complex than Windows, but has better stability and performance. Although it is more complex, it is possible to deploy quantitative transaction programs using only a few commands. There are many versions of Linux, mainly:
    • CentOS
    • Debian
    • Ubuntu is CentOS can be used for a variety of purposes.

Use of servers

After paying for a rental of a server from a server provider, the server provider will usually send you the server's login password (in the form of an e-mail); sometimes the user can set the server's login password on the rental page. The login password needs to be properly stored and used when logging in to the remote server.

  • Windows operating system Windows systems are easier to use by logging in to the server provider's website terminal or using "remote desktop connection".

  • Linux systems There are several ways to log in remotely.

    • Linux system login can be done using a terminal login on the server provider's website page, such as Ali Cloud:img

      Generally, you can find a rental server remote connection terminal on the server provider's website, after logging in.

    • Putty and other software You can also use some remote login software to sign in if you're using a Windows system (not your server, but the computer you're currently using).puttyThe software, about which:https://baike.baidu.com/item/putty/5426468?fr=aladdinConfigure the IP address of the server to be logged in, as shown in the figure below.imgThe user name of the Linux server isrootWhen logging in, first enter the username, press the return key, and then enter the login password, note that the input is not visible when entering the login password, although the input is visible, if the prompt appears to select Yes/No, the content selection is possible (usually enter yes with the return key), as shown in the figure below.img

    • Apple computer terminal ssh sign in I'm going to open the terminal, and it looks like this:img img

      Use commandsssh root@xxx.xxx.xxx.xxxRemote login, xxx.xxx.xxx.xxx is the IP address of the server you want to log in to.imgYou can log in by entering your login code.img

    After remote login, in the Linux operating system, the command line interface is used to operate, enter commands, and perform specific tasks.

Commonly used commands in Linux

After logging in to the Linux server, the operation is the same, it has nothing to do with what system your computer is on, and it has nothing to do with how you log in. So we demonstrate the terminal screenshot after logging in to the Apple computer (MAC), commonly used commands.

  • It's To view the contents of the current directory, see what files, programs, etc. are in the current folder. Use the -a parameter to view all the contents, as shown below:imgAs you can see, there are three files in the current directory, the robots administrator program, the robots compression package, and the logs administrator program log folder.

  • pwd See the current directory, as shown below:img

  • cd If I want to go into a directory, say, the logs folder in the diagram above, I can type in the directory in the diagram above,cd logsThis is a picture:imgThe logs directory is entered. At this time, use pwd to view the current directory:imgYou can see the changes. If you want to go back to the previous level of the directory, just usecd ..The order.imgYou can see that the top-level directory has been returned.

  • mkdir To create a folder in the current directory, we first create a folder in the current directory.ls -aNow look at the contents of the current directory, and thenmkdir test1Create a directory called test1 (folder) and end up inls -aSee if it is created.img

  • rm Delete command, used if I want to delete a newly created folder (including the contents of the folder)rm -rf test1imgIf I want to delete a file, like delete a bot program,rm robotThis is a picture:img

  • wget software Generally CentOS installs wget by default, if not you can install Baidu. For example, the host program that uses wget to download FMZ Quantum Trading Platform, the host program for 64-bit Linux systems download link is:http://www.fmz.com/dist/robot_linux_amd64.tar.gz

    Usewget 链接Downloads, for example:wget http://www.fmz.com/dist/robot_linux_amd64.tar.gz img img

  • tar Uncompress commands, such as uncompress the recently downloaded host program compression package robot_linux_amd64.tar.gz,tar -zxvf robot_linux_amd64.tar.gzThis is the picture below:

    img

  • No, not at all. nohup background running program to prevent remote logon disconnection and program to stop running. For example, deploying the FMZ's robot host program. Use the following command:nohup ./robot -s node.fmz.com/XXXXXX -p YYYYYYY & node.fmz.com/XXXXXXis a unique address for each FMZ account (found on the FMZ platform, Add Administrator page) for each userXXXXXXAnd then we're going to have a little bit of a different part.YYYYYYYThis is the corresponding FMZ account password for this address.

    img


Related

More

The flying bearWhat about the follow-up?

The bone knifeSitting and Waiting

fmzero 666

ShepherdingPraise the one