Bitcoin Contract Currency Standard Calculator

⑴How is the funding fee of the okex bitcoin perpetual contract calculated?

Funding fee = position value * funding rate, when the funding rate is a positive number, Long pays short; when the funding rate is negative, short pays long, that’s what it means.

2 How Bitcoin is calculated

To understand the technical principles of bitcoin, you first need to understand two important cryptographic techniques: HASH code: convert a long The string is converted into a fixed-length string, and the conversion is irreversible, that is, it is impossible to guess the original string from the HASH code. SHA256 is mainly used in the bitcoin protocol.
Public key system: Corresponding to a public key and a private key, keep the private key in the application, and publish the public key. When A transmits information to B, it can use A’s private key to encrypt the information, and B can use A’s public key to decrypt the information, so as to ensure that a third party cannot pretend to be A to send information; at the same time, when A transmits information to B, it uses B’s public key The key is encrypted and sent to B, who then decrypts it with his own private key, which ensures that a third party cannot eavesdrop on the communication between the two. The most common public key system is RSA, but the bitcoin protocol uses the lliptic Curve Digital Signature Algorithm. What’s the difference between cash and bank accounts? bitcoin is electronic currency, and the unit is BTC. Also used in this article to refer to the entire bitcoin system. Like opening an account in a bank, the corresponding concept in bitcoin is an address. Everyone can have one or several bitcoin addresses, which are used to pay and receive money. Each address is a string starting with 1, such as I have two bitcoin accounts, and. A bitcoin account is uniquely determined by a pair of public key and private key. To save the account, you only need to save the private key file. Unlike bank accounts, banks will keep all transaction records and maintain the book balance of each account, while bitcoin transaction records are jointly maintained by the entire P2P network through a pre-agreed agreement. How much money is in my account address? Although software using bitcoin can see the current account balance, unlike a bank, there is no one place to maintain the book balance of each address. It can only calculate the account balance in real time through all historical transaction records. How do I pay? When I pay from address A to address B of the other party, the payment amount is e. At this time, both parties will announce the transaction information to each network node, telling address A to pay address B, and the payment amount is e. In order to prevent a third party from forging the transaction information, the transaction information will be encrypted with the private key of address A. At this time, the network node that receives the transaction information can use the public key of address A to verify that the transaction information is indeed sent by A. Of course, the trading software will do these things for us, we only need to enter the relevant parameters in the software. What will the network node do after receiving the transaction information? This is the most important part of the entire bitcoin system and needs to be elaborated. For the sake of simplicity, only the currently implemented bitcoin protocol is used here. In the current version, each network node will save all transaction information through synchronization. All transaction information that has occurred in history is divided into two categories, one is “verified” transaction information, that is, the transaction information that has been verified, which is stored in a series of “blocks”. The information of each “block” is the ID of the previous “bock” (the ID of each block is the HASH code of the block’s HASH code) and the newly added transaction information (see an actual block). The other category refers to the transaction information that has not been “verified”, and the transaction information just paid above belongs to this category. When a network node receives new unverified transaction information (maybe more than one), since the node saves all the transaction information in history, it can calculate the book balance of each address at that time, so as to calculate the Whether the transaction information is valid, that is, whether there is sufficient balance in the payment account. After removing invalid transaction information, it first takes out the ID of the last “block”, then combines these unverified transaction information with the ID, plus a verification code to form a new “block”. The above construction of a new block requires a lot of computing work, because it needs to calculate the verification code, so that the above combination becomes a block, that is, the first few digits of the HASH code of the block’s HASH code are 1. Currently, the first 13 bits are required to be 1 (approximately, not sure about the specific method), which means that if the block is generated by the enumeration method, the average number of enumerations is 16^13 times. Using CPU resources to generate a block is called “gold mining”, because the production of the block will get a certain reward, and the reward information has been included in the block. When a network node generates a new block, it broadcasts it to other network nodes. But this network blocks��� may not be accepted by the network, because there may be other network nodes that produced blocks earlier, only the earliest block or the block with the most subsequent blocks is valid, and the remaining blocks are no longer used as the initial block of the next block. . How does the other party confirm that the payment is successful? When the payment information is distributed to the network node, the network node starts to calculate whether the transaction is valid (that is, whether the account balance is sufficient to pay), and tries to generate blocks containing the transaction information. When a total of 6 blocks (1 direct block and 5 subsequent blocks) contain the transaction information, the transaction information is considered “verified”, so the transaction is officially confirmed, and the other party can confirm that the payment is successful. A possible problem is that if I pay the balance in address A to address B, and at the same time pay to address C, if only the single-bit transaction is verified, it is valid. At this point, my way of cheating is to generate 6 blocks containing only B and send them to B, and generate 6 blocks containing only C and send them to C before the truth is revealed. Since the CPU time I need to generate the block is very high, compared to the whole network, the probability of my success in cheating is very small. What is the motivation for network nodes to produce blocks? As can be seen from the above description, in order to make the transaction information valid, the network node needs to generate 1 and 5 subsequent blocks to contain the transaction information, and such block generation is very CPU-intensive. How to get other network nodes to help produce blocks as soon as possible? The answer is very simple. The protocol stipulates that the address that produces the block will be rewarded with BTC, and the transaction fee promised by both parties. At present, the reward for producing a block is 50BTC, and it will be halved every four years in the future. For example, between 2013 and 2016, the reward is 25BTC. Are transactions anonymous? Yes and no. All BITCOIN transactions are visible, we can check all transaction records of each account, such as mine. But unlike the banking monetary system, everyone’s account itself is anonymous, and everyone can open many accounts. Overall, the so-called anonymity is not as good as claimed. But there is another benefit of bitcoin for black market transactions, it cannot be frozen. Even if the police can trace a bitcoin address, there is no way to do it unless the computer used by the exchange is traced based on the network address. How to ensure that bitcoin does not depreciate? In general, the value of a currency is inversely proportional to the amount of currency issued when trading activity is comparable. Unlike traditional money markets, where the central bank can determine the amount of money to be issued, there is no central issuer in bitcoin. Only by producing blocks, a certain amount of BTC currency can be obtained. Therefore, the new increment of bitcoin currency is determined by: 1. The speed of block production: The bitcoin protocol stipulates that the difficulty of producing a block is fixed at an average of 2016 blocks every two weeks, and one block is produced in about 10 minutes. Moore’s Law, where CPU speeds double every 18 months, doesn’t speed up production blocks. 2. The number of rewards for producing blocks: Currently, each block produced is rewarded with 50 BTC, which is halved every four years. In 2013, the reward amount was 25 BTC, and in 2017, the reward amount was 12.5 BTC. Combining the above two factors, the speed of bitcoin currency issuance is not controlled by any single node in the network node. Its protocol makes the currency stock known in advance, and the maximum stock is only 21 million BTC

3 How is the Bitcoin contract income calculated?

Twenty times the full position contract is equivalent to buying 2,000 yuan of bitcoin with 100 yuan, and your income is 200 yuan (+ 100), the next day your account is 300 yuan, continue to fill the position 20 times and then increase ten points, your income is 600 yuan (+300), and so on, but if it falls 5 points, you The principal is gone, commonly known as liquidation.

⑷ Find the Bitcoin calculation formula.

It can’t be explained by a few simple formulas. It is a kind of operation of the computer network system, which is very complicated. You just need to understand this. If you want to mine and earn bitcoin, I hope you download the genuine soft armor.

⑸ How is the funding fee of okex bitcoin perpetual contract calculated

Funding fee = position value * funding rate, when the funding rate is positive, longs pay shorts; when the funding rate is negative, shorts pay longs, can you understand?

⑹ How is the rate of return in the Bitcoin perpetual contract calculated

It is the rate of return = income / margin required for opening a position.

⑺ How is the unrealized profit and loss of the OKEX Bitcoin delivery contract calculated

Long position: face value * number of contracts / average opening price – face value * number of contracts /Latest mark price
Short position: face value*number of sheets/latest mark price-face value*number of sheets/average opening price


Related Ad

Comments (No)

Leave a Reply