简单分析从wex.app获取的订单信息

Author: Difficult to quantify, Created: 2020-12-30 16:20:27, Updated: 2020-12-30 16:22:03

One sentence to summarize: when querying the order transaction parity on the wex.app, you can use order.Info.detail[0].price to replace the usual order.AvgPrice. When writing code, you can test buy and sell through debugging tools, and when controlling the order history of the wex.app, you can adjust the policy code.

声明:写本文的目的仅是记录写代码过程中遇到的问题、学习的过程以及解决办法。感谢发明者平台提供了模拟盘wex.app,让我测试了很多策略。在交易方面,我还有很多不了解的内容,欢迎各位朋友指正。

本文使用发明者网站的调试工具,在模拟盘网站wex.app测试买入卖出的市价订单,并查询返回的订单信息。具体结果如下:

One, test buy.

(a) Test the code function main (()) { var account = exchange.GetAccount (); var preAccount = account;// records the status of the account before the purchase Log ((preAccount)); var id = exchange.Buy ((-1, 50);// spend 50 usdt to buy btc at market price Log (id); If ((id!=null) { var order = exchange.GetOrder (id);
Log ((order); account = exchange.GetAccount (();// searches for account status after purchase Log (account);
} }

(b) Returning the information Before purchasing, preAccount account information: {pos (192,210) } I'm not sure what you mean. (Info section has a lot of information, but it doesn't affect the analysis of this article, so it is ignored) I'm not sure. In the meantime, I'm going to try to get some answers. I'm not going to say that I'm not. I'm not sure if you're familiar with this, but I'm not sure if you're familiar with it. I'm not sure if I'm going to be able to make it. I'm not sure.

After the purchase, the account information: {pos (192,210) } I'm not sure what you mean. (This info is ignored) I'm not sure. In addition to the above, we also have a number of other products that we have been using. I'm not going to say that I'm not. In addition to the above, we have also been asked to provide information on the following topics: I'm not sure if I'm going to be able to make it. I'm not sure.

We compare the account data before and after the purchase and find: 1, Balance has decreased by 50 usdts. 2, the number of coins (Stocks) increased by 0.00175661 BTC.

order order returns data as follows: {pos (192,210) } I'm not sure what you mean. It's not just the people who are in charge of the country. I'm not going to say that I'm not. In addition, the government has announced that it will release a new version of the report on the situation in the country. I'm not sure what you're saying. I'm not sure if this is a good idea. The price of aluminum: 28442.47 tonnes This is the first time I've seen this video. In addition, the government has announced that it will release a new version of the report. In addition, the government has announced that it will release a new version of the report on the situation in the country. It's not just about the price, it's about the quality of the product. This is the first time I've seen this in my life. I'm not going to lie. This is the first time I've seen this in my life. This is the first time I've seen this video. The amount of the transaction is 0.00175661 tonnes. This is the first time I have seen this video. I'm not going to say that I'm not. This is the first time I've seen this in my life. I'm not sure if this is a good idea, but I'm not sure. This is the first time that the Chinese government has been able to sell Bitcoin to the public. The price of the oil is about $50 a barrel. I'm not sure if this is a good idea, but I'm not sure. It's a very good example of how we're going to do this. This is the first time I've seen this video. In addition, the government has announced that it will release a new version of the report on the situation in the country. This is the type of pump: pump market pump I'm not sure. This is the first time I've seen this video. I'm not sure what you mean. I'm not going to say that. The deal amount is 0.00175661. This is the first time I've seen this video. I'm not sure what to do. This is the first time I've seen this. This is the first time I've seen this. This is the most common type of contract. I'm not sure.

According to the order information returned by wex.app, we found: 1, the order has been placed, status is equal to 1. 2, The number of transactions is 0.00175661, which corresponds to the change in the value of the account before and after the transaction. 3 Comparing the historical ordering information on the wex.app website, we found: The total amount of transactions is Info.tx=49.9623272267 USD The average transaction price is Info.detail[0].price=28442.47 The total amount of transactions is Info.detail[0].amount=0.00175661 BTC The total fee is Info.detail[0].fee=0.037471745420025 usdt

The average transaction price is equal to the total transaction/total transaction: 49 years old.96232722670So this is going to be 0.00175661 is going to be 28.442.47. Fee for processing = total fee for processing / total volume of transactions So this is 0.037471745420025/49.9623272267 is equal to 0.03775

The problem is that if you subtract the total transaction from the commission amount, the difference is slightly larger than the total transaction fee: 50-49.9623272267 is equal to 0.0376727733. So, if you want to know the difference between the two, you have to know the difference between the two. I don't know where this error went? It may be related to the calculation method used for ordering a photo. This error can usually be ignored.

Second, test and sell.

(a) Test the code function main (()) { var account = exchange.GetAccount (); var preAccount = account;// records the status of the account before sale Log ((preAccount)); var id = exchange.Sell ((-1, 0.001);// sell 0.001 BTC at the market price Log (id); If ((id!=null) { var order = exchange.GetOrder (id);
Log ((order); account = exchange.GetAccount (();// Queries the status of the account after the sale Log (account);
} }

(b) Returning the information Before purchasing, preAccount account information: {pos (192,210) } I'm not sure what you mean. (This info is ignored) I'm not sure. In addition to the above, we also have a number of other products that we have been using. I'm not going to say that I'm not. In addition to the above, we have also been able to provide you with the following information: I'm not sure if I'm going to be able to make it. I'm not sure.

After the purchase, the account information: {pos (192,210) } I'm not sure what you mean. (This info is ignored) I'm not sure. In addition to the above, we also have a number of other companies that have been involved in the development of this product. I'm not going to say that I'm not. In addition to the above, we have also been able to provide you with the following information: I'm not sure if I'm going to be able to make it. I'm not sure.

We compare the data of the accounts before and after the purchase, and we find: The balance of the account increased by 28.37246468 usdt. The number of coins (Stocks) decreased by 0.001 BTC.

order order returns data as follows: {pos (192,210) } I'm not sure what you mean. It's not just the people who are in charge of the country. In addition, the government has announced that it will release a new version of the report. This is the first time I've seen this video. This is the first time I've seen this post. This is the first time I've seen this in my life. I'm not sure if this is a good idea, but I'm not sure. In addition to the above, I have also been asked to comment on the following: In addition, the government has announced that it will release a new version of the report on the situation in the country. It's the only one in the world that has been able to do this. In addition, the government has announced that it will release the first batch of the newly-launched T-shirts. I'm not sure what you're saying. In addition to the above, I have also been asked to comment on the following: In addition, the government has announced that it will release the first batch of the newly-launched T-shirts. In addition, the government has announced that it will release a new version of the report. It's not just about the price, it's about the quality of the product. This is the first time I've seen this in my life. I'm not sure if this is a good idea, but I'm not sure. The price of aluminum: 28393.76 tons I'm not going to lie. This is the first time I've seen this in my life. I'm not sure if this is a good idea. I'm not going to say that I'm not. The deal amount is 0.001, In addition, the government has announced that it will release a new version of the report. This is the first time that the Chinese government has been able to sell Bitcoin to the public. This is the first time I've seen this in my life. I'm not sure. This is the first time I've seen this video. I'm not sure what you're talking about. I'm not going to say that. The deal amount is 0.001. This is the first time I've seen this video. I'm not sure what to do. Type of pump: 1, This is the first time I've seen this. This is the most common type of contract. I'm not sure.

According to the order information returned by wex.app, we found: 1, the order has been placed, status is equal to 1. 2, the number of transactions is 0.001, which corresponds to the change in the value of the account before and after. 3 Comparing the historical ordering information on the wex.app website, we found: The total amount of transactions was Info.tx = 28.39376 USD The average transaction price is Info.detail[0].price=28393.76 The total amount of transactions is Info.detail[0].amount=0.001 BTC The total fee is Info.detail[0].fee=0.021295325 usdt.

The average transaction price is equal to the total transaction/total transaction: 28. What do you think?393760.0011 is equal to 28393.76. The total transaction fee is equal to the total transaction fee/total volume. So this is 0.021295325/28.39376 is equal to 0.00075.

We can calculate the transaction fee from another perspective, using the change in the account balance minus the total transaction value: This is the same thing as -0.02129532. There are very small errors, which should be caused by the intersection of a certain small number of digits, which can be ignored.


More