Skip to content
Get started

Retrieve Prices

pricing.oscu.retrieve_prices() -> OscuRetrievePricesResponse
GET/oscu/prices

Get the public Prepaid Compute Units (or OSCU for One Shot Compute Units) price details

ReturnsExpand Collapse
class OscuRetrievePricesResponse:
prices: List[Price]
creative_units: Optional[float]
currency: Optional[str]
expires: Optional[float]
unit_amount: Optional[float]

Retrieve Prices

import os
from scenario_sdk import Scenario

client = Scenario(
    api_key=os.environ.get("SCENARIO_SDK_API_KEY"),  # This is the default and can be omitted
    api_secret=os.environ.get("SCENARIO_SDK_API_SECRET"),  # This is the default and can be omitted
)
response = client.pricing.oscu.retrieve_prices()
print(response.prices)
{
  "prices": [
    {
      "creativeUnits": 0,
      "currency": "currency",
      "expires": 0,
      "unitAmount": 0
    }
  ]
}
Returns Examples
{
  "prices": [
    {
      "creativeUnits": 0,
      "currency": "currency",
      "expires": 0,
      "unitAmount": 0
    }
  ]
}