{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/cryptocurrency_quantity", "title": "cryptocurrency_quantity", "type": "string", "minLength": 1, "maxLength": 40, "pattern": "^((-?[0-9]+)|(-?([0-9]+)?[.][0-9]+))$", "description": "Quantity of a cryptocurrency asset.
This is a decimal number with scale defined for each Cryptocurrency by the founders. For example,
  • Bitcoin(BTC) has 8 as scale,
  • Ethereum (ETH) has 18 as scale.

  • PayPal Cryptocurrency platform handles the scale to 8 digits for Bitcoin and its forks or offshoots and Ehereum." }