Bitcoin contracts for okcoin: the dollar-renminbi exchange rate problem

Author: Number of investments 01, Created: 2017-02-04 11:07:03, Updated: 2019-08-01 09:21:45

On the page of okcoin contracts, for example this week's price, the page is seen.

GetDepth, buy 1 at 1002.xx.

Is it because okcoin is actually commissioned to be quoted in US dollars, showing only RMB quotes calculated based on an exchange rate?

The inventor quantified the following order, openlong one, price filled 6900, in ok, see 6907.xx 6908.xx 6909.xx ordered 3 times and withdrawn 3 times respectively.


More

The Little DreamThe reason for this is that since OK futures use their own exchange rate, BotVS underlying conversion uses the Sinawa exchange rate, which loses accuracy and causes errors when converting dollars to RMB and RMB to dollars. The price of the product is also lower than the price of the product. Or use SetRate ((1); this API uses the original dollar price, not the exchange rate conversion. If you want to display the price of the OK futures using the RMB price, you need to call the API to get the exchange rate provided by the official OK futures, and then use the SetRate API to set the exchange rate to be used as the conversion price.

The Little DreamThe sandbox system automatically converts the original data.

The bride too.When botvs retrieves tok futures, the data used, the type of storage of botvs, is it USD or RMB?

The Little Dream^-^ Not polite.

Number of investments 01I'm so glad you're doing this.