# All Stock Splits

`GET` `/v1/splits`

Retrieve stock split events across every ticker, including split date and numerator/denominator ratio. Results are ordered by split date descending, then ticker. Paginate with page and limit (default 50, max 250). Use this for market-wide corporate-action feeds and split calendars.

## Use cases

- Market-wide split calendars and corporate-action feeds
- Cross-ticker split screening and alerts
- Bulk split data for chart adjustment pipelines
- Research on recent corporate actions universe-wide

## Input parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `page` | integer | No | Zero-based page (default 0). |
| `limit` | integer | No | Page size, 1-250 (default 50). |

## Output parameters

| Name | Type | Description |
| --- | --- | --- |
| `results` | array | Split events across tickers, most recent first. |
| `results[].ticker` | string | Ticker. |
| `results[].split_date` | string | Effective split date (YYYY-MM-DD). |
| `results[].numerator` | integer | Split numerator (e.g. 4 in a 4-for-1 split). |
| `results[].denominator` | integer | Split denominator (e.g. 1 in a 4-for-1 split). |
| `count` | integer | Number of rows on this page. |
| `total` | integer | Total matching split rows. |
| `page` | integer | Zero-based page index. |

## Example response

```json
{
  "results": [
    {
      "ticker": "AAPL",
      "split_date": "2020-08-31",
      "numerator": 4,
      "denominator": 1
    },
    {
      "ticker": "TSLA",
      "split_date": "2022-08-25",
      "numerator": 3,
      "denominator": 1
    }
  ],
  "count": 2,
  "total": 8421,
  "page": 0
}
```

## Examples

### cURL

```bash
curl "https://api.vantafin.com/v1/splits?limit=50&apiKey=$VANTAFIN_API_KEY"
```

### Python

```python
from vantafin import RESTClient

client = RESTClient("vf-live-your_api_key")

result = client.list_splits(limit=50)

print(result)
```

### JavaScript

```javascript
import { RestClient } from "vantafin";

const client = new RestClient("vf-live-your_api_key");

const result = await client.listSplits({ limit: 50 });

console.log(result);
```

### Go

```go
package main

import (
	"fmt"
	"log"

	"github.com/vantafin/vantafin-go"
)

func main() {
	client := vantafin.NewClient("vf-live-your_api_key")

	result, err := client.ListSplits(vantafin.Params{"limit": 50})
	if err != nil {
		log.Fatal(err)
	}

	fmt.Println(result)
}
```

### Java

```java
import com.vantafin.RestClient;
import com.vantafin.Params;

public class Example {
    public static void main(String[] args) throws Exception {
        RestClient client = new RestClient("vf-live-your_api_key");

        Object result = client.listSplits(Params.of().set("limit", 50));

        System.out.println(result);
    }
}
```

### Ruby

```ruby
require "vantafin"

client = Vantafin::RestClient.new("vf-live-your_api_key")

result = client.list_splits(limit: 50)

pp result
```
