-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add price in stats #853
Comments
the subgraph update is there, yes. |
@calina-c I've found that occasionally there are assets where there is no price sent in the stats object. Is there any reason for this? It looks like it could be a bug This is causing problems when implementing oceanprotocol/market#1774 |
Please paste the did |
did:op:b62d6359fd9c45ff3df50a82f8d3b89baf9ec60d3c8ecbe81a28934c0bba91b3 |
@jamiehewitt15 this is probably fixed in the refactor so we just have to wait for that https://v4-2.aquarius.oceanprotocol.com/api/aquarius/assets/ddo/did:op:b62d6359fd9c45ff3df50a82f8d3b89baf9ec60d3c8ecbe81a28934c0bba91b3 |
Ok cool, fair enough |
That's this PR? #928 |
Using this query we can also easily fetch the price and orders. Adding the price is now feasible because we don't have any pools.
We do the same query and update both price and orderCount on :
OrderStarted
,ExchangeCreated
andExchangeRateChanged
. Also maybe add a small delay in this function , not sure what the best approach would be. Basically after you get an event to wait a bit for the subgraph to update (maybe this is already there, didn't check)The text was updated successfully, but these errors were encountered: