Docs
API 1.39
Status
Fields

currency

The `currency` option of an extract field.

money fields: the three-letter ISO currency code used when the page prints none.

Type: string

#Example

{
  "price": {
    "selector": ".price",
    "type": "money",
    "locale": "tr",
    "currency": "TRY",
    "sample": {
      "raw": "1.299,90 TL",
      "value": 1299.9
    }
  }
}

From the contract fixture product-page-list-regex-json, a program the test suite validates.

Was this page helpful?