> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ebury.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Currency Models

## TradeType

This is an enumeration of the balance types of an account.

**Values**

| Value | Description |
| - | - |
| `spot` | Spot trade |
| `forward` | Forward trade |

## Currency

```json theme={null}
    {
        "currency": "USD",
        "decimals": 2
    }
```

This model is a representation of a currency with minimal details. Returned when `show_all` is `true`.

**Fields**

<ResponseField name="currency" type="string">
  Always. Currency symbol
</ResponseField>

<ResponseField name="decimals" type="integer">
  Always. Number of decimal places for the currency
</ResponseField>

## CurrencyInfo

```json theme={null}
    {
        "currency": "USD",
        "available_for_trading": true,
        "credit_limit": "-901220.0000",
        "default": false,
        "holidays": [
            "2017-06-08T00:00:00+05"
        ],
        "currency_limit": "734408.5000",
        "decimals": 2,
        "cutoff": {
            "days": 0,
            "time":  "23:00:00+00"
        },
        "buy_allowed": true,
        "sell_allowed": true
    }
```

This model is a representation of a single currency of an Ebury client.

**Fields**

<ResponseField name="currency" type="string">
  Always. Currency symbol
</ResponseField>

<ResponseField name="available_for_trading" type="boolean">
  Always. Is this currency available to trade
</ResponseField>

<ResponseField name="credit_limit" type="string">
  Always. Limit of the credit
</ResponseField>

<ResponseField name="default" type="boolean">
  Always. Is this default currency of the client
</ResponseField>

<ResponseField name="holidays" type="array">
  Always. List of holidays in a format ISO-8601
</ResponseField>

<ResponseField name="currency_limit" type="string">
  Always. Limit of the currency
</ResponseField>

<ResponseField name="decimals" type="integer">
  Always. Decimal settings of the client for the currency
</ResponseField>

<ResponseField name="cutoff" type="object">
  Always. Object of [Cutoff](#cutoff)
</ResponseField>

<ResponseField name="buy_allowed" type="boolean">
  Always. Is client allowed to buy this currency
</ResponseField>

<ResponseField name="sell_allowed" type="boolean">
  Always. Is client allowed to sell this currency
</ResponseField>

## Cutoff

```json theme={null}
{
  "days": 0,
  "time": "23:00:00+00"
}
```

This model is a representation of a cutoff for a currency.

**Fields**

<ResponseField name="days" type="integer">
  Always. Cutoff days for the currency
</ResponseField>

<ResponseField name="time" type="string">
  Always. Cutoff time for the currency. Includes TZ data in ISO format
</ResponseField>
