Summary of issues such as CTP Commodity Futures Real Estate Exchange configuration, strategy launch

Author: The Little Dream, Created: 2016-08-02 09:41:11, Updated: 2020-11-30 11:16:39

Summary of issues such as CTP Commodity Futures Real Estate Exchange configuration, strategy launch

Users encounter various problems when configuring a live exchange for commodity futures. To avoid these problems, summarize here.

  • 1, Is the administrator program the latest version ((used)-vParameters, which can be used to view the program's compilation time.windowsLinuxMac OSThis version of the trustee program supports commodity futures.)

    img

  • 2, When adding an exchange, the IP address and broker ID of the corresponding futures company server are automatically filled in, and there is a line option, if the connection is not available, you can try another line and IP address set ((note to determine whether the configured futures company is open under the CTP protocol or the Ease of Doing Business protocol)).

    img

    img

  • 3rd, something that is often overlooked, is the use of发明者量化When testing a connection, consider whether or not the server is open for the connection.宏源期货实盘

    Use the inventor to quantify the API documentationJavaScript语言Test example, test acquisitionrb2101The contract.

    function main(){
        while(true){
            // 需要在判断exchange.IO("status")函数返回true,即为真值时才可调用行情、交易等函数
            if(exchange.IO("status")){
                exchange.SetContractType("rb2101")
                var ticker = exchange.GetTicker()
                Log("rb2101 ticker:", ticker)
                LogStatus(_D(), "已经连接CTP !")
            } else {
                LogStatus(_D(), "未连接CTP !")
            }
        }
    }
    

    Test records img

  • 4, test if the problem is a real disk account (wrong input, wrong password, etc.)开拓者(TB)The client logs in to see if it can connect.

  • 5, the server of the futures company, if you still can not connect, you can consult the customer service of the futures company.;; ((whether to open or whether the account is locked, whether the seat is not open etc.)

  • Figure 6: Commodity futures The latest futures trading schedule is effective as of May 3, 2016

    img

More strategies for inventors of quantitative trading platforms策略广场https://www.fmz.com/square


Related

More

afanxingzhouNo, my friend who listens to futures says that the country is very strict about overseas regulation and basically prohibits foreign users from operating domestic futures.

Autumn and fallThe top!

The Little DreamIt doesn't matter. You are applying for an account.

The Little Dream3Q, I'm testing accurate.

Autumn and fallThe physical disk 15:32 can be connected, and the analogue disk can be measured.

The Little DreamThis is a list of all the different ways Dn-filebox.qbox.me/0be0b67e9b163b7329b0e0c923e22daf4162cb1e.png is credited in the database. I'm testing at the moment, can't read, mine is analog, can yours be connected?

Autumn and fallAs for the third point, it can also be connected during the holiday season, I guess. I didn't even get it before because the number of password errors exceeded the limit.

The Little DreamThank you for your reply, I will summarize all the problems I encountered later.