刚学vue,下面这个json,我想获取exchangeTrades下的buyRate值,谢谢。
{
"code": 0,
"data": [
{
"allTrades": {
"buyQty": 0,
"buyRate": 0.5189,
"cTime": 1584957514000,
"exchange": "all",
"futureType": "all",
"id": 0,
"price": 0,
"sellQty": 0,
"sellRate": 0.4811,
"symbol": "BTC",
"timestamp": 1584957514000,
"type": "1h"
},
"exchangeTrades": [
{
"buyQty": 972958,
"buyRate": 0.5063,
"cTime": 1584957514006,
"exchange": "Huobi",
"futureType": "quarter",
"id": 0,
"price": 0,
"sellQty": 948668,
"sellRate": 0.4937,
"symbol": "BTC",
"timestamp": 1584957514006,
"type": "1h"
},
{
"buyQty": 292280,
"buyRate": 0.509,
"cTime": 1584957514016,
"exchange": "Okex",
"futureType": "swap",
"id": 0,
"price": 0,
"sellQty": 281993,
"sellRate": 0.491,
"symbol": "BTC",
"timestamp": 1584957514016,
"type": "1h"
},
{
"buyQty": 16451622,
"buyRate": 0.5318,
"cTime": 1584957514010,
"exchange": "Bitmex",
"futureType": "swap",
"id": 0,
"price": 0,
"sellQty": 14486032,
"sellRate": 0.4682,
"symbol": "XBT",
"timestamp": 1584957514010,
"type": "1h"
},
{
"buyQty": 1862092,
"buyRate": 0.5219,
"cTime": 1584957514003,
"exchange": "Okex",
"futureType": "quarter",
"id": 0,
"price": 0,
"sellQty": 1706101,
"sellRate": 0.4781,
"symbol": "BTC",
"timestamp": 1584957514003,
"type": "1h"
}
]
}
],
"dialog": {
"cancelAndClose": false,
"cancelBtn": "",
"cancelColor": "",
"code": "0",
"confirmBtn": "",
"confirmColor": "",
"content": "",
"contentColor": "",
"time": "",
"title": "OK",
"titleColor": "",
"type": "3",
"url": ""
}
}