How can I get the current price of an asset with its ID. Need it for a DApp


#1

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.


#2

Consider to look here:


#3

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
}