|
I'm trying to get the current price of an asset. In the response I get What unit is this? Because I first assumed Wei, but that just doesn't make sense when the website shows 0.0008 matic and this response is 5.5 matic. I'm getting the "cheapest" listing for this price with the request https://api.opensea.io/api/v2/orders/matic/seaport/listings?asset_contract_address=0x22d5f9b75c524fec1d6619787e582644cd4d7422&order_by=eth_price&order_direction=desc&token_ids=202&limit=1 Here's the asset https://opensea.io/assets/matic/0x22d5f9b75c524fec1d6619787e582644cd4d7422/202 |
Replies: 1 comment
|
I figured it out, the unit is Wei, but this is not unit price, it's the full listing price. That was my bad (though some docs on the Order struct would have helped...) |
I figured it out, the unit is Wei, but this is not unit price, it's the full listing price. That was my bad (though some docs on the Order struct would have helped...)
I get 0.0008 when I divide
current_pricebyremaining_quantity