You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make the document id when looking up the get_aggregate_price optional
Motivation
My oracle uses websockets and I only publish a price when there is trade. Reason is the WebSocket could have gone dead and if I just keep publishing the last price, I would be pushing a false value. Due to this my pairs are not consistent in the document ID's, for example XRPDOT here could be in document 5 the next time I publish the values (if there was another token that got a value that has not been traded since the last push) could be in document 6 the next time round.
Solution
make the document ID from the get_aggregate_price optional, currently I have to hope that developers understand that they need to look for a published value from my oracle by doing this....... its horrible.
I've not been able to figure a decent solution to this issue, as there also is no option to push a NULL value of sorts. Where by possibly that way I could have the pairs be static in their respective documents.
The text was updated successfully, but these errors were encountered:
shortthefomo
changed the title
remove document id from get_aggregate_price (Version: 2.3.0)
make document id optional from get_aggregate_price (Version: 2.3.0)
Jan 2, 2025
Summary
make the document id when looking up the get_aggregate_price optional
Motivation
My oracle uses websockets and I only publish a price when there is trade. Reason is the WebSocket could have gone dead and if I just keep publishing the last price, I would be pushing a false value. Due to this my pairs are not consistent in the document ID's, for example XRPDOT here could be in document 5 the next time I publish the values (if there was another token that got a value that has not been traded since the last push) could be in document 6 the next time round.

Solution
make the document ID from the get_aggregate_price optional, currently I have to hope that developers understand that they need to look for a published value from my oracle by doing this....... its horrible.
Paths Not Taken
I've not been able to figure a decent solution to this issue, as there also is no option to push a NULL value of sorts. Where by possibly that way I could have the pairs be static in their respective documents.
The text was updated successfully, but these errors were encountered: