Saya ingin bertanya, bagaimana kita boleh mengira kadar pulangan semasa jika kita mempunyai saham? Contohnya: BTC_USD atau BTC_USDT; Saya mengira nilai pasaran sekarang: (exchange.GetAccount().Stocks+exchange.GetAccount().FrozenStocks) * ((exchange.GetTicker().Last
Tetapi saya selalu rasa ada sesuatu yang tidak kena dengan masa hadapan wang simpanan. Mencari Jawapan
RumputAnda adalah mesej yang dihantar kembali
RumputMasa hadapan tidak boleh dianggap seperti itu, biasanya GetAccount mempunyai kepentingan keseluruhan dalam maklumat asal.
Nak buat macam mana?{"Info":{"c2c": [{"free":"0.0","frozen":"0.0","currency":"BCH","fee":"0.0"} {"frozen":"0.0","currency":"BTC","fee":"0.0","free":"0.0"} {"fee":"0.0","free":"0.0","frozen":"0.0","currency":"EOS"} {"fee":"0.0","free":"0.0","frozen":"0.0","currency":"ETH"} {"currency":"EVE","fee":"0.0","free":"0.0","frozen":"0.0"} {"currency":"LTC","fee":"0.0","free":"0.0","frozen":"0.0"} {"fee":"0.0","free":"0.0","frozen":"0.0","currency":"USDT"}, "exchange": [{"fee":"0.0","free":"0.0","frozen":"0.0","currency":"BCH"} {"currency":"BTC","fee":"0.0","free":"3.4394","frozen":"0.0"} {"frozen": 0.0","currency:" EOS","fee:" 0.0","free:" 4983.0"} {"free":"102.8","frozen":"0.0","currency":"ETH","fee":"0.0"} {"currency":"EVE","fee":"0.0","free":"10000.0","frozen":"0.0"} {"currency":"LTC","fee":"0.0","free":"1589.2343","frozen":"0.0"} {"currency":"USDT","fee":"1444.32269553675","free":"431.15634146325","frozen:"0.0"}, "wallet": [{"currency":"BCH","fee":"0.0","free":"0.0","frozen":"0.0"} {"fee":"0.0","free":"0.0","frozen":"0.0","currency":"BTC"} {"currency":"EOS","fee":"0.0","free":"0.0","frozen":"0.0"} {"frozen":"0.0","currency":"ETH","fee":"0.0","free":"0.0"} {"currency":"EVE","fee":"0.0","free":"0.0","frozen":"0.0"} {"currency":"LTC","fee":"0.0","free":"0.0","frozen":"0.0"} {"currency":"USDT","fee":"0.0","free":"111.0","frozen":"0.0"}}, "Stocks":3.4394, "FrozenStocks": 0, "Balance:431.15634146325, "FrozenBalance": 0} Saya melihat maklumat di bawah ini dengan maklumat cakera fizikal dan tidak faham apa yang dimaksudkan oleh setiap bidang.