The resource loading... loading...

Questions about the price of the Chevrolet Glitter

Author: Inventors quantify - small dreams, Created: 2017-08-15 12:07:00, Updated: 2019-04-18 22:34:19

Questions about the price of the Chevrolet Glitter


  • The test:

    The transaction currency was BTS, which was priced at less than 1 yuan at the time, test code:

    var account = exchange.GetAccount()
    var ticker = exchange.GetTicker()
    Log("ticker:", ticker)
      
    Log(account, "#FF0000")
      
    exchange.Buy(ticker.Last + 0.1, 20)
    var jsonStr = exchange.GetRawJSON()
      
    account = exchange.GetAccount()
    Log(account, "#FF0000")
      
    Log("RawJSON:", jsonStr)
    

    img

  • The analysis

    As you can see, the number of purchases is 20, but compare the account information back and forth and find that the actual purchase is 22 more than one.

    After a series of test analyses, it was concluded:

    BitTorrent is a method of order synthesis where the total amount of the order is calculated by subtracting the price * quantity and then using this total amount to buy, so if the price is slightly larger than the price plus, it is obvious that one more coin will be purchased. This problem is tested in the listing on the BitTorrent exchange page, which also buys a bit more, the same conclusion as the API listing.


More

Big Q 666666666666666666666