Ethereum burst data
If you want to query the transaction records on the main network, you can use Etherscan. However, if you build your own private chain, how should you query the transaction records
the answer is that you need to listen to the logs on the chain, save them in the database, and then query them in the database. For example:
< pre t = "code" L = "Java" > varaddr = & quot& quot;< br />varfilter=web3.eth.filter({fromB lock:0 ,toBlock:' latest', address:addr });< br />filter.get(function(err,transactions){transactions.forEach(function(tx){
vartxInfo=web3.eth.getTransaction(tx.transactionHash);
/ / at this time, the transaction information txinfo can be stored in the database
})< br />}); Pre >
Web3. Eth. Filter() is used to monitor the log on the chain, and Web3. Eth. Gettransaction() is used to extract the information of the specified transaction. Once the transaction information is obtained, it can be stored in the database for query
recommend a practical introction, you can see: Ethereum tutorial
one is that the futures customer still owes money to the futures exchange after closing the position, that is, the floating profit and loss of the account is equal to or greater than the total capital of the account, that is, the customer's equity is less than or equal to 0, The margin on the account can no longer maintain the original contract. This kind of margin "return to zero" caused by forced position closing e to insufficient margin is commonly known as "position explosion", and the meaning of "position penetration" is the same as "position explosion"
at present, the phenomenon of position explosion is basically not allowed in China. There is a limit on the rise and fall in China. When the margin is kept below, futures companies will automatically close their positions. Among the Hang Seng Index Futures in Hong Kong, the Hang Seng index is a 4-hour trading system. The next day, there may be a large short jump or high jump, which will lead to the reversal of the position. As soon as the market opens, the position will explode, or even be negative. A negative number is the money owed to the futures trading company because the futures brokerage company pasted the money to the futures exchange to close the customer's position. For example 1: data example 4: before the opening of trading on August 11, the customer did not give the margin that should be added to the futures company, and the stock index futures contract in September fell by 90 points, opened at 1060 points and continued to fall. The futures brokerage company forced the closing of 15 long positions of the client, with the transaction price of 1055 points
3. Foreign exchange position explosion: foreign exchange position explosion refers to the situation in which the customer's equity in the investor's margin account is negative under some special conditions. When the market changes greatly, if most of the funds in the margin account of investors are occupied by trading margin, and the trading direction is opposite to the market trend, it is easy to burst e to the leverage effect of margin trading. If the burst leads to a deficit and is caused by investors, investors need to make up the deficit, otherwise they will face legal recourse.
secondly, even though little friends can't figure out what bitcoin is like, after 7 p.m. the price of bitcoin once soared to $10429 , a good bull market means a sense of vision. Therefore, many small partners believe that the bull market of bitcoin is really coming, and they can't help but start one after another for fear that they will miss this opportunity to make money
then, just an hour after 7 o'clock, the company burst its position by more than $7 million, equivalent to more than $4410 in RMB. On the same day, more than 36000 small partners frantically snapped up bitcoin, setting a record of more than $7 trillion in 24 hours, equivalent to about $5 billion in RMB
finally, just when my little friends were happy to catch the last bus of the bull market, in the last 20 minutes on June 2, bitcoin fell from $10147 to $797 in six minutes , which was more exciting than taking a roller coaster. A proper coin circle, a day, a decade on earth
How do you feel about it< p> 1. The reason why bitcoin has risen so miraculously is once in a century, but its rise is reasonable. We need to know that because of the impact of the epidemic in the US economy, everything is possible2. For coin friends, whether they are novices or veteran, it is the best choice to choose to wait and see under such circumstances< otherwise, it's not making money, it's giving money strong>
