The resource loading... loading...

OKex number of contracts

Author: I know., Created: 2021-07-26 12:20:32, Updated:

Please tell me how to convert the current user balance to the number of contracts on the OKEX futures exchange, or is there an API that can be called directly, thank you


More

Inventors quantify - small dreamsWhat does this mean is to calculate the current balance and the number of contracts that can be ordered under the current leverage?

Inventors quantify - small dreamsI'm not being polite.

I know.Oh, yeah, thank you.

Inventors quantify - small dreamsThe exchange is set up.

I know.So, if you're looking at a $100 contract in this example, how does that work?

Inventors quantify - small dreamsCalculation formula: The number of hashes = the collateral assets available in the account / (one contract value / leverage) The value of a contract here refers to the unit of the collateral asset. For example, if it's an OKEX spot contract, the BTC coin will be sold. This contract is $100, so the unit value of a contract's collateral is: 100/current price. So, the number of hashes is equal to the number of gold coins available to guarantee the account / (100 / current price / leverage) Others like this:

I know.For example, if the transaction pair is: BTC_USD, leverage 10, then the current API processing is Exchange.GetAccount ((().Stocks / (1/10); Exchange.GetAccount ((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) Is that so?

Inventors quantify - small dreamsI need to write code for calculations. Calculation formula: The number of hashes = the collateral assets available in the account / (one contract value / leverage) The value of a contract here refers to the unit of the collateral asset.

I know.Yes, you are.