> For the complete documentation index, see [llms.txt](https://docs.sov.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sov.ai/api-reference/utils/client-side.md).

# Client Side

**Module:** `sovai.utils.client_side`

## Functions

### `load_parquet_file()`

```python
def load_parquet_file(url, columns = None, filters = None)
```

Load a single Parquet file from a public URL.

**Parameters**

| Parameter | Type | Description     |
| --------- | ---- | --------------- |
| `url`     | —    | —               |
| `columns` | —    | Default: `None` |
| `filters` | —    | Default: `None` |

***

### `get_file_url()`

```python
def get_file_url(base_url, ticker, name_file)
```

Construct the URL for the Parquet file of a specific ticker.

**Parameters**

| Parameter   | Type | Description |
| ----------- | ---- | ----------- |
| `base_url`  | —    | —           |
| `ticker`    | —    | —           |
| `name_file` | —    | —           |

***

### `get_file_url_partitioned()`

```python
def get_file_url_partitioned(base_url, ticker, name_file)
```

Construct the URL for the Parquet file of a specific ticker using the first two letters partitioning.

**Parameters**

| Parameter   | Type | Description |
| ----------- | ---- | ----------- |
| `base_url`  | —    | —           |
| `ticker`    | —    | —           |
| `name_file` | —    | —           |

***

### `load_data_for_ticker()`

```python
def load_data_for_ticker(
    base_url,
    ticker,
    columns,
    from_date,
    to_date,
    name_file,
    partitioned = False,
)
```

Load data for a single ticker.

**Parameters**

| Parameter     | Type | Description      |
| ------------- | ---- | ---------------- |
| `base_url`    | —    | —                |
| `ticker`      | —    | —                |
| `columns`     | —    | —                |
| `from_date`   | —    | —                |
| `to_date`     | —    | —                |
| `name_file`   | —    | —                |
| `partitioned` | —    | Default: `False` |

***

### `load_data_for_tickers()`

```python
def load_data_for_tickers(
    base_url,
    tickers,
    columns,
    from_date,
    to_date,
    name_file,
    partitioned = False,
)
```

Load data for multiple tickers using concurrent.futures.

**Parameters**

| Parameter     | Type | Description      |
| ------------- | ---- | ---------------- |
| `base_url`    | —    | —                |
| `tickers`     | —    | —                |
| `columns`     | —    | —                |
| `from_date`   | —    | —                |
| `to_date`     | —    | —                |
| `name_file`   | —    | —                |
| `partitioned` | —    | Default: `False` |

***
