This PR shows the price for each market in the dropdown. The price of a given pair is obtained by getting all its ask orders (through getOrderbookAsync) and then using the first one to compute the price. The reason for this is that, according to the SRA spec, the ask orders are sorted by cheapest price first. However, the relayer we are using is not compliant with this requirement; there's an open bug related to that, so you'll see the price of the first sell order that was created.
I also removed all content related to daily price changes and volumes.
Closes #104.
This PR shows the price for each market in the dropdown. The price of a given pair is obtained by getting all its ask orders (through
getOrderbookAsync
) and then using the first one to compute the price. The reason for this is that, according to the SRA spec, the ask orders are sorted by cheapest price first. However, the relayer we are using is not compliant with this requirement; there's an open bug related to that, so you'll see the price of the first sell order that was created.I also removed all content related to daily price changes and volumes.