Loading ...

哪位老哥帮忙取一下币安逐仓杠杆的值

Author: wang1256, Created: 2020-10-11 01:18:46, Updated:

逐仓杠杆返回数据 {“assets”:[{“symbol”:“BANDUSDT”,“isolatedCreated”:true,“marginLevelStatus”:“EXCESSIVE”,“tradeEnabled”:true,“quoteAsset”:{“free”:“28100.00218234”,“interest”:“0”,“locked”:“0”,“netAsset”:“28100.00218234”,“netAssetOfBtc”:“2.64645821”,“borrowed”:“0”,“borrowEnabled”:true,“repayEnabled”:true,“totalAsset”:“28100.00218234”,“asset”:“USDT”},“marginLevel”:“2.05850782”,“marginRatio”:“3”,“indexPrice”:“5.2309769”,“liquidatePrice”:“9.15878487”,“liquidateRate”:“75.087466”,“baseAsset”:{“borrowEnabled”:true,“borrowed”:“2600”,“locked”:“0”,“netAssetOfBtc”:"-1.2856186",“asset”:“BAND”,“free”:“0.00432578”,“interest”:“0.08233316”,“netAsset”:"-2600.07800738",“repayEnabled”:true,“totalAsset”:“0.00432578”}}]} 哪位老哥帮忙取下这两个值(“indexPrice”:“5.2309769”,“liquidatePrice”:“9.15878487”)


More

小草 遍历数组,当symbol==BANDUSDT时,取JSON.parse(data).assets[i].indexPrice

wang1256 谢谢,能不能麻烦帮我用代码写一下呀 非常感谢