# How can I add currency?

**URL:** <https://community.embeddable.com/t/how-can-i-add-currency/62>\
**Category:** FAQs\
**Created:** [June 24, 2024, 6:46pm UTC](https://community.embeddable.com/t/how-can-i-add-currency/62 "2024-06-24T18:46:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ella-embeddable](https://dub1.discourse-cdn.com/flex013/user_avatar/community.embeddable.com/ella-embeddable/32/15_2.png) [@ella-embeddable](https://community.embeddable.com/u/ella-embeddable)\
**Post date:** [June 24, 2024, 6:46pm UTC](https://community.embeddable.com/t/how-can-i-add-currency/62/1 "2024-06-24T18:46:01Z")

</div>

This can be achieved by using “meta.pretext” and “meta.posttext” in the data model.

This works because we use it in our format function like this: [vanilla-components/src/components/util/format.ts at main · embeddable-hq/vanilla-components · GitHub](https://github.com/embeddable-hq/vanilla-components/blob/main/src/components/util/format.ts#L9)

e.g.:

```auto
- name: price
        type: sum
        title: Total USD
        sql: price_usd
        meta:
          pretext: '$'
          posttext: ''

```
