Hey everyone, I am creating a DApp and I want to retrieve the current price of an asset using it’s id via REST. Is that possible? and if it is, how do I go about it. Thanks.
Consider to look here:
curl -X GET --header 'Accept: application/json' 'https://matcher.wavesplatform.com/matcher/orderbook/WAVES/8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS/status'
Response:
{
"lastPrice": 56847,
"lastAmount": 765999965,
"lastSide": "sell",
"bid": 56764,
"bidAmount": 16118000000,
"ask": 56847,
"askAmount": 1932
}