Set Instant Pot to Saute. Saute onion and spices for 2-4 minutes, until fragrant.
Add can of pumpkin puree and can of coconut milk, as well as desired amount of broth. Stir to mix.
Cook on high pressure for 15 minutes. Allow pressure to release naturally, or do quick release, whatever is most convenient.
Alternatively, to cook on a stovetop, sauté the onion, cubed pumpkin (if using) and spices together for a few minutes. Add the pumpkin puree (if using), coconut milk and broth, simmer, covered, for 10-15 minutes. Blend if desired.