p/sp/fields&quot;;

const sp = spfi(...);

// create a new currency field called 'My Field' in web
const field = await sp.web.fields.addCurrency(&quot;My Field&quot;, { MinimumValue: 0, MaximumValue: 100, CurrencyLocaleId: 1033, Group: &quot;My Group&quot; });
// create a new currency field called 'My Field' in list 'My List'
const field2 = await sp.web.lists.getByTitle(&quot;My List&quot;).fields.addCurrency(&quot;My Field&quot;, { MinimumValue: 0, MaximumValue: 100, CurrencyLocaleId: 1033, Group: &quot;My