The resource loading... loading...

The face value problem

Author: What's that?, Created: 2022-04-10 00:27:57, Updated:

It's the OK platform. Turn the face value to U, for example: BTC-0.01 ETH-0.1 DOT-1 In this case, how should we design this? The desired result is 20 U, which should be 0.1 to 0.1, which should be 3 to 3. Please, help me. I'm sure you'll be able to replicate it in Python, thanks!


More

What's that?Can you give me the code?

programThe number of shares = int ((buy amount * leverage multiplier/ ((face value * price))))

programSo that's it, one line of code.