← Developer Forum

Price Feeds·help question

[SUI] Is there a way to get a price without having "&PriceInfoObject" as function argument?

Open on dev-forum →Back to forum

In the documentation we have a function “get_sui_price” which takes “price_info_object: &PriceInfoObject" as argument:

public fun get_sui_price( // Other arguments clock: &Clock, price_info_object: &PriceInfoObject,): I64 {

My question is would it be possible to create such a function without having &PriceInfoObject as an argument? We could get this reference in the code of the function by any other mean but I don’t see how..

Showing the original post only. Read the full thread on dev-forum.pyth.network ↗

Replies: 2
Views: 505
Likes: 1
Posted: 8/5/2025

Source: https://dev-forum.pyth.network/t/sui-is-there-a-way-to-get-a-price-without-having-priceinfoobject-as-function-argument/336 · external id 336