Ticker
GET /v1/splits/{ticker}
Get reverse stock split data for a current ticker available through the /v1/splits endpoint. Though the data is the same, it reduces the overall results and allows you to focus on a specific ticker if available.
Request Parameters
apiKey Required
Your API Key.
- cURL
- Go
- Java
- Javascript
- Python
curl "https://api.rsplit.io/v1/splits/NCNA?apiKey=YOUR_API_KEY"
main.go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
url := "https://api.rsplit.io/v1/splits/NCNA?apiKey=YOUR_API_KEY"
resp, err := http.Get(url)
if err != nil {
fmt.Println("Error:", err)
return
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
if err != nil {
fmt.Println("Error reading body:", err)
return
}
fmt.Println(string(body))
}
ReverseSplits.java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.io.IOException;
import java.time.Duration;
public class ReverseSplits {
public static void main(String[] args) throws IOException, InterruptedException{
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.rsplit.io/v1/splits/NCNA?apiKey=YOUR_API_KEY"))
.timeout(Duration.ofSeconds(10))
.GET()
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
reverseSplits.js
fetch('https://api.rsplit.io/v1/splits/NCNA?apiKey=YOUR_API_KEY', {method: 'GET'})
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
reverse_splits.py
import requests
url = 'https://api.rsplit.io/v1/splits/NCNA?apiKey=YOUR_API_KEY'
response = requests.get(url)
print(response.json())
Response Object
data array
-
ticker
string
The symbol for the given reverse split.
-
exchange
string
Stock exchange where the security is traded.
-
company
string
The company name.
-
ratio
string
The ratio of the reverse split.
-
ex_date
string
The date on which the stock starts trading at the new adjusted split price.
-
date_announced
string
The date on which the revere stock split was announced.
{
"data": [
{
"ticker": "NCNA",
"exchange": "NASDAQ",
"company": "NuCana plc",
"ratio": "1:25",
"ex_date": "2024-04-25",
"date_announced": "2024-03-06"
},
]
}