在下面的代码中,我有 2 个 URL,每个 url 都有一个路径
These are 2 urls
api[0] = "https://www.bitstamp.net/api/v2/ticker/ethusd/";
api[1] = "https://api.pro.coinbase.com/products/eth-usd/ticker";
The path for URL 0 is last and the path for URL 1 is price
我希望chainlink节点从这2个网址获取数据(最后和价格)并计算来自2个网址的数据中位数,即中位数= {last+price)/2; 如何在 Chainlink 中为此逻辑编写代码